Jump to content
jsballarini

Write default variant in Product Name - Index

Recommended Posts

Hi to all...

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

Product - Default Variation
SCREW - 10 cm lenght 

Why? 
The price shown is the default variation, so I would like the product title in the index to be the default variation.


/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!

Edited by jsballarini
To be more specific (see edit history)

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