System Email Files

  • Posts: 66
  • Thank you received: 2
10 years 9 months ago #116555

Hi guys, I need to reload a backup and only want to reload the file that controls the order creation notification under the Hikashop System Emails. Which file controls this? For some reason when an order is created the user receives the email confirmation and the system is putting their billing address as their shipping as well. The information is correct in the order, so it seems to be an issue with the confirmation email only. Thanks :)

Hugs,

Natalie

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

  • Posts: 66
  • Thank you received: 2
10 years 9 months ago #116562

For trouble shooting I first downloaded the most recent version of Hikashop business and exported order_creation_notification.html.php and copied and pasted that in Hikashop>System>Emails>Order status notification and pasted in the code below, erasing what was in there. I then placed a test order and the email notification received shows the billing address as the shipping. I then went back to Hikashop>System>Emails>Order status notification and selected the option"Remove HTML customization" and tried it again by placing another test order. Again the email notification received shows the billing address as the shipping address.

This does not happen with any other email notifications and the actual orders in the system have the addresses in the correct location. Let me know what you find. Thanks guys.

Hugs,

Natalie

Code removed by a moderator. Please do not post complete file which come from the HikaShop package.
We already have them :)

Last edit: 10 years 7 months ago by Jerome.

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

  • Posts: 81625
  • Thank you received: 13085
  • MODERATOR
10 years 9 months ago #116650

We were able to reproduce the issue on our end and we're still investigating it for a solution. We should be able to provide one tomorrow.
Thanks for bearing with us in the mean time

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

  • Posts: 66
  • Thank you received: 2
10 years 9 months ago #116653

Hi Nicolas, thank you :) .

Hugs,

Natalie

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

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

Hi Natalie,

We finally found out from where the problem was coming from and fixed it, you'll just have to edit the file "hikashop2.5\administrator\components\com_hikashop\helpers\helper.php" and change these lines :

$shipping_address = $this->app->getUserState(HIKASHOP_COMPONENT.'.billing_address');
		if(!empty($shipping_address))
			$cartClass->loadAddress($order->cart, $shipping_address, 'object', 'shipping');
By :
$shipping_address = $this->app->getUserState(HIKASHOP_COMPONENT.'.shipping_address');
		if(!empty($shipping_address))
			$cartClass->loadAddress($order->cart, $shipping_address, 'object', 'shipping');

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

  • Posts: 66
  • Thank you received: 2
10 years 9 months ago #116813

Awesome! Thanks so much :)

Hugs,

Natalie

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

  • Posts: 2
  • Thank you received: 0
10 years 9 months ago #116949

it works,
thanks a lot for this fast support...

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

  • Posts: 32
  • Thank you received: 1
10 years 7 months ago #123639

Hi,

I am having exactly the same issue. I posted about it here yesterday. www.hikashop.com/forum/checkout/861991-o...customer.html#123638
I checked for the helper.php file in the back end but am unable to find it! Attaching a screenshot so that you can see what I mean. There is no helper folder! What am I missing?

thanks.

Attachments:

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

  • Posts: 26023
  • Thank you received: 4005
  • MODERATOR
10 years 7 months ago #123834

Hi,

The helper is in the backend, not in the front-end....
administrator/components/com_hikashop/helpers/helper.php

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: 101
  • Thank you received: 12
10 years 7 months ago #123906

Hi,

I'm kind of lost cause I can't find

$shipping_address = $this->app->getUserState(HIKASHOP_COMPONENT.'.billing_address');

I see the following code in the helper.php file (under administrator/components/com_hikashop/helpers/)
function hikashop_getZone($type = 'shipping'){
	$app = JFactory::getApplication();
	$shipping_address = $app->getUserState( HIKASHOP_COMPONENT.'.'.$type.'_address',0);
	$zone_id =0;
	if(!empty($shipping_address)){

I have hikashop 2.1.3

Thanks

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

  • Posts: 26023
  • Thank you received: 4005
  • MODERATOR
10 years 7 months ago #123953

Hi,

I have hikashop 2.1.3

And I am sure that is the problem. The fix (and the problem) is for HikaShop 2.2.0 and is fixed in HikaShop 2.2.1

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.
Last edit: 10 years 7 months ago by Jerome.

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

Time to create page: 0.103 seconds
Powered by Kunena Forum