Jump to content

[SOLVED] New special ribbon


Recommended Posts

Hi,

 

I want to add ribbon when when product has got discount price. In /themes/default-bootstrap/product-list.tpl I wan to add this ribbon but I don't know how to write if statement.

{if isset($product.specificPrice) && $product.specificPrice == 1}
    <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}">
      <span class="new-label">{l s='New'}</span>
    </a>
{/if}

$product.special ? Hmm Thanks for help.

 

Kind regards

 

--edit

Solved.

{if isset($product.specific_prices.id_specific_price) && $product.specific_prices.id_specific_price != 0}
    <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}">
      <span class="new-label">{l s='Promo'}</span>
    </a>
{/if}
Edited by mr.suchy (see edit history)
Link to comment
Share on other sites

  • 1 year later...
On 6/20/2017 at 2:22 PM, mr.suchy said:

{if isset($product.specific_prices.id_specific_price) && $product.specific_prices.id_specific_price != 0} <a class="new-box" href="{$product.link|escape:'html':'UTF-8'}"> <span class="new-label">{l s='Promo'}</span> </a> {/if}

Hello

 

Which line did you add at please?

 

Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...