Jump to content

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

How To Check If Recently Viewed Has An Item Rate Topic   - - - - -

 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 67 posts

Posted 29 July 2019 - 10:20 PM #1

i need to do a check to know when recently viewed has an item. 

Example:

 

{if $recently_viewed > 1} do something {/if}



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

Posted 30 July 2019 - 06:32 AM #2

Try

{if $smarty.session.recently_viewed_products}
    ....
{/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 руб.


 
  • Dexterflamez
  • Advanced Member
  • Trial users
  • Join Date: 08-Jan 18
  • 67 posts

Posted 01 August 2019 - 05:50 AM #3

 

Try

{if $smarty.session.recently_viewed_products}
    ....
{/if}

Awesome, thanks a lot!!



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

Posted 01 August 2019 - 02:06 PM #4

You are welcome!  :)


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