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
  • 17587 posts

Posted 26 March 2018 - 01:38 PM #2

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


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


 

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
  • 3157 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



 

Posted 30 April 2018 - 02:53 PM #6

Thank you for the responsive. We are going to solve it immediately.

 

This customer using our Lifestyle24 theme for CS-Cart



 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 405 posts

Posted 30 April 2018 - 04:42 PM #7

Hey,

 

You could have added a class in the top element based on the value of that feature (I assume you know the feature ID), this way you could also show icons and other things appropiately across the board (e.g. a banner).

 

Kind regards.


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

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

Posted 02 May 2018 - 06:09 AM #8

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

 

You can use the following solution

 

http://forum.cs-cart...ly/#entry214065


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