Jump to content

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

Brand Visible As A Link Rate Topic   - - - - -

 
  • HareRama
  • Advanced Member
  • Trial users
  • Join Date: 10-Mar 19
  • 79 posts

Posted 30 August 2019 - 06:06 AM #1

Hi,

I have tried to get brands working as links, however I couldn't find any function or what I found didn't work.

{$features = $product|fn_get_product_features_list}
    {foreach from=$features item="feature"}
        {if $feature.description == "activation"} 
          <div>  {$feature.variant} -should be a link </div>
        {/if}
    {/foreach}


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

Posted 30 August 2019 - 07:22 AM #2

Try something like

{$features = $product|fn_get_product_features_list}
{foreach from=$features item="feature"}
{if $feature.description == "activation"} 
<div>{if $feature.feature_type == 'E'}<a href="{"product_features.view?variant_id=`$feature.variant_id`"|fn_url}">{/if}{$feature.variant}{if $feature.feature_type == 'E'}</a>{/if}</div>
{/if}
{/foreach}

Feature should have the Brand type

 

(!) Not tested


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 руб.


 
  • HareRama
  • Advanced Member
  • Trial users
  • Join Date: 10-Mar 19
  • 79 posts

Posted 30 August 2019 - 10:06 AM #3

Working! Thank you. May I know where you got knowledge about features adaptations? I could only find few examples of forums, nothing on owners website.



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

Posted 30 August 2019 - 01:07 PM #4

Working! Thank you. May I know where you got knowledge about features adaptations? I could only find few examples of forums, nothing on owners website.

 

Many years of experience with CS-Cart

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 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3294 posts

Posted 10 September 2019 - 05:30 AM #5

What file to edit ? Thanks



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

Posted 10 September 2019 - 05:43 AM #6

What file to edit ? Thanks

 

I think, @HareRama used custom template or HTML block


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 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3294 posts

Posted 10 September 2019 - 06:07 AM #7

Never mind, found out this

 

https://forum.cs-car...e/?fromsearch=1

 

 

I think, @HareRama used custom template or HTML block