Slava Posted February 17, 2014 Share Posted February 17, 2014 HI, I'm using: PrestaShop 1.5.6.2 Paypal 3.6.5 (Sandbox mode) I created an account with the following: MY ADDRESS Test Customer Main Street Sallins Kildare Ireland 12345678 Then I made order choosing above address. After order I noticed that the address is changed in:My Account -> Order historyMy Account -> My AddressesBefore I made order the title of the address was MY ADDRESS after ordering PAYPAL_ADDRESSAlso client's name and the name of the country was changed. also in BO -> Orders -> order which I made -> Delivery address I can see not correct address It seems that Paypal returns and overrides the data. Could someone explain what is going on please. Link to comment Share on other sites More sharing options...
mangaware Posted March 6, 2014 Share Posted March 6, 2014 There are a lot of people with this problem. After version 3.6.2 the module paypal can overrride the customer address with the address in Paypal customer account. Its a very big problem! in my case, I estimate shipping charges. But Paypal changes the shipping address and generates different shipping costs. Link to comment Share on other sites More sharing options...
djmonkeyboy Posted March 10, 2014 Share Posted March 10, 2014 I am currently having this problem as well, prestashop 1.5.6.2 and paypal module 3.6.5 I get customers complaining daily, this needs to be addressed. The functionality expected is that the ship-to address used should be what is entered on the prestashop store site. Link to comment Share on other sites More sharing options...
visible Posted March 20, 2014 Share Posted March 20, 2014 Same problem as well, Prestashop customer address is overwritten with paypal customer address. Any ideas to solve this question? Thanks in advance! Link to comment Share on other sites More sharing options...
Slava Posted March 20, 2014 Author Share Posted March 20, 2014 Unfortunately the problem is still unresolved. I asked developer 202ecommerce here: http://www.prestashop.com/forums/topic/297730-new-version-for-paypal-module-362/ to look at this topic. BTW I'm not sure is it good place to ask about the issue.I hope that solution will come soon. Link to comment Share on other sites More sharing options...
visible Posted March 21, 2014 Share Posted March 21, 2014 I have same problem you describe here, but now i think it works, well i've tested a couple of times and now after paying with paypal module, prestashop maintain address of system, and it's not overridden with paypal address. what i did is change from true to false: /modules/paypal/views/templates/hook/integral_evolution_payment.tpl: <input type="hidden" name="address_override" value="false" /><!-- true --> i only tested with spanish address, but i suppose that should be work with all. prestashop 1.5.6.0 and paypal 3.6.5 Bye! Link to comment Share on other sites More sharing options...
Slava Posted March 21, 2014 Author Share Posted March 21, 2014 (edited) Thanks for your solution Visible! Looks like you are using "Website Payments Pro Hosted" option.I use "Website Payments Standard" option so this part of the form: <input type="hidden" name="address_override" value="false" /> is not send to my Paypal option.I think that if your solution is working for you it should work for anyone with "Website Payments Pro Hosted" option.Solution for "Website Payments Standard"Comment out: line 194 -- $address->add(); line 199 -- $address->save(); in: modules/paypal/express_checkout/payment.php /* Create address */ if (is_array($address) && isset($address['id_address'])) $address = new Address($address['id_address']); if ((!$address || !$address->id) && $customer->id) {//If address does not exists, we create it $address = setCustomerAddress($ppec, $customer); //$address->add(); // LINE 194 Comment out HERE } else if($customer->id) {//If address exists, we update it with new informations $address = setCustomerAddress($ppec, $customer, $address->id); //$address->save(); // LINE 199 Comment out HERE } I created 4 addresses:one German, one Irish, one Polish and one French.Then I made several orders assigning above addresses and seems to be good. I don't see PAYPAL_ADDRESS in any part of back or front office.Please note it's not fully tested and I'm not sure that this don't brake any other functionality. Edited March 21, 2014 by Slava (see edit history) 2 Link to comment Share on other sites More sharing options...
visible Posted March 21, 2014 Share Posted March 21, 2014 Thanks for your solution Visible! Looks like you are using "Website Payments Pro Hosted" option. I use "Website Payments Standard" option so this part of the form: <input type="hidden" name="address_override" value="false" /> is not send to my Paypal option. I think that if your solution is working for you it should work for anyone with "Website Payments Pro Hosted" option. Solution for "Website Payments Standard" Comment out: line 194 -- $address->add(); line 199 -- $address->save(); in: modules/paypal/express_checkout/payment.php /* Create address */ if (is_array($address) && isset($address['id_address'])) $address = new Address($address['id_address']); if ((!$address || !$address->id) && $customer->id) {//If address does not exists, we create it $address = setCustomerAddress($ppec, $customer); //$address->add(); // LINE 194 Comment out HERE } else if($customer->id) {//If address exists, we update it with new informations $address = setCustomerAddress($ppec, $customer, $address->id); //$address->save(); // LINE 199 Comment out HERE } I created 4 addresses: one German, one Irish, one Polish and one French. Then I made several orders assigning above addresses and seems to be good. I don't see PAYPAL_ADDRESS in any part of back or front office. Please note it's not fully tested and I'm not sure that this don't brake any other functionality. Hi Slava, we are using Standard Payment as well, so it means that in some moment of transaction, the form inside file /modules/paypal/views/templates/hook/integral_evolution_payment.tpl is sent to paypal. I think your purpose is another way to solve this question. Bye! Link to comment Share on other sites More sharing options...
RhysGoodwin Posted September 7, 2014 Share Posted September 7, 2014 Hi Slava. Thanks very much for this solution. This was causing an issue for me where the state would be updated and the customer would be charged the wrong amount for shipping. I am using Prestashop 1.6.0.8 and Paypal Europe version 3.7.2. The line numbers a slightly different but it was easy to find the code blocks in question. Thanks again, Rhys Link to comment Share on other sites More sharing options...
prstshp_joe Posted September 22, 2014 Share Posted September 22, 2014 This was a mayor pain for us. I edited both files, just in case. Thank you very much! Link to comment Share on other sites More sharing options...
jaume1979 Posted November 21, 2014 Share Posted November 21, 2014 This was a mayor pain for us. I edited both files, just in case. Thank you very much! Is the same procedure working for 3.8 version solving the ssl3 poodle problem? Regards, Jaime 1 Link to comment Share on other sites More sharing options...
peterept Posted December 22, 2014 Share Posted December 22, 2014 This is a very serious bug: We have just shipped a large furniture item to the wrong state (at a cost of $160) because PayPal overwrote the customers new address in prestashop. Now I'm out of pocket for that. The customer had their old address in PayPal and new address in Prestashop. They did not see any option in PayPal to change the address. Who supplied the PayPal module - Prestashop or PayPal ? Peter Link to comment Share on other sites More sharing options...
Slava Posted December 22, 2014 Author Share Posted December 22, 2014 Who supplied the PayPal module - Prestashop or PayPal ? All info you can find here: http://addons.prestashop.com/en/payments-gateways-prestashop-modules/1748-paypal.html It's PayPal Europe - Official Module addon site. Developer: 202 ecommerce Link to comment Share on other sites More sharing options...
trevorgilligan Posted October 20, 2016 Share Posted October 20, 2016 this module, whilst free, is a pain. i was told i had to upgrade for security reasons. i have spent two weeks trying to fix it. paypal dont care. i dont get much reply from 202 either. really p***** off at this! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now