Community Add-Ons
Family Products-MS2
for osCommerce Online Merchant v2.2
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.
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> ';
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> ';
Hope this helps!
Kunal247
~~~~~~~~~~~~~~~~~~~~~~~~~
All credit goes to the author of this contribution.
Kunal247
