Jump to content

Wrong quantity in New Order Alert.


Recommended Posts

In new_order.html this is the data showing:

Order details

Order: 000005 placed on 2010-07-10
Payment: PayPal

Reference      Product                   Unit price  Quantity  Total price
VIMV620        GM-SEAT-TRACK-SOCKET-XXX    $8.01        26         $208.32
Products                                                             $8.01
Discounts                                                            $0.00
Gift-wrapping                                                        $0.00
Shipping                                                             $8.00
Total paid                                                          $16.01


The only problem is that the quantity is showing the QTY IN STOCK instead of QTY IN CART.

Should this be:

'.intval($product['cart_quantity']).'


instead of:

'.intval($product['quantity']).'

Link to comment
Share on other sites

Yes, it should be cart_quantity, not quantity. I don't understand why yours says 'quantity'. I just checked on my PrestaShop v1.3.1 installation and it says 'cart_quantity' on line 113 of modules/mailalerts/mailerts.php. Are you using an older version of PrestaShop?

Link to comment
Share on other sites

×
×
  • Create New...