Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Popup Image, HTML box Problems


Recommended Posts

Hi,

 

I have a problem with the popup image from product_info.php

 

When i fill the HTML CONTENT with text the image is not show

Without text the popup image shows normal. 

Link to comment
Share on other sites

Hi,

 

I have a problem with the popup image from product_info.php

 

When i fill the HTML CONTENT with text the image is not show

Without text the popup image shows normal. 

 

Hi, that's what is designed to happen. The html content is for doing things like embedding a YouTube video in the popup.

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Link to comment
Share on other sites

In my (live 2.3.4) shop HTML Content(for popup)" box adds the "title" text below the popup image

It also makes the alt text for the image

Link to comment
Share on other sites

find it:

 

In products_info.php

 

find

<?php
        $pi_counter = 0;
        $pi_html = array();
 
        while ($pi = tep_db_fetch_array($pi_query)) {
          $pi_counter++;
 
          if (tep_not_null($pi['htmlcontent'])) {
            $pi_html[] = '<div id="piGalDiv_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div>';
          }
 
          echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"');
        }
?>
 
replace with
<?php
        $pi_counter = 0;
        while ($pi = tep_db_fetch_array($pi_query)) {
          $pi_counter++;
          $pi_entry = '        <a href="';
 $pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image'], '', 'NONSSL', false);
 $pi_entry .= '" target="_blank" rel="colorbox" title="' . $pi['htmlcontent'] . '" class="prods_pic_bg" style="width:'.(PROD_INFO_IMAGE_WIDTH + PIC_MARG_W).'px;height:'.(PROD_INFO_IMAGE_HEIGHT + PIC_MARG_H).'px;">' . tep_image(DIR_WS_IMAGES . $pi['image'], $pi['htmlcontent'], (PROD_INFO_IMAGE_WIDTH), (PROD_INFO_IMAGE_HEIGHT), ' style="width:'.(PROD_INFO_IMAGE_WIDTH + PIC_MARG_W2).'px;height:'.(PROD_INFO_IMAGE_HEIGHT + PIC_MARG_H2).'px;margin:'.PIC_MARG_T.'px '.PIC_MARG_R.'px '.PIC_MARG_B.'px '.PIC_MARG_L.'px;"') .'</a>'.$sale;
          $pi_entry .= '</li>';
          echo $pi_entry;
        }
?>
 
I also have the htmlcontent placed at the top of the image so that it doesn't go by the buttons
 
in: ext/colorbox/colorbox.css
find
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
 
replace
#cboxTitle{position:absolute; top:4px; left:0; text-align:center; width:100%; color:#949494;}
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...