Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

gvv

Pioneers
  • Posts

    54
  • Joined

  • Last visited

Posts posted by gvv

  1. @Roaddoctor

    @@raiwa

    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() {
      $('#piGal').css({
        'visibility': 'hidden'
      });
    
      $('#piGal').photosetGrid({
        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 });
            }
          });
        }
      });
    });
    </script>
    

    thx again!

     

     

    In which file I have to add this line?

  2. @@raiwa

    Hello!

    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:

    http://vaciesuuznemums.lv/aaaa/ieksdurvis-c-23.html

     

     

    "<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

     

    Hello!

     

    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 } ?>
         </div>
        <?php /*** End Header Tags SEO ***/ ?>
        
    </div>
     
    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>
    </div>
     
    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 } ?>
         </div>
        <?php /*** End Header Tags SEO ***/ ?>
        
    </div>
     
    But where I have to add itemprop="logo"?
  4. Hello!

    Im reading all this forum and stoped in this discussion:

    http://www.oscommerce.com/forums/topic/344692-contribution-products-specifications/?p=1687740

    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]

     

    or:

     

    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?

  5. 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!

  6. For the first problem, look at that line in that file to see what code is causing the failure. My guess is that it is the article_info entry. Maybe it is corrupted for some reason, though I don't know why it might be.

     

    For the second problem, what version of oscommerce are you using? What version of php?

     

    When Im installing new addon I always backup all site and tables. So I uploaded header_tags.php from previous backup and all works.

    When I compared this two files (header_tags.php from backup and from store wich doesnt work) I found in store file entry (it was yestarday night) if I remember correctly it was article_info.php.

  7. @@Jack_mcs

    For example, if I wanna create htaccess backup, I see

     

    Warning: mkdir(): Permission denied in /var/www/vtu/data/www/vaciesuuznemums.lv/g/admin/includes/functions/view_counter.php on line 644

    The htaccess_backup directory could not be created.

     

     

    Where I have to create that directory manually?

×
×
  • Create New...