Jump to content

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

Show Different Discount Label For Home Page And Detailed Product View Rate Topic   - - - - -

 
  • jema1970
  • Member
  • Members
  • Join Date: 04-May 08
  • 55 posts

Posted 18 January 2019 - 05:25 AM #1

Hi, is there a way to show one discount label on product homepage grids and other different label inside product view ?

 

 

Something like 

 

{if $products.view}  // check if im on product view page

 

    show big label here

 

{else}

 

  show small label

 

{/if}

 

 

Hope someone can help me out.

 

Tnx in advance 

 

Best Regards !


JeMa // Using Cs-Cart v.1.3.5sp3

 
  • jema1970
  • Member
  • Members
  • Join Date: 04-May 08
  • 55 posts

Posted 18 January 2019 - 06:20 AM #2

I found the way, just in case someone need it... 

 

{$runtime.controller} give You the active controller and {$runtime.mode} give you the current view.

 

Best Regards

 

J


JeMa // Using Cs-Cart v.1.3.5sp3