Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product listing to Product Description


Guest

Recommended Posts

Hi everyone. A year or so ago I changed my code to allow the images to popup for a certain catagory other than taking them to the product description. Now I want to change it back. But I can not find my change log sheets... :(

Does anyone know what calls the product_info.php.

I changed code to popup the item instead of calling for the product_info.

You can see it here.

 

http://persuaderlures.com/index.php?cPath=42

 

Can someone point me in the right direction to find the file that I need to change back?

 

Thanks in advance. :thumbsup:

Link to comment
Share on other sites

I think it's in includes/modules/product_listing

 

 

look for the second

case 'PRODUCT_LIST_IMAGE':

 

should look like this:

case 'PRODUCT_LIST_IMAGE':
           $lc_align = 'center';
           if (isset($HTTP_GET_VARS['manufacturers_id'])) {
             $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
           } else {
             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';
           }
           break;

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

No, that wasn't it.. I changed the code to "Javascript popup" from calling the product_info..

 

Hmm.. Still looking..

Link to comment
Share on other sites

Found the code in product_info_col.php

 

$lc_text= '<a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing_values['products_id']) . '\')">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>

<a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing_values['products_id']) . '\')">' . $listing_values['products_name'] . '</a><br>';

 

Can someone help me fix this to make it go to the product_info.php page?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...