This topic contains 4 replies, has 2 voices, and was last updated by visuwerk 9 years, 6 months ago. This post has been viewed 1175 times
Display thumbnail of customized product in checkout
You must be logged in to reply to this topic.
This topic contains 4 replies, has 2 voices, and was last updated by visuwerk 9 years, 6 months ago. This post has been viewed 1175 times
Hello,
after adding customized product to cart we get a second thumbnail (customized thumbnail) below the standard view. Can we add this thumbnail (customized) to the checkout review too or replace it with the standard thumbnail?
Thank you and best regards
visuwerk
Hi visuwerk,
1, By default, the customized thumbnails not only show on cart page but also checkout page (review step). You can check it on default magento theme. It might not display in custom theme, we can custom with any custom theme.
2, You can place customized thumbnail at standard view position:
– Easy way: Using jQuery to replace them
– Custom template file: It base on the theme, here is how we get the thumbnail by default:
app\design\frontend\base\default\template\pdp\checkout\cart\additional\info.phtml
Hope it help,
Tim
http://magebay.com
http://productsdesignercanvas.com/
http://www.menucreatorpro.com/
http://www.productsdesignerpro.com/
Hi visuwerk,
Please edit this file:
I develop on “rwd” theme, here’s the file that I had been modified:
app\design\frontend\rwd\default\template\checkout\cart\item\default.phtml
Using the following snippet code will get the customize thumbnails:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
$_item = $this->getItem(); $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility(); $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM); //**==== Customize Thumbnail ====**/ $_productThumbnail = $this->getProductThumbnail()->resize(180); $buyRequest = $_item->getBuyRequest()->getData(); //Replace by customized thumbnail if exists if(isset($buyRequest['extra_options'])) { $extraOptionsJson = $buyRequest['extra_options']; if($extraOptionsJson) { $_thumbnails = Mage::helper("pdp")->getThumbnailImage($extraOptionsJson); if(isset($_thumbnails[0]['image'])) { $_productThumbnail = $_thumbnails[0]['image']; } } } //**==== End Customize Thumbnail ====**/ |
Then just echo $_productThumbnail in img tag, and using css to hide the second thumbnail.
Hope it help.
Tim
http://magebay.com
http://productsdesignercanvas.com/
http://www.menucreatorpro.com/
http://www.productsdesignerpro.com/
Thank you, this works perfectly. Great support! Best regards, visuwerk.
You must be logged in to reply to this topic.