Jump to content

How to add remaining product QTY in stock to the new order email?


Recommended Posts

Figured it out. In mailalerts.php replace line 113 (in v1.3.1) replace:

 

<td style="padding:0.6em 0.4em; text-align:center;">'.intval($product['cart_quantity']).'</td> 

 

With:

 

 

<td style="padding:0.6em 0.4em; text-align:center;">'.intval($product['cart_quantity']).' ('.intval($product['quantity_attribute'] - 1).' left)</td>

Link to comment
Share on other sites

  • 1 year later...

I provided the "solution" above, but I need to clarify 2 things: 

 

1) It was for a very old version of PS (1.3), but that area hasn't changed much so it might still apply, however;

2) It never worked to begin with. It didn't work properly when you had combinations. My solution was crap, I'm not exactly the best coder:)

Link to comment
Share on other sites

  • 1 month 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...