Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

wishlist button in product_listing


islandcastaway

Recommended Posts

The code to get the add to wishlist button in product_listing does not work. it takes you to the wishlist page but does not transfer the product.

 

 

STEP 17 - Edit catalog/includes/modules/product_listing.php

 

Find this code:

 

case 'PRODUCT_LIST_BUY_NOW':

Insert the following before the break statement if you wish to show the wishlist button when listing products (the if statement filters only for logged users):

 

if (tep_session_is_registered('customer_id')) //only registered users { //'add to wishlist' button bellow the 'buy now' button in the list of products. $lc_text .= '< BR >' . tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO,

tep_get_all_get_params(array('action')) . 'action=add_product')) . tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST,

'name="wishlist" value="wishlist" width="80%"') . '</form >'; }

 

 

 

 

Anyone have a fix yet? I need it bad!!!!!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...