Jump to content

[Solved] Admin Product Out Of Stock Notifications Product Id?


Recommended Posts

Hi Guys

 

I have the following problem with this auto mailer, the product out of stock notification does not show product ID or the image, please see the example image below, in which file would this mailer be in so I can edit it to show these details ( .php or .tpl ) or is there a setting in the admin panel for this?

 

Any info on this will be greatly appreciated, thanks

screen.jpg

Edited by Drakinfly (see edit history)
Link to comment
Share on other sites

Hi

 

that template by default do not display image and ID but you can try to add that by yourself.

 

Check https://github.com/PrestaShop/mailalerts/blob/master/mailalerts.php#L519

here are template variables set that are used later in email html and txt templates.

 

So to add product id try this 

			$template_vars = array(
				'{qty}' => $quantity,
				'{last_qty}' => $ma_last_qties,
				'{product}' => $product_name,
				'{productID}' => $id_product
			);

and then edit both html and txt of productoutofstock email template. And add {productID} with code text you want.

For image there is bit more work but try to find php code of some template that already sends email with images.

  • Like 2
Link to comment
Share on other sites

  • 6 months later...
  • 4 years later...

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