Jump to content

Show Default Variant in Product Name


jsballarini

Recommended Posts

Hi to all...

i´m new here, my name is Juliano and im from Brazil.
need some help:


i have a product called: SCREW with 12 variations...

in index, the product appears only "SCREW"

I would like to show the name: "SCREW" + Default Variation in product name

 


/Catalog/_partials/miniature/product.tpl

{foreach from=$groups key=id_attribute_group item=group}
	{foreach from=$group.attributes key=id_attribute item=group_attribute}
		{if !empty($group.attributes)}
			{if $group_attribute.selected}
				- {$group_attribute.name}
			{/if}
		{/if}
	{/foreach}
{/foreach}

added the code after {$product.name}  inside {block name='product_name'} but not work.

it worked in /Catalog/product.tpl, but not in /Catalog/_partials/miniature/product.tpl

Thanks!
 

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