bbw Posted July 28, 2004 Posted July 28, 2004 I would like to... a: get rid of the thing on the final checkout success page that says notify me of updates to these products and it has the checkboxes by the products the user just ordered. Have had no luck taking a stab at it myself, and previously got sort of incomplete instructions on this for my particular skill level with PHP etc. b: get of the "customers who bought this also bought blah blah - again took a stab at removing and/or commenting out and was unsuccessful. Any takers? Thanks! bbw
rcmdesign Posted July 29, 2004 Posted July 29, 2004 Sure. a. Look for the following in checkout_success.php <?php if ($global['global_product_notifications'] != '1') { echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">'; $products_displayed = array(); for ($i=0, $n=sizeof($products_array); $i<$n; $i++) { if (!in_array($products_array[$i]['id'], $products_displayed)) { echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>'; $products_displayed[] = $products_array[$i]['id']; } } echo '</p>'; } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> and replace with <?php /*if ($global['global_product_notifications'] != '1') { echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">'; $products_displayed = array(); for ($i=0, $n=sizeof($products_array); $i<$n; $i++) { if (!in_array($products_array[$i]['id'], $products_displayed)) { echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>'; $products_displayed[] = $products_array[$i]['id']; } } echo '</p>'; } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; }*/ ?> b. Look in product_info.php near the bottom for <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> and replace with <?php /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } }*/ ?> That should do it!
bbw Posted July 30, 2004 Author Posted July 30, 2004 Excellent!! The fix for the notification thing worked perfectly. But the fix for the customer also bought didn't work. BUT it was late and I was very bleary eyed, so I'm going to try it again later this evening. I'll keep you posted! Thanks again! Brooke :D
bbw Posted July 31, 2004 Author Posted July 31, 2004 Rob: Ok I retried the fix for the "customer also bought" and it didn't work fur-sure. Any other ideas? Or anyone else out there have a thought? Thanks again for the other one tho Rob! bbw
bbw Posted August 4, 2004 Author Posted August 4, 2004 Anyone? Eliminating "customer also bought" box? thanks! bbw
bbw Posted August 4, 2004 Author Posted August 4, 2004 I figured it out on my own! Can't believe it. Tried a bunch more stuff to the product_info.php page, but nothing worked. I finally wondered if the module it calls on would be the key. Not knowing enough (anything at all) about php, I just tried to comment out the entire page of code on the also_purchased_products.php page in the modules folder. It worked! If someone else has a better way lemme know. later! bbw :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.