Community Add-Ons

Maintainers: berrywoods
Add file to this package
Top » Credit Modules

Group Simular Products
for osCommerce Online Merchant v2.2

Groups Simular Products on the Product Info page into a combo box which links

ie:

black collar 20cm
black collar 30cm
black collar 40cm

if on the black collar 20cm page, a combo box will link to all 3 products

Legend:  Download   Report

Expand All / Collapse All

Group Similar Products chrish123 2 Feb 2011  

Prevent an SQL error appearing on the front page when you have product names with characters such as " or ' etc:

Example:

3' 5" memory foam mattress etc

In the new function created by this mod find each instance that reads $linked_products_query = etc etc...

And replace with:

$linked_products_query = tep_db_query("SELECT pd.products_name, pd.products_id, p.products_id, p.products_price, p.products_tax_class_id
FROM products_description pd, products p
WHERE left(products_name,'" . addslashes($len_cname) . "') = '" . addslashes($cname_new) . "' AND p.products_id = pd.products_id");



Note: Also noticed a bug where the first item in the dropdown cannot be clicked, it dosent take you through to the relative product_info.php page!

Group Simular Products berrywoods 1 Feb 2011