karinh
21
Thank you.
Tried that too, did not work. Placed a backup from 2 days ago back and tried it again.
Now it links to a 404 page with the link:
www.mysite.com/index.php?dispatch=product_features.view&variant_id=
No variant id is defined.
I still think the href is incorrect?
karinh
24
Thank you! This works.
Beside clearing the cache, I had to clear the cache manually in var/cache/
For the next person with the same issue:
Thanks again!
1 Like
I don’t get this working
My brand - information on my product details page is never a url.
Is this because of my template from @energothemes ?
I have the following code in product_features_short_list.tpl:
{function name="feature_value"}
{strip}
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
<a href="{"categories.view?category_id=`$product.main_category`"|fn_url}">
{/if}
{if $feature.prefix}<span class="ty-features-list__item-prefix">{$feature.prefix}</span>{/if}
{if $feature.feature_type == "ProductFeatures::DATE"|enum}
{$feature.value_int|date_format:"`$settings.Appearance.date_format`"}
{elseif $feature.feature_type == "ProductFeatures::MULTIPLE_CHECKBOX"|enum}
{foreach from=$feature.variants item="fvariant" name="ffev"}
{$fvariant.variant|default:$fvariant.value}{if !$smarty.foreach.ffev.last}, {/if}
{/foreach}
{elseif $feature.feature_type == "ProductFeatures::TEXT_SELECTBOX"|enum || $feature.feature_type == "ProductFeatures::NUMBER_SELECTBOX"|enum || $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
{$feature.variant|default:$feature.value}
{elseif $feature.feature_type == "ProductFeatures::SINGLE_CHECKBOX"|enum}
{$feature.description}
{elseif $feature.feature_type == "ProductFeatures::NUMBER_FIELD"|enum}
{$feature.value_int|floatval}
{else}
{$feature.value}
{/if}
{if $feature.suffix}<span class="ty-features-list__item-suffix">{$feature.suffix}</span>{/if}
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
</a>
{/if}
{/strip}
{/function}
Can anybody helm me please?
I want to link to the brand information.
Like from https://shomugo.at/baumarkt-und-do-it-yourself/bauen-und-baustoffe/erneuerbare-energien/solarenergie/hyundai-hie-s415dg-fb-415wp-fb-halbzelle-perc-bfr-01-000868/ to Produkte von Astronergy auf SHOMUGO online kaufen
Best regards
Ronny
It is required to examine the issue. Possibly, 3rd party theme uses own template to display product features
Nope. It was a coding error. I changed
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
<a href="{"categories.view?category_id=`$product.main_category`"|fn_url}">
{/if}
to
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
<a href="{"product_features.view?variant_id=`$feature.variant_id`"|fn_url}">
{/if}
and it worked
2 Likes