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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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