Contributions
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
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
If your products have no manufacturer specified - then they are not displayed in family products listing. I have fixed this.
Only file catalog/includes/modules/family_products.php is updated and included for download here.
This contribution *only* contains the file catalogadmincategories.php (MS2.2) to work with
- family products (1429)
- alternative_attribute_handling-6 (174)
Modifications to contributions:
- you will find a drop-down-list with all existing families, just select and javascript will copy it to the family-field
- works with alternative attribute handling. modification: '+/-' is now selectable (dropdown list)
This update fixes an SQL error when viewing a products by clicking the product name or image in the shopping cart.
Added a filter so that the current product viewed in product_info.php does not show in the Family Products listing
Updated the package to include a missing language file and the call to it in family_products.php
Updated readme
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.
Note: Contributions are used at own risk.