Jump to content

Where does PS set the products var for email


lkkr
 Share

Recommended Posts

Hi all,

I want to add some text to the email if the product isn't in stock or is frozen so can't be send.
To do that I'd like to know where PrestaShop is setting the product value.
In the email I only have {products}

Thanks in advance!

Share this post


Link to post
Share on other sites

It is the validateOrder function in classes/PaymentModule.php that creates the product table for the email. The table is written into the productsList variable, which is passed into the email as {products}.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More