Do your product pages load very slowly, more slowly than other pages in your store? This free CubeCart 4 mod may help! The CubeCart 4 feature 'Customers who bought this also bought...' can cause your product pages to load extremely slowly if you have a large number of customer orders in your database.
Note: Instead of using the default 'Customers who bought this also bought...' feature I highly recommend Related Products with Auto Search, which automatically displays other products within your store which are similar to the product the customer is currently viewing, thus increasing sales by showing the customer other products which they are likely to want. This mod also also allows you to manually choose which related products you would like to display for each product in your store.
If you are new to CubeCart mods please refer to my Hints & Tips document.
Instructions to disable the 'Customers who bought this also bought...' feature.
If you are using CubeCart 4.3.0 or a more recent version (e.g. 4.3.1)
DOWNLOAD and OPEN includes/content/viewProd.inc.php file.
Make a BACKUP copy of the file.
FIND this line:
if($pastOrders) {
REPLACE with this block:
/* start mod: Disable the 'customers who bought this' feature - by Estelle */ /* if($pastOrders) { */ if (false) { /* end mod: Disable the 'customers who bought this' feature - by Estelle */
SAVE and UPLOAD the file.
If you are using CubeCart 4.2.3 or an older version (i.e. 4.2.x, 4.1.x, 4.0.x)
DOWNLOAD and OPEN includes/content/viewProd.inc.php file.
Make a BACKUP copy of the file.
FIND this line:
if (version_compare('4.1', $db->serverVersion(), '<=')) {
REPLACE with this block:
/* start mod: Disable the 'customers who bought this' feature - by Estelle */ /* if (version_compare('4.1', $db->serverVersion(), '<=')) { */ if (false) { /* end mod: Disable the 'customers who bought this' feature - by Estelle */
SAVE and UPLOAD the file.
CubeCart Version: 4