Contributions

Features (Category Index)
Search: 

Family Products-MS2

Family Products-MS2 assigns products to related groups - related products are displayed in the product info page below the selected product being viewed in the same manner as product listing in the main catalog.

NOTE: This contribution is for osCommerce version MS2 only.

Expand All / Collapse All

Buy Now button fix kunal247 15 Sep 2005

Just realised the Buy Now button was not working in the products being listed.

I have taken the fix from X-sell which had the same problem and the sloution was found by Alex.
All I have done is changed it a little bit to make it work with this contribution.

~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buy Now Button - Fix

In /includes/modules/family_listing.php find this bit of code:

Around Line - 139
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';

and change it to:
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing['products_name'] . TEXT_NOW) . '</a>&nbsp;';

Hope this helps!

Kunal247
~~~~~~~~~~~~~~~~~~~~~~~~~

All credit goes to the author of this contribution.
Kunal247

Update of family products listing query Viktor Nikolenko 27 Jan 2004
categories.php w/ family prod. and alt attribute Cord Focke 24 Sep 2003
Family Products MS2 - update Matti Ressler - "Johnson" 16 Aug 2003
Family Products MS2 update Matti Ressler - "Johnson" 6 Aug 2003
Family Products-MS2 Matti Ressler - 6 Aug 2003

Note: Contributions are used at own risk.