Jump to content

New order email template, sale items.


dothtmaster

Recommended Posts

In mailalerts.php

When a new order is placed, it s giving the total price for an item. I need it to display totalprice-sale price. Example:

product costs 10.00, product is on sale for 8.00

When an order is placed the price should display 8.00 not 10.00

Can anyone help?

Link to comment
Share on other sites

        $itemsTable = '';
       $products = $order->getProducts();

       $customizedDatas = Product::getAllCustomizedDatas(intval($params['cart']->id));
       Product::addCustomizationPrice($products, $customizedDatas);
       foreach ($products AS $key => $product)
       {
           //$unit_price = $product['product_price_wt'];
           $unit_price = $product['product_price'];
           $price = $product['total_price'];




I believe it needs to be changed here in mailalerts.php

Any insight?

Link to comment
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
×
×
  • Create New...