Jump to content

Edit History

jsballarini

jsballarini


To be more specific

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!

jsballarini

jsballarini

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!

jsballarini

jsballarini

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!

×
×
  • Create New...