Note that there are some explanatory texts on larger screens.

plurals
  1. POOpencart: Pre-Populate Paypal State Field With Australian States
    primarykey
    data
    text
    <p>Having some issues with opencart 1.5.5.1 and paypal standard. I'm using Paypal.com.au (In Australia) When I started there was no telephone and no state being passed from opencart to paypal. The rest of the fields (address, email, name) were all pre-populated. So I went in to the paypayl standard code and added this to the controller: </p> <pre><code>$this-&gt;data['night_phone_b'] = html_entity_decode($order_info['telephone'], ENT_QUOTES, 'UTF-8'); </code></pre> <p>and this to the tpl file:</p> <pre><code>&lt;input type="hidden" name="night_phone_b" value="&lt;?php echo $night_phone_b; ?&gt;" /&gt; </code></pre> <p>That worked for the phone, however, no matter what I try for the state, I can't get it to work. I looked at doing something like this:</p> <pre><code>$this-&gt;data['state'] = html_entity_decode($order_info['payment_zone_code'], ENT_QUOTES, 'UTF-8'); </code></pre> <p>and the same as above but replacing <code>['payment_zone_code']</code> with <code>['payment_zone_id']</code> and <code>['zone_id']</code></p> <p>and in the tpl file: </p> <pre><code>&lt;input type="hidden" name="state" value="&lt;?php echo $state; ?&gt;" /&gt; </code></pre> <p>Anyway, I am stumped on getting the state passed over to paypal.</p> <p><em>EDIT</em> Checked here at paypal's Australian site: <a href="https://www.paypal.com/au/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside" rel="nofollow">https://www.paypal.com/au/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside</a> They don't offer any help on the issue either, all examples are for US states: "State (Must be 2 character official abbreviation)" with no help on 3 character abbreviations. Still waiting for a reply from them also</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload