Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fancybox product info problem big image


emcmoda

Recommended Posts

Hi i use os 2.3.1 and i found some bug in plugins fancybox

.

Into file: catalog/product_info.php

Line from 76 to 96

 

   $pi_counter = 0;
       while ($pi = tep_db_fetch_array($pi_query)) {
         $pi_counter++;

         $pi_entry = '        <li><a href="';

         if (tep_not_null($pi['htmlcontent'])) {
           $pi_entry .= '#piGalimg_' . $pi_counter;
         } else {
           $pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image']);

        }

         $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</a>';

         if (tep_not_null($pi['htmlcontent'])) {
           $pi_entry .= '<div style="display: none;"><div id="piGalimg_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div></div>';
         }

         $pi_entry .= '</li>';

         echo $pi_entry;
       }

 

When the images have 'htmlcontent' don't see big image, only htmlcontent but if htmlcontent is null, we can see only big image without htmlcontent.

 

What can must change?

Link to comment
Share on other sites

  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...