Page 1 of 1
payment_address JSON bug v1.5.3.1
Posted: Sun Jun 24, 2012 6:41 am
by straightlight
There were a few reports regarding the payment_address field pop out from JSON during checkout as I was also able to reproduce the problem. This issue occurs after clicking 'continue' after filling the billing details form (default template - fresh installation).
Re: payment_address JSON bug v1.5.3.1
Posted: Sun Jun 24, 2012 6:50 am
by straightlight
Ok, I managed to fix it.
In catalog/controller/checkout/payment_address.php file,
find:
Code: Select all
if ($this->request->post['payment_address'] == 'existing') {
replace with:
Code: Select all
if (!empty($this->request->post['payment_address']) && $this->request->post['payment_address'] == 'existing') {
Then, find:
Code: Select all
if ($this->request->post['payment_address'] == 'new') {
replace with:
Code: Select all
if (!empty($this->request->post['payment_address']) && $this->request->post['payment_address'] == 'new') {
In catalog/controller/checkout/shipping_address.php file,
find:
Code: Select all
if ($this->request->post['shipping_address'] == 'new') {
replace with:
Code: Select all
if (!empty($this->request->post['shipping_address']) && $this->request->post['shipping_address'] == 'new') {
find:
Code: Select all
if ($this->request->post['shipping_address'] == 'existing') {
replace with:
Code: Select all
if (!empty($this->request->post['shipping_address']) && $this->request->post['shipping_address'] == 'existing') {
I can now checkout to the next step without problems.
Re: payment_address JSON bug v1.5.3.1
Posted: Wed Aug 29, 2012 5:26 pm
by weblanzarote
Thank you!! You saved me.
Re: payment_address JSON bug v1.5.3.1
Posted: Sun Oct 21, 2012 10:00 am
by netstepinc
I experienced this issue and am assuming it's related to migrating from osCommerce with some incomplete customer profile info. VQMOD of above changes.
checkout-paymentaddress.xml
Code: Select all
<!-- Created using vQmod XML Generator by UKSB - http://www.opencart-extensions.co.uk //-->
<modification>
<id><![CDATA[Fix OSC Payment Address import]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.7.1]]></vqmver>
<author><![CDATA[Sam Mittelstaedt]]></author>
<file name="catalog/controller/checkout/payment_address.php">
<operation>
<search position="replace"><![CDATA[if ($this->request->post['payment_address'] == 'existing') {]]></search>
<add><![CDATA[if (!empty($this->request->post['payment_address']) && $this->request->post['payment_address'] == 'existing') {]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[if ($this->request->post['payment_address'] == 'new') {]]></search>
<add><![CDATA[if (!empty($this->request->post['payment_address']) && $this->request->post['payment_address'] == 'new') {]]></add>
</operation>
</file>
</modification>
checkout-shippingaddress.xml
Code: Select all
<!-- Created using vQmod XML Generator by UKSB - http://www.opencart-extensions.co.uk //-->
<modification>
<id><![CDATA[Fix OSC Shipping Address import]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.7.1]]></vqmver>
<author><![CDATA[Sam Mittelstaedt]]></author>
<file name="catalog/controller/checkout/shipping_address.php">
<operation>
<search position="replace"><![CDATA[if ($this->request->post['shipping_address'] == 'new') {]]></search>
<add><![CDATA[if (!empty($this->request->post['shipping_address']) && $this->request->post['shipping_address'] == 'new') {]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[if ($this->request->post['shipping_address'] == 'existing') {]]></search>
<add><![CDATA[if (!empty($this->request->post['shipping_address']) && $this->request->post['shipping_address'] == 'existing') {]]></add>
</operation>
</file>
</modification>
Re: payment_address JSON bug v1.5.3.1
Posted: Mon Oct 22, 2012 4:47 am
by pvtsales
not working
Re: payment_address JSON bug v1.5.3.1
Posted: Mon Oct 22, 2012 6:08 pm
by netstepinc
pvtsales wrote:not working
Sorry. I was able to get it to work on 1.5.4.1 so that is as far as I went.
You may be able to tweak it a bit.
Re: payment_address JSON bug v1.5.3.1
Posted: Fri Mar 01, 2013 10:37 am
by rogueeasyweb
Some issues in 1.5.3.1 ... causes "no available shipping methods" with manual fix. vqmod works, I get to my simple flat rate shipping, but clicking continue just resets the whole checkout page form.