Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by gvv

  1. @Roaddoctor


    Rainer- first thank you for your continuing improvements - great work!


    I have one little optional tweak that others may or may not wish to use. This adds a nice title at the bottom of the colorbox popup


    I added

    title: '<?php echo $product_info['products_name']; ?>',

    into this, like

    <script type="text/javascript">
    $(function() {
        'visibility': 'hidden'
        layout: '<?php echo $photoset_layout; ?>',
        width: '250px',
        highresLinks: true,
        rel: 'pigallery',
        onComplete: function() {
          $('#piGal').css({ 'visibility': 'visible'});
          $('#piGal a').colorbox({
            maxHeight: '90%',
            maxWidth: '90%',
      title: '<?php echo $product_info['products_name']; ?>',
            rel: 'pigallery'
          $('#piGal img').each(function() {
            var imgid = $(this).attr('id').substring(9);
            if ( $('#piGalDiv_' + imgid).length ) {
              $(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid });

    thx again!



    In which file I have to add this line?

  2. @@raiwa


    I have latest update of KissIT. 

    I checked installation, reinsalled the addon step by step few times. 

    there is a problem that not all product photos are thumbnailed and product listing page doesnt looks well (some image are smaller, but some - larger..)...

    Yoy can see live example here:




    "<img src="images/koka_durvis_pildini_8a.JPG" alt="Beicētas Iekšdurvis (Osis)" title="Beicētas Iekšdurvis (Osis)" width="210" height="210" class="img-responsive">"


    and working example:

    <img width="210" height="210" src="images/thumbs/210x210_ieksdurvis_finieretas_amazaque.JPG" title="Iekšdurvis (Amazaque)" alt="Iekšdurvis (Amazaque)" class=" img-responsive thumbnail group list-group-image">


    what should I do and how to fix that?

  3. @@Jack_mcs




    I would lik to add shema.org markup to logo, but cant figure out how to do that.

    here are osc logo.php

    <div id="storeLogo" class="col-sm-<?php echo $content_width; ?>">
        <?php /*** Begin Header Tags SEO ***/ ?>
         <div><div id="storeLogo">
          <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>';
          if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { ?>
              <div style="position:absolute; top:0; left:40%; color:#777; font-size:10px;text-align:center"><?php echo $header_tags_array['title']; ?></div>
          <?php } ?>
        <?php /*** End Header Tags SEO ***/ ?>
    and here example:
    <div itemscope itemtype="http://schema.org/Attorney">
    <a itemprop="url" href="http://www.example.com/"title="Acme Patent
    Lawyers, Chicago">
    <img itemprop="logo" src="http://www.example.com/acme-patent-
    lawyers.gif" alt="Acme LLP Patent Lawyers, Chicago, IL" /></a>
    I think, code would be:
    <div itemscope itemtype="http://schema.org/Attorney" id="storeLogo" class="col-sm-<?php echo $content_width; ?>">
        <?php /*** Begin Header Tags SEO ***/ ?>
         <div><div id="storeLogo">
          <?php echo '<a itemprop="url" href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>';
          if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { ?>
              <div style="position:absolute; top:0; left:40%; color:#777; font-size:10px;text-align:center"><?php echo $header_tags_array['title']; ?></div>
          <?php } ?>
        <?php /*** End Header Tags SEO ***/ ?>
    But where I have to add itemprop="logo"?

  4. @@gvv


    Yes! For includes/modules/new_products.php e.g. it should be something like this:


                          $new_prods_content .= tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link('wishlist.php', tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $new_products['products_id']), NULL, NULL, 'btn-default btn-sm');


    Add it where you want the wishlist button to appear. And in other modules similar....




    this code works!

    in products_info.php I have set (in admin panel wishlist options) after adding to wishlist stay on products info page. So clients can looking further.. .Maybe here are possible any code change for not redirecting to wishlist.php?

  5. @@Tsimi @@De Dokta

    Yes, you are right! :-
    The only way to add a wishlist button to the product_listing seems to be to define a new case 'add_to_wishlist' in application_top:
    Right before:  case 'notify' :         if (tep_session_is_registered('customer_id')) {

    /*Wish List */
         case 'add_to_wishlist' : if (isset($_GET['products_id'])) {
                                   if (tep_has_product_attributes($_GET['products_id'])) {
                                   tep_redirect(tep_href_link('product_info.php', 'products_id=' . $_GET['products_id']));
                                    } else {
                                   $wishList->add_wishList($_GET['products_id'], $wishList->get_quantity($_GET['products_id'])+1);
                                  tep_redirect(tep_href_link('wishlist.php', tep_get_all_get_params($parameters)));
    /* /Wish List End */                         

    And then in product_listing add something like:       

     $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $listing['products_id']), NULL, NULL, 'btn-default btn-sm') . '</div>';

    Works for me on bs-gold........





    Does this code works also for other models (new products, recently viewed)?

  6. @@Tsimi


    I now understand why it is so. I removed this line from product_info.php:


    <div class="col-xs-6 text-right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'glyphicon glyphicon-shopping-cart', null, 'primary', null, 'btn-success'); ?></div>



    what do You think, is there any solution, if I wanna remove that line (remove 'add to cart'button)? 

  7. Hello!

    Im reading all this forum and stoped in this discussion:


    and I have installed also Rows Module and if Im installing any Categories module I have error like this:

    1054 - Unknown column 'categories_bottom_description' in 'field list'
    select categories_bottom_description from categories_description where categories_id = '3' and language_id = '1' limit 1 
    [TEP STOP]




    1054 - Unknown column 'p.products_sort_order' in 'order clause'
    select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from products p left join specials s on p.products_id = s.products_id join products_description pd on p.products_id = pd.products_id join products_to_categories p2c on p.products_id = p2c.products_id join categories c on p2c.categories_id = c.categories_id where c.categories_id = '10' and p.products_status = '1' and pd.language_id = '1' order by p.products_ordered desc, p.products_sort_order limit 3 
    [TEP STOP]



    How could I resolve it?

  8. Hello!

    I installed this addon on my test site.

    I have latest oscommerce installed - 2.3.4.

    If I understand right, the problem is in header.php becouse if I follow daily special's installation instructions and add that code in header.php then in product pages doesnt work photo gallery and in product pages (product_info.php) and in other pages doesnt work UI buttons.

    How I can resolve that problem. I see addon is great!