dabri Posted August 7, 2003 Share Posted August 7, 2003 Hello, I have installed Family Products v 1.0 in my osCommerce Shop http://www.oscommerce.com/community/contributions,895 Everything seems to work, I?m so proud of me :roll: and a big thanks to the aouthor of this contribution. But there is one thing I want to change: Normally on the product_info.php will the box Customers who bought this product also purchased displayed, this is correct. I configure a product to a certain Products Family Class, then shown the box Accessories and related Products: instead. But in this case, I don?t want to show only the Family Product Box, I want also to the box Also purchased. I?m not so fit in PHP, but I think this is the code to change in the product_info.php: <?php $currentid = $HTTP_GET_VARS['products_id']; $family_query = tep_db_query("select products_family from " . TABLE_PRODUCTS . " where products_id = " . $currentid . ""); $results = tep_db_fetch_array($family_query); if ($results['products_family'] != '') { include(DIR_WS_MODULES . FILENAME_FAMILY_PRODUCTS); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> Can Anybody tell me, what I have to change. so that I can display both boxes on the product_info.php? Sorry my english is not so good, I hope you understand everything! Thanks & Regards Daniel Quote Link to comment Share on other sites More sharing options...
TaFfin Posted August 13, 2003 Share Posted August 13, 2003 Add the line: include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); under: include(DIR_WS_MODULES . FILENAME_FAMILY_PRODUCTS); So it looks like this: <?php $currentid = $HTTP_GET_VARS['products_id']; $family_query = tep_db_query("select products_family from " . TABLE_PRODUCTS . " where products_id = " . $currentid . ""); $results = tep_db_fetch_array($family_query); if ($results['products_family'] != '') { include(DIR_WS_MODULES . FILENAME_FAMILY_PRODUCTS); include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> Quote SIGnificant.....right? Link to comment Share on other sites More sharing options...
dabri Posted August 14, 2003 Author Share Posted August 14, 2003 Hi TaFfin, thank you :!: It works perfect. Daniel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.