Jump to content
Diego

1.7.4.2 Crosseling product detail

Recommended Posts

My product detail page has a crosselling product carousel, theme developers told me it's based on PS_CROSSELLING so i'm posting this here. 

The issue, at least for what i could understand by testing, is that it has something to do with the template/cache.

Extract of the template code:

other.tpl

5be1658961ee0_Schermata2018-11-06alle10_53_27.png.b4a5f7cceeb959b5176d616d15323625.png

product.tpl

5be1658b844e4_Schermata2018-11-06alle10_53_46.thumb.png.ab618ea22df1168d492df90ca5405577.png

pl_grid_layout is set to 1, im sure of this looking at the HTML code + theme setting, so inside product-minature-1 i have this: 

{block name='product_add_cart'}
   {include file='catalog/_partials/miniatures/_partials/product-miniature-btn.tpl' nocache}
{/block}

 

Looks like that if i leave it like this,everything works fine (see attachments, i can see all the carousel product detail info (title,description,stars). If i remove nocache

and i have active cache setting in backend (see screenshots) then only the first product has all the info, the following one has not even generated HTML for those parts. Looking at the compiled smarty file i can say that changing that "nocache" actually change what is generated drastically. 

Another way to make this work is to simply disable cache in backend setting, but since it's a production webiste with some decent traffic i would like to keep cache enabled and find a solution for this.

I couldn't find any way to debug this, enabling debug mode, forcing php to show errors, looking at server log didn't help in any way,

 

Any suggestion/fix for this?

 

Thanks

 

SOFTWARE VERSION:

Prestashop: 1.7.4.2 (migrated form an old 1.6.x if it can help understand something with MigrationPro)

Theme: warehouse 4.1.7

Schermata 2018-11-05 alle 16.10.05.png

Schermata 2018-11-05 alle 16.10.19.png

Schermata 2018-11-05 alle 16.10.32.png

Schermata 2018-11-05 alle 16.11.05.png

Share this post


Link to post
Share on other sites

Hello, did you find a solution to this error?

 

Thanks

Share this post


Link to post
Share on other sites

Hello @psg,

We no longer work for that customer but from what i can remember (this post is 1y old eheh) we didn't find any fix for that, i guess we had to leave that "nocache" in the template inclusion part but we never found the real reason behind that behaviour

 

Hope you have better luck,

Cheers

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More