Not receiving order creation admin notification email

  • Posts: 3
  • Thank you received: 0
9 years 5 months ago #206093

-- url of the page with the problem -- : www.alternasweets.com
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : Chrome 43.0.2357.130
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: order_text in /folder/folder/folder/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223

Hello. When I updated my client to the latest version of Hikashop Starter they stopped receiving order creation admin notification emails when normal (guest) customers complete their orders. However, when I log in to the site and create an order, the emails work.

We are using PayPal Advanced, Hikashop Starter, and the current version of Joomla. No other Hikashop plugins are installed or active.

I checked the website access logs, which return 200, so PayPal POST is getting through to the site.

I checked the debug file and it initially returned nothing, but now shows,
"Undefined variable: order_text in" ... "/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 223"
This line reads,

$body = str_replace('<br/>',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','PayPal Advanced',$vars['RESULT'])).' '.JText::sprintf('ORDER_STATUS_CHANGED',$this->payment_params->verified_status)."\r\n\r\n".$order_text;

Any assistance would be greatly appreciated! We are planning on updating to Hikashop Business soon, but would like to get everything working before we make that leap.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 5 months ago #206169

Hi,

Please just add the code:

		$app = JFactory::getApplication();
		$order_text = '';
Before:
if($vars['secret_code'] != $this->payment_params->secret_code) {

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

  • Posts: 3
  • Thank you received: 0
9 years 5 months ago #206281

Thank you for responding so quickly.

$app = JFactory::getApplication();

was already in place so I added just the single line of code,
$order_text = '';

before,
if($vars['secret_code'] != $this->payment_params->secret_code) {

like you said. Then I created an order and still didn't receive the email. I checked the Hikashop log and found nothing new, but when I turned Joomla error reporting to maximum I received,
"Notice: Undefined index: task in /home4/nautilx0/public_html/alternasweets/components/com_hikashop/router.php on line 53"

I see another forum post asking about this message, but nobody responded to it and their suggestion didn't fix the problem either.
www.hikashop.com/forum/3-bug-report/8777...shop-router-php.html

What else can I try?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 5 months ago #206325

Hi,

So you have not more PHP error messages displayed ?

Regarding the order administrator notification email, have the From Address been changed ? In some cases, if this the receiver email address is the same as the sender one the server don't send the email.

Does this email has been edited ? If it is, please remove the override and try again.

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

  • Posts: 3
  • Thank you received: 0
9 years 5 months ago #206485

Ah ha I think I found it. There was one more error just before redirecting to PayPal but it usually flashed too quick to read. I captured it and it read,

Notice: Trying to get property of non-object in
website/website/website/website/plugins/hikashoppayment/paypaladvanced/paypaladvanced.php on line 73

This line reads,

'EMAIL' => $this->user->user_email,

I suppose this means Hikashop is trying to ask Joomla the user's email, which isn't logged in so the email doesn't exist. This also explains why logging in with an admin account makes everything work. How would I fix this? Can I just add filler text here, or define it above?

To answer your questions, the other errors are still showing up. Yes it is using a different email. No there is only a couple overrides but they are unrelated to this issue and I tried disabling all of them.


Also the ultimate goal of this is to email my client both customer address (through PayPal) and oder contents (through Hikashop). If there is be a way to send order info to PayPal Advanced then it would be solved. I don't think PayPal Advanced supports this, but please let me know if we could set that up instead.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 5 months ago #206622

Hi,

If you have warning messages appearing, the simplest is to turn off the "error reporting" setting of the joomla configuration. It will remove them.

There is no option to send the cart content to PayPal with PayPal Advanced. If I remember corretly, the Advanced API doesn't support that. However, the address of the customer is sent to PayPal with PayPal Advanced.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum