Jump to content

order confirmation e-mail price without discount and discount rate


Recommended Posts

I Wutend,

I have the same question since One month (without success).

So, coming together...

In PaymentModule.php  :
foreach ($order->product_list as $product)

{

$price_original = Product::getPriceWithoutReduct((int)$product['id_product'].............................

The variable return the last original price of list of product for each row in confirmation e-mail !

I don't understand, I don't understand :blink:

Thank's to the community !!

Thierry

PS 1.6

 

Link to comment
Share on other sites

Hi Thierry,

 

I have just tested with $price_original = Product::getPriceWithoutReduct((int)$product['id_product']...................

It does not work. But try this:

 

$price_original = Product::getPriceStatic((int)$product['id_product'], true, ($product['id_product_attribute'] ? (int)$product['id_product_attribute'] : null), 6, null, false, false);

 

You have to become your price without reduct! :)

  • Like 1
Link to comment
Share on other sites

Re Wutend,

Thank's a lot for your solution, you're open my eyes !!! :rolleyes:

I have a lot of discount by quantities and customer group, so for me the solution is :

$original_price = Product::getPriceStatic((int)$product['id_product'], false, ($product['id_product_attribute'] ? (int)$product['id_product_attribute'] : null), 6, null, false, false, $product['cart_quantity'], false, (int)$order->id_customer, (int)$order->id_cart, (int)$order->{Configuration::get('PS_TAX_ADDRESS_TYPE')});

I don't all understand but it's ok...

Thierry

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...