jka Posted January 27, 2017 Share Posted January 27, 2017 We use the Foundation skin. Any chance we can disable "Customers who bought this also bought..." Right now it has a large font and it displays awkwardly between "Update Cart" & "Secure Checkout" buttons. How does we disable this feature. Thanks. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 27, 2017 Share Posted January 27, 2017 There is no setting to disable it. The skin template content.checkout.php has {if $RELATED}. You can change that to {if false && $RELATED}. If you prefer to change the base code, in /classes/catalogue.class.php, near line 1732: From: // Related Products from most recent 30 orders containing this product. if (is_array($product_list) && !empty($product_list) && ($related_orders = $GLOBALS['db']->select('CubeCart_order_inventory', array('DISTINCT' => 'cart_order_id'), array('product_id' => $product_list), array('id' => 'DESC'), 30)) !== false) { To: // Related Products from most recent 30 orders containing this product. if (false && is_array($product_list) && !empty($product_list) && ($related_orders = $GLOBALS['db']->select('CubeCart_order_inventory', array('DISTINCT' => 'cart_order_id'), array('product_id' => $product_list), array('id' => 'DESC'), 30)) !== false) { The change to the codebase cancels out a bit of database work that is now unnecessary. Quote Link to comment Share on other sites More sharing options...
jka Posted January 27, 2017 Author Share Posted January 27, 2017 You are the best. I just modified the content.checkout.php and it cleaned it up perfectly. The checkout page and view cart looks clean now. Thanks. 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.