Jump to content

Add variable in cms page


Recommended Posts

Hello Prestashop Community,

I would like to add a variable sentence in the product description and in the html code of some CMS page.

Exemple :

"Subscribe today and receive the product in {February}" if the customer visit in January

and

"Subscribe today and receive the product in {March}" if the customer visit in February

 

Can you please help?

Thank you

Link to comment
Share on other sites

Hi and welcome to the forum,

You can maybe try to use this approach. 

https://www.prestashop.com/forums/topic/508542-override-dynamic-content-in-cms-page/

It is override for CMS pages that adds some variables. It have date but you probably need to

format it to display just month+1. Note, that override could be from different PrestaShop version

so maybe ask @safa for some help.

Link to comment
Share on other sites

23 hours ago, razaro said:

Hi and welcome to the forum,

You can maybe try to use this approach. 

https://www.prestashop.com/forums/topic/508542-override-dynamic-content-in-cms-page/

It is override for CMS pages that adds some variables. It have date but you probably need to

format it to display just month+1. Note, that override could be from different PrestaShop version

so maybe ask @safa for some help.

 

Thanks very much Razaro, I will try that

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...