order status notification email

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #286286

-- 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.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 3 months ago #286289

Hello,

I can see a footer line added for the payment price in the order status notification preload

	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.

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #286359

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.

  • Posts: 81511
  • Thank you received: 13066
  • MODERATOR
6 years 3 months ago #286363

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.

  • Posts: 16
  • Thank you received: 0
  • Hikashop Business
6 years 3 months ago #286418

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.063 seconds
Powered by Kunena Forum