Jump to content

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

Feature Style Class Rate Topic   - - - - -

 

Posted 26 March 2018 - 08:27 AM #1

Hey everyone,

 

Does anyone know how to add a class to a product feature?

 

My website contains 2 features; gebruikt and nieuw.

I want to add a class to this feature so I can adjust the style of feature. Nieuw must be blue and the other green.

 

See feature above the product price.

https://www.lkv.nl/l...2c-bureaustoel/

 

Many thanks!



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

Posted 26 March 2018 - 01:38 PM #2

Unfortunately CS-Cart does not allow to add custom CSS classes to product features


DISCOUNTS UNTIL APRIL, 27! 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 305     Multi-Vendor              USD 1150    CS-Cart RU                         21500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 505      CS-Cart RU + UniTheme    33000 руб.


 

Posted 17 April 2018 - 09:03 AM #3

Or is it possible to split the features in the product-list? Now all features are displayed in the same row without HTML tags.



 

Posted 17 April 2018 - 09:58 AM #4

I solved this issue. Open /design/themes/-your-theme-/templates/views/products/components/product_features_short_list.tpl

 

Replace this original code:

{feature_value feature=$feature}{if !$smarty.foreach.features_list.last}, {/if}

With:

<span class="{$feature.description}">{feature_value feature=$feature}{if !$smarty.foreach.features_list.last}, {/if}</span>

The HTML code is as follow:

<div class="ty-product-list__feature">
            <div class="cm-reload-450" id="product_features_update_450">
            <input name="appearance[show_features]" value="1" type="hidden">
    <span class="Gebruikt">Gebruikt</span>
</div>



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

Posted 17 April 2018 - 11:03 AM #5

Hey everyone,

 

Does anyone know how to add a class to a product feature?

 

My website contains 2 features; gebruikt and nieuw.

I want to add a class to this feature so I can adjust the style of feature. Nieuw must be blue and the other green.

 

See feature above the product price.

https://www.lkv.nl/l...2c-bureaustoel/

 

Many thanks!

 

 

Is this your website in link?

 

Some problems on sidebox

 

https://www.lkv.nl/fauteuils-nl/

 

try opening Kleur and Prijs together, in firefox they hover one other each other

 

PS

 

nice clean look


4.5.2 SP2