Jump to content

Paypal puts invoice address over the registered shipping address at our page!


La Tienda

Recommended Posts

Hi!

 

We have recently opened our shop that we run with the Prestashop 1.6.1.1. but have found a problem with the Paypal Mexico v.1.3.11 module that we use:

When a client registers at our page antamashop.com she needs to register a shipping address, or various shipping addresses. But when she tries to pay with the Paypal, the paypal module overwrites the registered shipping address at our page and gives us only the Paypal invoice/shipping address as the "real" shipping address, although this can be incorrect!

 

For example, if the paypal is registered in another country, the shipment will go there and no to the client.

Or if the client wants to send to a friend, relative or if the paypal address is registered into another address, the shipment will go to an incorrect direction.

 

I tried to do the coding at the standard.tpl file (that I didn't however find under my purchased theme files) at paypalmx

and use 

 

<input type="hidden" name="address_override" value=”0” />

 

when the value used to be 1, but no changes.

I did not find any shipping address either, only billing address in the code:

 

<form action="{$paypal_mx_action|escape:'htmlall':'UTF-8'}" method="post">
<p class="payment_module">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="charset" value="utf8" />
<input type="hidden" name="business" value="{$paypal_mx_business_account|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="currency_code" value="{$currency->iso_code|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="custom" value="{$cart->id|intval};{if isset($cart->id_shop)}{$cart->id_shop|intval}{else}0{/if}" />
<input type="hidden" name="amount" value="{$cart->getOrderTotal(true)|floatval}" />
<input type="hidden" name="first_name" value="{$paypal_mx_billing_address->firstname|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="last_name" value="{$paypal_mx_billing_address->lastname|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="address1" value="{$paypal_mx_billing_address->address1|escape:'htmlall':'UTF-8'}" />
{if $paypal_mx_billing_address->address2}<input type="hidden" name="address2" value="{$paypal_mx_billing_address->address2|escape:'htmlall':'UTF-8'}" />{/if}
<input type="hidden" name="city" value="{$paypal_mx_billing_address->city|escape:'htmlall':'UTF-8'}" />
{if ($paypal_mx_billing_address->id_state != 0)}
<input type="hidden" name="state" value="{$paypal_mx_billing_address->state->iso_code|escape:'htmlall':'UTF-8'}" />
{/if}
<input type="hidden" name="zip" value="{$paypal_mx_billing_address->postcode|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="email" value="{$paypal_mx_customer->email|escape:'htmlall':'UTF-8'}" />
{if (isset($paypal_mx_billing_address->phone_mobile) && !empty($paypal_mx_billing_address->phone_mobile)) || (isset($paypal_mx_billing_address->phone) && !empty($paypal_mx_billing_address->phone))}
<input type="hidden" name="night_phone_b" value="{if isset($paypal_mx_billing_address->phone_mobile) && !empty($paypal_mx_billing_address->phone_mobile)}{$paypal_mx_billing_address->phone_mobile|escape:'htmlall':'UTF-8'}{else}{if isset($paypal_mx_billing_address->phone) && !empty($paypal_mx_billing_address->phone)}{$paypal_mx_billing_address->phone|escape:'htmlall':'UTF-8'}{/if}{/if}" />
{/if}
<input type="hidden" name="address_override" value=”0” />
 
{assign var="paypal_mx_total_discounts" value=$cart->getOrderTotal(true, Cart::ONLY_DISCOUNTS)}
{if $paypal_mx_total_discounts == 0}
{foreach from=$cart->getProducts() item=paypal_mx_product name="paypal_mx_products"}
<input type="hidden" name="item_name_{$smarty.foreach.paypal_mx_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_mx_product.name|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="amount_{$smarty.foreach.paypal_mx_products.index+1|escape:'htmlall':'UTF-8'}" value="{Tools::ps_round($paypal_mx_product.price, 2)|floatval}" />
<input type="hidden" name="quantity_{$smarty.foreach.paypal_mx_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_mx_product.quantity|intval}" />
{/foreach}
{assign var="paypal_mx_total_shipping" value=$cart->getOrderTotal(true, Cart::ONLY_SHIPPING)}
{if $paypal_mx_total_shipping}
<input type="hidden" name="item_name_{$smarty.foreach.paypal_mx_products.index+2|escape:'htmlall':'UTF-8'}" value="{l s='Shipping' mod='paypalmx'}" />
<input type="hidden" name="amount_{$smarty.foreach.paypal_mx_products.index+2|escape:'htmlall':'UTF-8'}" value="{$paypal_mx_total_shipping|floatval}" />
<input type="hidden" name="quantity_{$smarty.foreach.paypal_mx_products.index+2|escape:'htmlall':'UTF-8'}" value="1">
{/if}
{else}
<input type="hidden" name="item_name_1" value="{l s="Your order" mod="paypalmx"}" />
<input type="hidden" name="amount_1" value="{$cart->getOrderTotal(!$show_taxes)|floatval}" />
{/if}
 
<input type="hidden" name="tax_cart" value="{$paypal_mx_total_tax|floatval}" />
 
<input type="hidden" name="notify_url" value="{$paypal_mx_notify_url|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="return" value="{$paypal_mx_return_url|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="cancel_return" value="{$paypal_mx_cancel_url|escape:'htmlall':'UTF-8'}" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="bn" value="PrestashopUS_Cart" />
<input id="paypal-standard-btn" type="image" name="submit" src="https://www.paypalobjects.com/{if $lang_iso == 'en'}en_US{else}{if $lang_iso == 'fr'}fr_CA{else}{if $lang_iso == 'es'}es_ES{else}en_US{/if}{/if}{/if}/i/bnr/horizontal_solution_PPeCheck.gif" alt="" /> {l s='Pay with PayPal' mod='paypalmx'}
</p>
</form>
 
 
I don't really have coding skills so I don't know how to change this bug and feel a little lost....
Please give me an advice to get the shop rolling on again!!
 
Thank you very much!!
 
Link to comment
Share on other sites

  • 1 month later...

Hi luisluna,

 

I didn't find any solution.

Paypal does not answer and I've decided to take the shop into a new level; I'm changing into Shopify in these weeks...

I've had so lot of problems with the page and theme that I bought and it's taking all my time. So I prefer to use that time into creating the products, design and other areas than with the IT problems I don't have any clue about, neither do I have interest in learning about it. So I prefer paying a little bit more, save time and use a very simple and super clear system that works and where I get client service and support each time I need it...

So all the months work almost for nothing and a loss of money, but at least I learned where not to put my time and money haha...

Good luck with this!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...