Jump to content

Edit History

Ray UK

Ray UK

Hi,

Im after the smarty variable to let me know how many different variants a product has.

I dont need to know the qty or if they are in stock or not, just if the product has more than 1 option.

Its going to be for a "Show Options" for products with options or "Add to cart" button if the product has no options on the product list/category page.

So it would be something like this

{if $product.variants > 1}<CHOOSE OPTIONS>{else}<ADD TO CART>{/if}

Some of my products do have 1 option (so that they filter in the faceted search), ie a colour, so that would need to be <CHOOSE OPTIONS>

Thanks

Ray UK

Ray UK

Hi,

Im after the smarty variable to let me know how many different variants a product has.

I dont need to know the qty or if they are in stock or not, just if the product has more than 1 option.

Its going to be for a "Show Options" for products with options or "Add to cart" button if the product has no options on the product list/category page.

So it would be something like this

{if $product.variants > 1}<CHOOSE OPTIONS>{else}<ADD TO CART>{/if}

Some of my products do have 1 option (so that they filter in the faceted search), ie a colour, so that would need to be <CHOOSE OPTIONS>

Thanks

Ray UK

Ray UK

Hi,

Im after the smarty variable to let me know how many different variants a product has.

I dont need to know the qty or if they are in stock or not, just if the product has more than 1 option.

Its going to be for a "Show Options" for products with options or "Add to cart" button if the product has no options on the product list/category page.

So it would be something like this

{if $product.has_variants}<CHOOSE OPTIONS>{else}<ADD TO CART>{/if}

Some of my products do have 1 option (so that they filter in the faceted search), ie a colour, so that would need to be <CHOOSE OPTIONS>

Thanks

Ray UK

Ray UK

Hi,

Im after the smarty variable to let me know if the product has any variables.

I dont need to know if they are in stock or not, just if the product has any options.

Its going to be for a "Show Options" for products with options or "Add to cart" button if the product has no options on the product list/category page.

So it would be something like this

{if $product.has_variants}<CHOOSE OPTIONS>{else}<ADD TO CART>{/if}

Thanks

Ray UK

Ray UK

Hi,

Im after the smarty variable to let me know if the product has any variables.

I dont need to know if they are in stock or not, just if the product has any options.

Its going to be for a "Show Options" for products with options or "Add to cart" button if the product has no options on the product list/category page.

Thanks

×
×
  • Create New...