Skip to main content

order status notification email

More
8 years 8 months ago #286286 by hlsystem
-- HikaShop version -- : 3.2.2

Hi,

We noticed the following mistake:
The order status notification email, which is sent to the customer does not contain the price of the chosen payment method.

Regards,
László

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #286289 by Jerome
Hello,

I can see a footer line added for the payment price in the order status notification preload
Code:
if(bccomp($data->cart->order_payment_price,0,5)){ if($config->get('price_with_tax')) { $t = $currencyHelper->format($data->cart->order_payment_price, $data->cart->order_currency_id); } else { $t = $currencyHelper->format($data->cart->order_payment_price - @$data->cart->order_payment_tax, $data->cart->order_currency_id); } $cartFooters[] = array( 'NAME' => JText::_('HIKASHOP_PAYMENT'), 'VALUE' => $t ); }
So I'm sorry but I cannot confirm that issue.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #286359 by hlsystem
Hi,

You are right, but if the price of the chosen payment method is a negative value, as we give a discount, than it does not appear in the email, nor on the administrator page (administrator/index.php?option=com_hikashop&ctrl=plugins).

Thank you
László

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #286363 by nicolas
Hi,

Ah yes, you want to change the line:
if(bccomp($data->cart->order_payment_price,0,5)){
to:
if(bccomp($data->cart->order_payment_price,0,5) != 0){
in the preload of the email and it will display even for negative values.
The following user(s) said Thank You: hlsystem

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #286418 by hlsystem
Thank you for your help. Finally I recognized that the php-bcmath package was not installed. After installing it, everything worked fine.

Please Log in or Create an account to join the conversation.

Time to create page: 0.169 seconds
Powered by Kunena Forum