Jump to content

Edit History

kalu

kalu

Hi everyone

One of our "global moderators" #razaro, help in other topic with this code:   

The tópic: 

The code:

Quote

{if isset($product->specificPrice.to) && ($product->specificPrice.to|date_format:'%d-%m-%Y' > $smarty.now|date_format:'%d-%m-%Y')} {l s='Promotion ends: '}<span class="specific_price_to">{$product->specificPrice.to|date_format:'%d-%m-%Y'}</span> {/if}

But this code only show the end of promotion, I need to show to the begininig too, this dates come from the date of specific price on product backoffice.

 

Whith this code show the follow example:

 - Promotion ends : 06-07-2020

 

I need to show the follow example:

 - Promotion start : 05-07-2020

 - Promotion ends : 06-07-2020

 

I have read the "Smarty" code, and I have tried all and can´t do it, some one can help, please?

This is Important

 

kalu

kalu

Hi everyone

One of our "global moderators" #razaro, help in other topic with this code:   

The tópic: 

The code:

Quote

{if isset($product->specificPrice.to) && ($product->specificPrice.to|date_format:'%d-%m-%Y' > $smarty.now|date_format:'%d-%m-%Y')} {l s='Promotion ends: '}<span class="specific_price_to">{$product->specificPrice.to|date_format:'%d-%m-%Y'}</span> {/if}

But this code only show the end of promotion, I need to show to the begininig too, this dates come from the date of specific price on product backoffice.

 

Whith this code show the follow example:

 - Promotion ends : 06-07-2020

 

I need to show the follow example:

 - Promotion start : 05-07-2020

 - Promotion ends : 06-07-2020

 

I have read the "Smarty" code, and I have tried all and can´t do it, some one can help, please?

This is Important

 

×
×
  • Create New...