Order notification mail

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
10 years 10 months ago #136019

-- url of the page with the problem -- : shop.epower.jp
-- HikaShop version -- :2.2.3
-- Joomla version -- : 2.5

I have some problems with the order of some fields in the mails.

Here how I like to have it:

1. (order price) 合計 ¥ 998 (¥ 950税抜)
2. (shipping) 送料 ¥ 650
3. (Tax for order and shipping) うち消費税 ¥ 78
4. (Cash on delivery fee) 代引手数料 ¥ 315
5. (TOTAL PRICE) お支払いいただく金額 ¥ 1,962


On every mail it shows like that:

1. ¥ 7,770
2. 送料 : ¥ 650
4. 代引手数料 : ¥ 315 (3 + 4 are in the wrong order)
3. うち消費税 : ¥ 401
5. 税込合計 : ¥ 8,735

Order seen online, it looks like that:

1. 商品合計 ¥ 7,770
3. うち消費税 ¥ 401 ( 2 + 3 are in the wrong order )
2. 発送 ¥ 650
4. 代引手数料 ¥ 315
5. 合計 ¥ 8,735


How do I change the order in the mails and online?
I have no idea about php programming therefore I appreciate if you could tell me how to change those things in a easy way.
Looking forward to hear from you.

Best regards
Raphael

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #136065

Hi,
I didn't understood what you really wanted to do, and the signification of your prices, also note that :
- You can move some part of your email notification through "Hikashop->System->Email"
- Regarding the PHP customization, you should check this thread :

In HikaShop 2.2.2, we change the email system in order to have a HTML email template in one file and the PHP code in another file.
The interface does not propose you to edit the php file yet but you can access it directly in the folder "media/com_hikashop/mail/".
The PHP file is the file called "preload", you can copy the "preload" file into "preload.modified" in order to create an override (so you will keep your modification with updates).

It is planned to improve the email edition so the preload will be accessible in the backend too.

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

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
10 years 10 months ago #136164

Thanks for your help, but I'm not a crack about php or any things else. therfore I need detailed help from you guys.

Here a printscreen of the mail that my customers get after placing the order



The upper one is the the fee for "cash on delivery" and the lower one is the tax from the product and shipping fee.
I need to change the secuences of thos two.

Can you explain me how to do that?
regards
Raphael

Attachments:
Last edit: 10 years 10 months ago by ePower2007.

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

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
10 years 10 months ago #136349

Can someone tell me how to change the order of those two lines?

Thanks
Raphael

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #136395

Hi,

Yes you have to edit the view "checkout / cart" and in the <tfoot> part you have to switch the position of these two contents.
It require some PHP knowledge.

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

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
10 years 10 months ago #136620

Hi Xavier

I do not want to change the check out cart. I need to change the sequences in the mail my customers receives.
I had it right with the older version but I can't figure it out how to do it with the newer version 2.2.2
Could you explain me how to do that?

Thanks
Raphael

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

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
10 years 10 months ago #136625

Hi,

You should update to the 2.2.3
With it, you can edit the preload file of the email via the menu System>Emails when you edit an email. The preload file initializes all the data that is then used in the email template. There, you'll find the code related to the tax line and the shpiping line and you'll be able to swap them around.

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

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
10 years 10 months ago #136632

Hi Xavier

I have 2.2.3 but don't know where the code for taxes starts and ends. Could you send me an example?
If I have this one then I should be able to do it.

Thanks
Raphael

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

  • Posts: 82727
  • Thank you received: 13343
  • MODERATOR
10 years 10 months ago #136770

That's the code for the taxes:

foreach($data->cart->order_tax_info as $tax) {
				$cartFooters[] = array(
					'NAME' => $tax->tax_namekey,
					'VALUE' => $currencyHelper->format($tax->tax_amount,$data->order->order_currency_id)
				);
			}
That's the code for the shipping:
if(bccomp($data->order->order_shipping_price,0,5)){
		if($config->get('price_with_tax')) {
			$t = $currencyHelper->format($data->order->order_shipping_price,$data->order->order_currency_id);
		}else{
			$t = $currencyHelper->format($data->order->order_shipping_price-@$data->order->order_shipping_tax,$data->order->order_currency_id);
		}
		$cartFooters[] = array(
			'NAME' => JText::_('HIKASHOP_SHIPPING'),
			'VALUE' => $t
		);
	}

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

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
10 years 10 months ago #137471

Dear Nicolas

Thanks a lot for your supperb answer! This helped me a lot.
It's working fine now.

best regards
Raphael

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

Time to create page: 0.096 seconds
Powered by Kunena Forum