Jump to content

Check If Product Has Attributes


Recommended Posts

What would be the best way to check in template whether product has attributes or no.

In some tpl files I have seen something like $product->hasAttributes() method so this may seem clear here.

But in others something like that seems to be normal $product.id_product_attribute == 0 or >0. It returns the id of default attributes combinations I guess.

 

Is there some consistent/proper/preffered way to do the check?

Link to comment
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...