giantvintage Posted March 15, 2015 Share Posted March 15, 2015 I want to include the total number of products in my order confirmation emails (which are plain text only). Example: Shipping (6 items): $12.00 I read in another post that I should add the variable {$cart_qties} to my template, but I tried that and it only displays {$cart_qties} in the email. So then I tried adding: '{$cart_qties}' => (int)$cart->nbProducts(),in the file PaymentModule.php but then the checkout page gets stuck and I get no order confirmation email. I'm using 1.6 cart This seems like it should be simple...what am I doing wrong here? Link to comment Share on other sites More sharing options...
rocky Posted March 15, 2015 Share Posted March 15, 2015 You're going in the right direction, but your syntax is wrong. Try the following: '{cart_qties}' => (int)$this->context->cart->nbProducts(), Link to comment Share on other sites More sharing options...
giantvintage Posted March 15, 2015 Author Share Posted March 15, 2015 That's it exactly...works perfect! Wish I'd posted sooner...thanks:) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now