leecook_999 Posted January 31, 2005 Posted January 31, 2005 I want toadd item image to shopping cart so that it displays in teh shopping basket when browsing the site? I had a look around the froums and i cnat see that this has been done b4.. if anyone could point to the bits of code that i need to change that would be a big help...i cant seem to see what part of the shopping_cart.php creates the 'infobox' thanks people! if only the whole world was open source..... wed get a lot further as a race!
leecook_999 Posted March 13, 2005 Author Posted March 13, 2005 ta da.... i have ms2.2 few mods but nothing to major and i found a way which everyone should be able to add an image of a product to display in tehre shopping basket.hope it works for people...i dont have time to test it out properlyso let me know... in includes/boxes/shopping_cart.php change the line that looks liek this: (line 37 mine-yours will be similar although mine has been modded) $cart_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">'; into this: $cart_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) .'"><br><BR>' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], '75x', '75px'); ta da...thats it.... i was trying to work this out for ages then it dawned on me i can just copy it form the normal shopping basket page!!!doh!!! anyway hope this saves someone soem time....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.