Jump to content

How to know if a product has combinations (in tpl)


Recommended Posts

Hello, I am looking for how to know if a product has combinations in category list. I am using Prestashop 1.7.

In the category list, I need to set the text 'From' ..{price} in each product that has combinations. 

Thanks in advance.

Best regards.  

Edited by fernandido (see edit history)

Share this post


Link to post
Share on other sites
  • 3 months later...

Try this code in your theme /templates/catalog/_partials/miniatures/product.tpl

{if $product.id_product_attribute > 0} From {/if} {$product.price}

 

Share this post


Link to post
Share on other sites
  • 4 weeks later...
1 hour ago, fernandido said:

I think It could be easy. Set by default the combination with lowest price. 

That means to enter each product and modify the entire catalog, for stores with thousands of product with combinations..

Share this post


Link to post
Share on other sites
  • 4 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...

Important Information

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