If this is your first visit, check our documentation. To post, register or login.

Business Name/Company Name

Locked

Started by nick1973 on 2 Oct 2019, 1:50 PM · Views: 7,157

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Oct 2019, 1:50 PM
#1
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Post #1 by nick1973

How do I get the business name or company name to report back from Paypal on Zen Cart Email receipts?

At the moment is reporting the name of the person and an address but not a business name above the address.

This is not a real address by the way but it is reporting like this:

Adam Smith
10 Cesar Street
Anytown
Any Area
AA44 5GG

Instead of:

Adam Smith
My business name
10 Cesar Street
Anytown
Any Area
AA44 5GG

The business name does appear on the order in the admin, however not with the address.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

2 Oct 2019, 3:56 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Oct 2019, 4:12 PM
#3
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Post #3 by nick1973

DrByte:

Is this truly isolated to PayPal?
The order-confirmation email is generated in the Order class, not in PayPal.

The paypal code is grabbing the business name
https://github.com/zencart/zencart/blob/c31871ba8eda38504fe8332c67a176071f5a166f/includes/modules/payment/paypalwpp.php#L1834

and putting it into the order
https://github.com/zencart/zencart/blob/c31871ba8eda38504fe8332c67a176071f5a166f/includes/modules/payment/paypalwpp.php#L1965-L2004

before the email is generated
https://github.com/zencart/zencart/blob/c31871ba8eda38504fe8332c67a176071f5a166f/includes/modules/checkout_process.php#L84-L97

by the order class
https://github.com/zencart/zencart/blob/c31871ba8eda38504fe8332c67a176071f5a166f/includes/classes/order.php#L1043-L1054

I am not sure, I just know that I had someone pay by Express Checkout and it did not report back the business name. If they pay using normal checkout methods through paypal the business name is added to the order email. So it is ONLY when a customer uses express checkout.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

2 Oct 2019, 6:07 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #4 by mc12345678

Which specific sub-version of ZC 1.5.5 is being used? I thought I remembered there being an issue with either 1.5.5 or maybe it was 1.5.6 where the business name was being omitted in emails...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Oct 2019, 10:10 PM
#5
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Post #5 by nick1973

mc12345678:

Which specific sub-version of ZC 1.5.5 is being used? I thought I remembered there being an issue with either 1.5.5 or maybe it was 1.5.6 where the business name was being omitted in emails...

I'm on 1.5.5f - obviously its a worry as an item was sent out in the post without the business name. It just had an address but the post man would not have known where to deliver it because there wasn't a business name, and a few businesses belonging to that address.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk