Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Correction to Big Images 1.22, 1.23a


zzfritz

Recommended Posts

The admin/categories.php contribution in BigImages fails to display the popup big image, because it passes the wrong parameter to popup_image.php. Make the correction at line 558, replacing this:

 

tep_href_link(FILENAME_POPUP_IMAGE, 'bimage=' . $products_bimage_name);

 

with this:

 

tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $HTTP_GET_VARS['pID']);

Link to comment
Share on other sites

you're half right, it doens't work when the product id has not been assigned (during new insert preview)

 

and also, the sql query in the popup file should also be changed from p.products_bimage = '" . $HTTP_GET_VARS['bimage'] to

p.products_id = '" . $HTTP_GET_VARS['pID']

 

not perfect but i can get away with that, at least it works fine on the catalog end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...