Hey all,
I just started accepting orders from other countries and am running into a problem with pre populating paypal fields. I am using payment standard.
Anyway, It is populating the name, number and email, but not the address, state, or zip code. Any idea why this would happen? Then only thing I changed was before I was accepting only Australian orders, but now I accept orders from US, Canada, Japan and New Zealand. All the input fields have been left untouched, just added the countries in admin.
Thanks
So if I select Australia as the country, everything is passing over just fine. But When I choose any of the other countries I am not seeing address, state, or zip.
Maybe there is a setting in paypal's back end somewhere that I am missing?
For some stupid reason, "STATE" is not included in the paypal module...come on guys.
/catalog/controller/payment/pp_standard.php
you need to put in
after:
Then
/catalog/view/theme/default/template/payment/pp_standard
and put in:
after
This should make your customers nice and happy because now just about every country is taken care of. Still won't populate the Australian and Japaense states, and the Japanese post code will need to be re entered if the screen is refreshed with errors from other fields. But oh well, will work on that later.
/catalog/controller/payment/pp_standard.php
you need to put in
Code: Select all
$this->data['state'] = html_entity_decode($order_info['payment_zone_code'], ENT_QUOTES, 'UTF-8');
Code: Select all
$this->data['city'] = html_entity_decode($order_info['payment_city'], ENT_QUOTES, 'UTF-8');
Then
/catalog/view/theme/default/template/payment/pp_standard
and put in:
Code: Select all
<input type="hidden" name="state" value="<?php echo $state; ?>" />
Code: Select all
<input type="hidden" name="city" value="<?php echo $city; ?>" />
I'm having this problem, but i checked somes difference in the fields.
For example: in Opencart we have POSTCODE and in PAYPAL have field ZIP.
This could be a problem?
My OC is not sending de address to Paypal.
For example: in Opencart we have POSTCODE and in PAYPAL have field ZIP.
This could be a problem?
My OC is not sending de address to Paypal.
no.. that is just a label.. OC is passing the correct parameter name for that field.leandromello wrote:I'm having this problem, but i checked somes difference in the fields.
For example: in Opencart we have POSTCODE and in PAYPAL have field ZIP.
This could be a problem?
My OC is not sending de address to Paypal.
no.. that is just a label.. OC is passing the correct parameter name for that field.leandromello wrote:I'm having this problem, but i checked somes difference in the fields.
For example: in Opencart we have POSTCODE and in PAYPAL have field ZIP.
This could be a problem?
My OC is not sending de address to Paypal.
@Qphoria
Thanks for the answer.
I OC 2.0.3.1 i create a NEW field...
How can i add this field in Paypal mod, to populate the form?
The new field:
name=custom_field[account][1]
Thanks for the answer.
I OC 2.0.3.1 i create a NEW field...
How can i add this field in Paypal mod, to populate the form?
The new field:
name=custom_field[account][1]
You can only pass fields that paypal has an equivalent allowed parameter for.leandromello wrote:@Qphoria
Thanks for the answer.
I OC 2.0.3.1 i create a NEW field...
How can i add this field in Paypal mod, to populate the form?
The new field:
name=custom_field[account][1]
So depending on the field, you may be able to repurpose another field like "company" for "favorite color" but you can't just pass arbitrary fields over with a custom label.
Who is online
Users browsing this forum: Amazon [Bot] and 115 guests