Post by ManchesterGuy786 » Mon Jan 05, 2015 7:04 pm

When using PayPal Express as a payment - it doesn't send the Product Options in the Email Invoice or in the Admin Orders Section. Shipping method is used is FREE Shipping. Product Options used are radio buttons - mandatory field.

The Product Option title is displayed but the value is not sent across. Also the paypal express confirmation page is showing errors on the following page:

Page: index.php?route=payment/pp_express/expressConfirm

Errors displayed on the formatted page:

Notice: Undefined index: option_value in /catalog/controller/payment/pp_express.php on line 465
Notice: Undefined variable: shipping in /catalog/view/theme/default/template/payment/pp_express_confirm.tpl on line 33

Once Confirm Order is pressed on the above page the following error is displayed on the following page (no formatting, just error on this page):

Page: index.php?route=payment/pp_express/expressComplete
Error: Notice: Undefined index: option_value in /catalog/controller/payment/pp_express.php on line 953Warning: Cannot modify header information - headers already sent by (output started at /index.php:98) in /system/library/response.php on line 12


Posts

Joined
Wed Dec 31, 2014 2:07 am

Post by onlinemarketer » Tue Jan 06, 2015 12:44 am

Is this a known bug or is it just my installation?

Active Member

Posts

Joined
Sat May 14, 2011 8:21 pm

Post by onlinemarketer » Tue Jan 06, 2015 12:48 am

See attached image for missing options value

Attachments

image.jpg

image.jpg (161.58 KiB) Viewed 4866 times


Active Member

Posts

Joined
Sat May 14, 2011 8:21 pm

Post by onlinemarketer » Tue Jan 06, 2015 8:28 pm

Anyone have PayPal express (button) working with Product Options? - Does it list the product options on the email and order admin?

Active Member

Posts

Joined
Sat May 14, 2011 8:21 pm

Post by onlinemarketer » Thu Jan 08, 2015 9:01 am

Is there anyone that can solve this problem? I'm happy to pay for the work.

Active Member

Posts

Joined
Sat May 14, 2011 8:21 pm

Post by teratyke » Fri Jan 30, 2015 7:38 pm

Thought it was time I looked at OC2. I've installed the demo data and configured my PayPal Express settings. After being returned from PayPal to confirm the order I get this error too.. NB: There are no options on my product.

Code: Select all

Notice: Undefined variable: shipping in 
/home/sites/xxxxxxx/catalog/view/theme/default/template/payment/pp_express_confirm.tpl on line 33
I've enabled free shipping, and removed options for the product, but pretty much a vanilla install with the default demo data.

Watching this thread in case of developments.

Active Member

Posts

Joined
Sun Jun 12, 2011 3:05 pm

Post by TheRelativ » Mon Feb 09, 2015 10:20 pm

I´ve got the same Problem,
fresh install, fresh product, with or without option, same errors

normal paypal payment works, but no pp express

it doenst matter if new or returning customer

Newbie

Posts

Joined
Mon Feb 09, 2015 10:09 pm

Post by twiboost » Fri Feb 20, 2015 8:16 am

got the same problem, please can someone help with this, had to shut my site down because of this :(

Newbie

Posts

Joined
Mon Apr 23, 2012 8:17 pm

Post by brydges » Tue Mar 17, 2015 6:43 am

No one got a solution for this, getting same problem - all seems normal and works until checkout complete.

Email and admin order does not show colour option selected.


Errors :

PHP Notice: Undefined index: option_value in /public_html/catalog/controller/payment/pp_express.php on line 465

PHP Notice: Undefined variable: shipping in /public_html/catalog/view/theme/default/template/payment/pp_express_confirm.tpl on line 28

PHP Notice: Undefined index: option_value in /public_html/catalog/controller/payment/pp_express.php on line 953

Please help

Regards

New member

Posts

Joined
Fri Feb 03, 2012 3:07 am

Post by brydges » Tue Mar 17, 2015 6:58 am

Never mind, fixed this - slight error in the Opencart code :

Open file : catalog/controller/payment/pp_express.php

Change Line 465 :

From : $value = $option['option_value'];
To : $value = $option['value'];

And change line 953 :

From : $value = $option['option_value'];
To : $value = $option['value'];

Please let me know if this works for you

Regards

New member

Posts

Joined
Fri Feb 03, 2012 3:07 am

Post by TheRelativ » Mon Mar 23, 2015 4:45 pm

Thank you for the code sniplets,
after editing the lines, there is one error left for the variable $shipping in the default template

catalog/view/theme/*/template/payment/pp_express_confirm.tpl

replace $shipping with $has_shipping

i put the changes into an ocmod, just install the ocmod and ppepxress will work!

Attachments


Newbie

Posts

Joined
Mon Feb 09, 2015 10:09 pm

Post by teratyke » Mon Mar 23, 2015 9:15 pm

TheRelativ wrote:Thank you for the code sniplets,
after editing the lines, there is one error left for the variable $shipping in the default template

catalog/view/theme/*/template/payment/pp_express_confirm.tpl

replace $shipping with $has_shipping

i put the changes into an ocmod, just install the ocmod and ppepxress will work!
Thanks! That fixed the error for me. Great work.
Rob

Active Member

Posts

Joined
Sun Jun 12, 2011 3:05 pm

Post by xsteved » Tue Mar 24, 2015 11:19 am

The domo_fix_ppexpress_ocmod.xml file did not work for me (in fact, it seemed to drive the OC2 Extension Installer crazy, retrying and retrying, issuing one brief error message after another "DOMA uses same ID as ..." (whatever; too fast for me to read).

So I manually edited the files as suggested. I do wonder about line 955 in catalog/controler/payment/ppZexpress.php however--

$value = $this->encryption->decrypt($option['option_value']);

--because it also refers to ['option_value']

I'll see if this fix, which has worked for others, also works for me, when I receive my next order via PayPal Express checkout.

Thank you, everyone.
---

New member

Posts

Joined
Tue Dec 24, 2013 4:47 am

Post by TheRelativ » Tue Mar 24, 2015 2:55 pm

well, the "same id" error occours, if the mod is already installed
after the mod installation, u have to reload the mods to activate them.

but if this doesnt work, u can edit the lines by urself in the core files.

i´ve tested the ppexpress module by myself, i have 2 paypal accounts, private and business, so u can transfer between each other and u can send the money back.
But since a few weeks paypal doesnt refund 100% of the fee´s :-S

Newbie

Posts

Joined
Mon Feb 09, 2015 10:09 pm
Who is online

Users browsing this forum: No registered users and 37 guests