Jump to content

Custom product template for specific product


Recommended Posts

Hi all,

I created a new product template (in catalog/templates folder) for a specific product only. To do that, I just name it product-86.tpl (where 86 is product's id).

It works fine and shows up instead the default template.

The problem I have is with the varaiations... Whenever I change the size or the color of the product, it just refresh and reloads with the new created url. But then it brings the default template... If I refresh my page manually my new template comes up.

I don't know how can I resolve this. Also I don't think is a good idea to avoid the refreshing. Maybe it's bad for the add-to-cart...

Here is the link of my product.

https://e-store.vsr.gr/index.php?id_product=86&id_product_attribute=2063&rewrite=custom-t-white&controller=product#/-/-4xl

If you try to change the size or the color, the last digits of the url will change to mach, but also the default template will be active. (With a refresh you can see that the custom template will be back, but only with manual refresh...)

 

Any ideas?

Share this post


Link to post
Share on other sites

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...

Important Information

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