#StackBounty: Display Customized image in place of Base image under "Recently added items"

Bounty: 50

we uploaded product image & its displaying as below :

enter image description here

We are giving an option to upload product image from frontend & customize that image with adding text, we did like that in link as below :

enter image description here

now after we click on “Add to Cart” , if we check “Recently added items to cart
, in preview its displaying original product image. but instead of that we want to display the customized image Preview.

enter image description here

In cart page, both Original [left side] & customized image [center] are displaying as below :

enter image description here

code to display Product’s base image: app/design/frontend/rwd/theme/template/checkout/cart/minicart – default.phtml

<img src="<?php echo $this->getProductThumbnail()->resize(50, 50)->setWatermarkSize('30x10'); ?>

code to display Product’s Customized image: app/code/local/Aitoc/Aitcg/Model/Image/Svg.php

public function addWhiteFontForPDF()
        $palette = $this->getPaletteSize();
        $this->setLayer('pdf_bg', '<image x="0" y="0" width="'.($palette['width']).'" height="'.($palette['height']).'" preserveAspectRatio="none" href="1x1_white_fill.png" />');

        return $this;

Inspect element code for customized image :

<image x="0" y="0" width="2000" height="1347" preserveAspectRatio="none" xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://sbdev2.kidsdial.com:81/media/custom_product_preview/quote/11_box.jpg" transform="matrix(0.13,0,0,0.13,20,162.445)" 
stroke-width="7.692307692307692" opacity="0" r="0" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); opacity: 0;"></image>

What i need to do to display Product’s customized image in place of Base image below “Recently Added items”

as base image code is in template file & customized image code is in Model file, i am not getting what to do.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.