PDA

View Full Version : X-Sell v2-MS2 - Cross Sell for MS2



michael_s
02-05-2007, 12:00 PM
On my installation, with SEO URLS, the Buy It Now button was showing the parent product's ID and not its own.

In catalog/includes/modules/xsell_products.php

//Cache
$text = '' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . ')
' . $xsell['products_name'] .' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . ')
' . $xsell_price. '
' . tep_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) .' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_DEFAULT, 'action=buy_now&products_id=' . $xsell['products_id'], 'NONSSL') . ')';

I stripped out the

tep_get_all_get_params(array('action')) .

and it seems to work.

As I am not a great expert at this, do please test the heck out of it before you go anywhere near a production system!

This zip contains only the updated includes/modules/xsell_products.php file.


More... (http://www.oscommerce.com/community/contributions,1415)