Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Link To Brandpage From Product Rate Topic   - - - - -

 
  • Ranger-1
  • Member
  • Trial users
  • Join Date: 20-Aug 11
  • 25 posts

Posted 21 March 2019 - 01:39 PM #1

On the product details page, there is a small brand logo. We would like to:

 

1. Link to the product brand page when you click on the logo

2. Display the logo bigger and in better resolution.

 

Any ideas?



 
  • Ranger-1
  • Member
  • Trial users
  • Join Date: 20-Aug 11
  • 25 posts

Posted 21 March 2019 - 01:40 PM #2

Here is a screenshot

Attached Files



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19709 posts

Posted 22 March 2019 - 05:58 AM #3

1. Please take a look

 

https://forum.cs-car...ge/#entry267680

 

2. Please take a look

 

In the same file change try to replace

{assign var="image_size" value=$image_size|default:80}

with

{assign var="image_size" value=$image_size|default:160}

Then clear cache


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Ranger-1
  • Member
  • Trial users
  • Join Date: 20-Aug 11
  • 25 posts

Posted 23 April 2019 - 06:17 PM #4

I tried the code as mention i the link above. It seems to work when the brand is displayed as "text", but when there is a logo it does not contain a link. I have also tried to update the image, but it seems to be very small still. 

{assign var="image_size" value=$image_size|default:160}
{function name="feature_value"}
    {strip}
        {if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
		<a href="{"product_features.view?variant_id=`$feature.variant_id`"|fn_url}">
        {/if}
        {if $feature.prefix}{$feature.prefix}{/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}
        <div class="ty-control-group">
            {foreach from=$feature.variants item="fvariant" name="ffev"}
            {if $smarty.foreach.ffev.first}<span class="ty-product-feature__label">{$feature.description nofilter}:</span>{/if}<em>{$fvariant.variant|default:$fvariant.value}</em>{if !$smarty.foreach.ffev.last}, {/if}
            {/foreach}
        </div>
        {elseif $feature.feature_type == "ProductFeatures::TEXT_SELECTBOX"|enum || $feature.feature_type == "ProductFeatures::NUMBER_SELECTBOX"|enum || $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
            <div class="ty-control-group"><span class="ty-product-feature__label">{$feature.description nofilter}:</span><em>{$feature.variant|default:$feature.value}</em></div>
        {elseif $feature.feature_type == "ProductFeatures::SINGLE_CHECKBOX"|enum}
            <div class="ty-control-group"><span class="ty-product-feature__label">{$feature.description}:</span></div>
        {elseif $feature.feature_type == "ProductFeatures::NUMBER_FIELD"|enum}
            <em>{$feature.value_int|floatval}</em>
        {else}
            <div class="ty-control-group"><span class="ty-product-feature__label">{$feature.description}:</span><em>{$feature.value}</em></div>
        {/if}
        {if $feature.suffix}{$feature.suffix}{/if}
        {if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
            </a>
        {/if}
    {/strip}
{/function}

{if $features}
    {strip}
        {if !$no_container}<div class="ty-features-list">{/if}
            {foreach from=$features name=features_list item=feature}
                {if $feature_image && $feature.variants[$feature.variant_id].image_pairs}
                    {assign var="obj_id" value=$feature.variant_id}
                    {include file="common/image.tpl" image_width=$image_size images=$feature.variants[$feature.variant_id].image_pairs no_ids=true}
                {else}
                    {feature_value feature=$feature}{if !$smarty.foreach.features_list.last}{/if}
                {/if}
            {/foreach}
        {if !$no_container}</div>{/if}
    {/strip}
{/if}


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19709 posts

Posted 24 April 2019 - 05:45 AM #5

Please share or PM URL of such page. As far as I can see, image width is used for the image displaying


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.