lra4 Posted November 27, 2013 Share Posted November 27, 2013 (edited) I'm currently running tests to make sure everything are OK when I open my web store. I have an issue on the shipping address on paypal. When my customer put different addresses for billing and shipping address, click payment and is redirected to paypal, the shipping address shown up on paypal is actually the billing address. The customer will not able to change the shipping address on payapal. For example, my customer has billing address in NYC. He wants to order a gift and ship the order to Kansas. On the Paypal, it shown the NYC as shipping address. Can someone please help me? I have Prestashop 1.5.3.1 and paypal 1.2.7. I have paypal standard. Thank you. Edited November 27, 2013 by lra4 (see edit history) Link to comment Share on other sites More sharing options...
lra4 Posted November 27, 2013 Author Share Posted November 27, 2013 I think I might found the root cause. On the standard.tpl for "PayPal Standard" payment form template, line 26 - 39 mention the billing address. Below are the codes <input type="hidden" name="first_name" value="{$paypal_usa_billing_address->firstname|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="last_name" value="{$paypal_usa_billing_address->lastname|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="address1" value="{$paypal_usa_billing_address->address1|escape:'htmlall':'UTF-8'}" /> {if $paypal_usa_billing_address->address2}<input type="hidden" name="address2" value="{$paypal_usa_billing_address->address2|escape:'htmlall':'UTF-8'}" />{/if} <input type="hidden" name="city" value="{$paypal_usa_billing_address->city|escape:'htmlall':'UTF-8'}" /> {if ($paypal_usa_billing_address->id_state != 0)} <input type="hidden" name="state" value="{$paypal_usa_billing_address->state->iso_code|escape:'htmlall':'UTF-8'}" /> {/if} <input type="hidden" name="zip" value="{$paypal_usa_billing_address->postcode|escape:'htmlall':'UTF-8'}" /> <input type="hidden" name="email" value="{$paypal_usa_customer->email|escape:'htmlall':'UTF-8'}" /> {if (isset($paypal_usa_billing_address->phone_mobile) && !empty($paypal_usa_billing_address->phone_mobile)) || (isset($paypal_usa_billing_address->phone) && !empty($paypal_usa_billing_address->phone))} <input type="hidden" name="night_phone_b" value="{if isset($paypal_usa_billing_address->phone_mobile) && !empty($paypal_usa_billing_address->phone_mobile)}{$paypal_usa_billing_address->phone_mobile|escape:'htmlall':'UTF-8'}{else}{if isset($paypal_usa_billing_address->phone) && !empty($paypal_usa_billing_address->phone)}{$paypal_usa_billing_address->phone|escape:'htmlall':'UTF-8'}{/if}{/if}" /> {/if} <input type="hidden" name="address_override" value="1" /> There is no shipping address mention in the standard.tpl. Could someone please let me know if those codes are the one that causing incorrect shipping address on paypal payment form? if they are the codes, how to change into shipping address? I tried replacing $paypal_usa_billing_address with $paypal_usa_shipping_address. It didn't work. Thanks. 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