Jump to content

Quick Tip: display product images in the Prestashop Ajax Cart


Recommended Posts

Thanks but its not wokring 100% :(

 

In Chrome it loads long time, and shows these images:

77ca741216c866d385b00126e324b76b.png

 

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)

c0e1696a6fae66c3800600e69e272ed3.png

 

 

Please help! Thank you!

Link to comment
Share on other sites

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

  • 2 months later...
  • 4 weeks later...
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

  • 1 month later...
  • 4 weeks later...
  • 1 month later...
  • 2 months later...
  • 3 months later...

Thanks but its not wokring 100% :(

 

In Chrome it loads long time, and shows these images:

77ca741216c866d385b00126e324b76b.png

 

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)

c0e1696a6fae66c3800600e69e272ed3.png

 

 

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

  • 3 weeks later...

"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 :unsure:

 

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 by KevinNash (see edit history)
Link to comment
Share on other sites

  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...