Jump to content

Edit History

kalu

kalu


erro in word

On 2/7/2018 at 12:05 PM, razaro said:

For simple display of end date you can try with this code


			{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}

This is for product page so edit product.tpl in your theme. You can change format of date.

Note this is base solution that does not take into account specific prices by combination or some other rules. 

But for full solution there could be some module out there.

Hi.

I have tried this code and work fine, but I need the code for beginning of promotion too, I have tried "from" in code but dosen't work, can you help please?

Sorry for the "post digging"

kalu

kalu


erro in word

On 2/7/2018 at 12:05 PM, razaro said:

For simple display of end date you can try with this code


			{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}

This is for product page so edit product.tpl in your theme. You can change format of date.

Note this is base solution that does not take into account specific prices by combination or some other rules. 

But for full solution there could be some module out there.

Hi.

I have tried this code and work fine, but I need the code for Begining of promotion too, I have tried "from" in code but dosen't work, can you help please?

Sorry for the "post digging"

kalu

kalu

On 2/7/2018 at 12:05 PM, razaro said:

For simple display of end date you can try with this code


			{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}

This is for product page so edit product.tpl in your theme. You can change format of date.

Note this is base solution that does not take into account specific prices by combination or some other rules. 

But for full solution there could be some module out there.

Hi.

I have tried this code and work fine, but I need the code for Begining of promotion too, I have tried "from" in code but dosen't work, can you help please?

Sorry for the "post digging"

kalu

kalu

On 2/7/2018 at 12:05 PM, razaro said:

For simple display of end date you can try with this code


			{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}

This is for product page so edit product.tpl in your theme. You can change format of date.

Note this is base solution that does not take into account specific prices by combination or some other rules. 

But for full solution there could be some module out there.

Hi.

I have tried this code and work fine, but I need the code for Begining of promotion too, I have tried "from" in code but dosen't work, can you hel please?

Sorry for the "post digging"

×
×
  • Create New...