Thumbnails in cart (v. 2.72 - 2.8x)
The SiteBuilder system does not currently allow thumbnails in the Mals cart, because we don't use different thumbnails for different options. If that isn't an issue, and you'd like to include the standard item thumbnail in the cart, you can use the mod below:
-
Open the order.php file in the /go/ folder.
-
Add the code:
// MOD - ADD THUMBNAIL IMAGE $thmbquery = "SELECT SmImage FROM " .SB_DB_PREFIX ."_items WHERE ID='$productid'"; $thmbresult = mysql_query($thmbquery, $dblink); if (mysql_num_rows($thmbresult) == 1) { $thmbrow = mysql_fetch_row($thmbresult); $thumbimg = str_replace($URL, "", $thmbrow[0]); $gotolink .= "&thumb=" .$thumbimg; } // END MOD THUMBNAIL IMAGEJust after the line:
$gotolink .= "&noqty=3";
-
Save the file.
-
In Mals:
-
Select 'Cart setup'.
-
Select 'Customize'.
-
Select 'Other Messages and general settings'.
-
Under 'Thumbnails', enter your main website URL.*
-
* Note that the thumbnail will post with the image directory and name, such as "images/butterfly.jpg". It will be added onto the URL that you add under 'Thumbnails'.
Important! This will only post one thumbnail per item, regardless of the option selection. When using this mod, please check the system thoroughly to ensure it does what you expect.