I'm searching for a specific function at the Mage Core but i cannot find it! We're selling temporary tattoos online and customer are able to upload their image (Custom Option File Attachment).

It would be awesome, if the uploaded image would be displayd as thumbnail in the shopping cart.

I got an idea how i can solve my problem, but i cannot find this one function I need!

Here is the place where the thumbnail should be displayed:

Here is the place where the thumbnail should be displayed.

Here is the code i need to change.enter image description here

Thx for your help!


just change the return function at line 525 in the magento file


to the following:

return sprintf('<img src="%s" alt="%s" class="cartCustomerImage" /><a class="cartCustomerImageDesc" href="%s" target="_blank">%s</a> %s',
    $this->_getOptionDownloadUrl($urlRoute, $urlParams),
    $this->_getOptionDownloadUrl($urlRoute, $urlParams),
  • Thx for your help dude :) ! You saved me a lot of time :) !
    – Lando
    Sep 18 '15 at 7:39
  • editing core !!! big mistake. Sep 18 '15 at 7:53
  • @RajeevKTomy I know that editing the core is not the best way to solve my problem ... If you have a better idea, tell me !
    – Lando
    Sep 22 '15 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.