Post by randelld » Fri Mar 06, 2020 1:37 am

Hi,
We had an invoice email come through last night.
It had the billing address missing
It had flat rate delivery charge even though it was in the free shipping bracket
It was missing the VAT
We had one single on of these a few months ago.
All invoices that have come through today are fine.
Has anyone else seen this? It does seem to be random.

Thank you

Active Member

Posts

Joined
Fri Aug 24, 2012 2:20 pm

Post by Quino » Fri Mar 06, 2020 2:25 am

what is an invoice email, the order confirmation email?
In IT there is no such thing as random, check both for a pattern.

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by randelld » Fri Mar 06, 2020 2:31 am

Yes the order notification email. ::)

Active Member

Posts

Joined
Fri Aug 24, 2012 2:20 pm

Post by sw!tch » Fri Mar 06, 2020 2:36 am

Check your error logs. See if anything is in there.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by randelld » Fri Mar 06, 2020 3:13 pm

Thank you switch, I will check that and report my findings.

Active Member

Posts

Joined
Fri Aug 24, 2012 2:20 pm

Post by Quino » Fri Mar 06, 2020 5:19 pm

Also check the database for those orders if those fields are correct there.

You need to check in order if the problem is with :
1) the saving of these orders themselves. (easy)
2) the parameters passed when calling the mail function via the event system (more tricky)
3) the mere construction of the mail (easy)

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by randelld » Sat Mar 07, 2020 2:47 am

Hi
The thing that is going to make this difficult is that virtually all orders come through perfectly. We had this one which was incorrect and we had one that did the same about 1-2 months ago.
I'm going through the logs and it looks like this has something to do with it
Undefined index: firstname in /home/domain/public_html/shop/catalog/controller/event/activity.php on line 125
Does this mean anything to you?

Active Member

Posts

Joined
Fri Aug 24, 2012 2:20 pm

Post by sw!tch » Sat Mar 07, 2020 4:03 am

Did the order have the correct info in the Admin panel or was that also missing Billing Address?

Undefined index: firstname in /catalog/controller/event/activity.php on line 125
In 3.0.3.2 activity.php on line 125 is related to // model/account/customer/addAffiliate/after
https://github.com/opencart/opencart/bl ... y.php#L125

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by randelld » Sun Mar 08, 2020 5:24 pm

Hi Switch,
I've just checked the order in the admin back end and it includes the faults there also.
No delivery address
No tax
Flat rate charge

Active Member

Posts

Joined
Fri Aug 24, 2012 2:20 pm

Post by sw!tch » Sun Mar 08, 2020 5:48 pm

What payment gateway? Was the order sent to the gateway correct? (e.g did it charge the correct amount? ). Thinking its a session issue. Hard to track without logs. I would see if that customers order appeared under missing orders, maybe it happens when the customer goes back to edit their address or something.

Something like this is hard to track when its random, you need debug logs and then can compare against successful & unsuccessful. The fact you're getting little information back makes it hard to track.

Also try the cache control header fix - There can be cache problems with Ajax on early version of IE, where values on checkout fail to update. Maybe the customer is using an old browser. viewtopic.php?f=201&t=207498#p737358

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Quino » Mon Mar 09, 2020 12:16 am

personally I write all post records from account and checkout routes to a separate log specifically for these "random occurrences" so I can always go back and see what was posted by which form, ajax call or gateway.

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by randelld » Mon Mar 09, 2020 6:05 pm

Hi Quino/Switch
I have found the issue.
One of the products had no shipping required set in products.
I've set that and it's now working fine.
Thank you for your assistance

Active Member

Posts

Joined
Fri Aug 24, 2012 2:20 pm

Post by straightlight » Mon Mar 09, 2020 6:26 pm

Not a bug. The topic has now been moved to the: OpenCart 3.0 Support General Support and addressed as solved.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 207 guests