Jump to content

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

Show Features Value - Date Rate Topic   - - - - -

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

Posted 01 September 2019 - 05:42 AM #1

Hi guys,

I have tried to show value of my feature "release" as DATE (xx/yy/zzzz):

{$features = $product|fn_get_product_features_list}
    {foreach from=$features item="feature"}
		{if $feature.description == "release"} 
         
<div>My date: {$feature.variant} OR? {$release.variant} </div><br />			{/if}
{/foreach}

However, this code doesn't work. It works great for other features but not here.. any idea what is missing? Value of feature is stated as date.



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

Posted 02 September 2019 - 06:06 AM #2

Try 

{if $feature.feature_type == "ProductFeatures::DATE"|enum}
            {$feature.value_int|date_format:"`$settings.Appearance.date_format`"}
{/if}

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

Posted 02 September 2019 - 05:55 PM #3

It's working! Thank you again for help!!



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

Posted 03 September 2019 - 07:02 AM #4

You are welcome! :D


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