NemoPS Posted May 6, 2013 Share Posted May 6, 2013 Just finished writing a quick tip, prompted by a forum post. Here it is: http://nemops.com/quick-tip-product-images-prestashop-ajax-cart/ 1 Link to comment Share on other sites More sharing options...
editorstefan Posted May 7, 2013 Share Posted May 7, 2013 Thanks but its not wokring 100% In Chrome it loads long time, and shows these images: In Firefox it shows images when i add to cart, but then they dissapear when i refresh page. (the pink i added now to cart - shows) Please help! Thank you! Link to comment Share on other sites More sharing options...
NemoPS Posted May 8, 2013 Author Share Posted May 8, 2013 Prestashop version? Weird, it works on all browsers for me. Anyway, there must be something wrong in your syntax for the tpl file, for sure Link to comment Share on other sites More sharing options...
editorstefan Posted May 8, 2013 Share Posted May 8, 2013 Prestashop version? Weird, it works on all browsers for me. Anyway, there must be something wrong in your syntax for the tpl file, for sure Prestashop version? Weird, it works on all browsers for me. Anyway, there must be something wrong in your syntax for the tpl file, for sure Yes seems wierd for me also :s my site is: www.pryllager.se I have Prestashop 1.5.4 Could it be the img code? Link to comment Share on other sites More sharing options...
sebastians Posted July 10, 2013 Share Posted July 10, 2013 Were you able to fix it, or did you remove the pictures in the end? Link to comment Share on other sites More sharing options...
grzf Posted July 16, 2013 Share Posted July 16, 2013 Hi guys, I have a similar problem but in my case nothing else is showed after to go to any other page. Could you give me a tip to solve it, please? Version 1.5.4.1, tks. Link to comment Share on other sites More sharing options...
grzf Posted July 16, 2013 Share Posted July 16, 2013 i found the solution...tks anyway Link to comment Share on other sites More sharing options...
amol.garud Posted August 7, 2013 Share Posted August 7, 2013 Doesn’t work properly when i am tried it ..may be i am missing something. Its displaying broken image in cart. thanks, Link to comment Share on other sites More sharing options...
amol.garud Posted August 7, 2013 Share Posted August 7, 2013 Prestashop version? Weird, it works on all browsers for me. Anyway, there must be something wrong in your syntax for the tpl file, for sure Prestashop version? Weird, it works on all browsers for me. Anyway, there must be something wrong in your syntax for the tpl file, for sure need your help....regarding add to ajax cart display image... Link to comment Share on other sites More sharing options...
Davallen Posted September 11, 2013 Share Posted September 11, 2013 i found the solution...tks anyway Could you tell me how you fixed this? Have the same problem Link to comment Share on other sites More sharing options...
silistre Posted October 9, 2013 Share Posted October 9, 2013 "I managed to load the image in the cart but it disappears when you turn to a new page." yes I too , having the same problem Link to comment Share on other sites More sharing options...
hmc Posted December 6, 2013 Share Posted December 6, 2013 une personne a une solution pour 1.5 ? L'image se met quand la page se rafraichit seulement merci Link to comment Share on other sites More sharing options...
NemoPS Posted December 8, 2013 Author Share Posted December 8, 2013 Actually this is for 1.5 Link to comment Share on other sites More sharing options...
Detelin Markov Posted February 27, 2014 Share Posted February 27, 2014 Working perfectly on 1.5.6.1. I change picture from small_default to home_default and get style close to 1.6 cart. Thank you Nemo! Link to comment Share on other sites More sharing options...
mainada Posted June 5, 2014 Share Posted June 5, 2014 Thanks but its not wokring 100% In Chrome it loads long time, and shows these images: In Firefox it shows images when i add to cart, but then they dissapear when i refresh page. (the pink i added now to cart - shows) Please help! Thank you! Had same problem as #2 here's my solution: - Check if your theme has blockart module modifyed. If so, you have to modify .tpl's and .js from /themes/template_name/modules/blockart Link to comment Share on other sites More sharing options...
KevinNash Posted June 23, 2014 Share Posted June 23, 2014 (edited) "I managed to load the image in the cart but it disappears when you turn to a new page." yes I too , having the same problem And me too, the image shows up but disappear after a refresh After adding this code in blockcart.tpl : <span style="display: inline-block; float:left"><img src="{$link->getImageLink($product.legend, $product.id_image, 'small_default')}" alt=""></span> The first of the tutorial, says " At this point, if you have products in the cart, and refresh the page, the picture will display. " It does not in my case, on PS 1.5.4.1 so of course later it works with the ajax call but not on the classic call at refresh. Can you help Nemo1 ? Edited June 23, 2014 by KevinNash (see edit history) Link to comment Share on other sites More sharing options...
KevinNash Posted June 23, 2014 Share Posted June 23, 2014 Got it The code should be : <span style="display: inline-block; float:left"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small_default')}" alt=""></span> Like in blockcart-json.tpl 1 Link to comment Share on other sites More sharing options...
shafeeqsalman Posted April 7, 2015 Share Posted April 7, 2015 Yes. Amazing!! Ajax cart product images working fine !!! Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now