[Skip to main content](#vessel-content)

#   Selecting payment method submits the checkout page

##

- **[otx](/forum/user/14566-otx "View otx's Profile")**
- [![otx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14566-otx "View otx's Profile") Topic Author
- [ Offline](/forum/user/14566-otx)

Less More

- Posts: 53
- Thank you received: 2
-
-

12 years 4 weeks ago -  12 years 4 weeks ago [\#177387](#177387) by [otx](/forum/user/14566-otx "View otx's Profile")  *[Selecting payment method submits the checkout page](/forum/27-checkout/872659-selecting-payment-method-submits-the-checkout-page#177387 "-- url of the page with the problem -- :   dev.vitaking.ro/  -- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 33  I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page. EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.  If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.  The &quot;Auto submit shipping and payment methods selection&quot; is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.  Please help, I have no idea where to look for solution.")* was created by *[otx](/forum/user/14566-otx "View otx's Profile")*

-- url of the page with the problem -- : [ dev.vitaking.ro/](http://dev.vitaking.ro/)
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 33

I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page.
EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.

If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.

The "Auto submit shipping and payment methods selection" is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.

Please help, I have no idea where to look for solution.

[ ![checkout&#95;workflow.png](/forum/attachment/20395) ](/forum/attachment/20395 "...t&#95;workflow.png")

[ ![shipping&#95;and&#95;payment.png](/forum/attachment/20396) ](/forum/attachment/20396 "...nd&#95;payment.png")

- [ ![checkout&#95;workflow.png](/forum/attachment/20395) ](/forum/attachment/20395 "...t&#95;workflow.png") [ ](/forum/attachment/20395?download=1 "...t&#95;workflow.png")
- [ ![shipping&#95;and&#95;payment.png](/forum/attachment/20396) ](/forum/attachment/20396 "...nd&#95;payment.png") [ ](/forum/attachment/20396?download=1 "...nd&#95;payment.png")

Last edit: 12 years 4 weeks ago by [otx](/forum/user/14566-otx "View otx's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjY1OS1zZWxlY3RpbmctcGF5bWVudC1tZXRob2Qtc3VibWl0cy10aGUtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 4 weeks ago [\#177431](#177431) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting payment method submits the checkout page](/forum/27-checkout/872659-selecting-payment-method-submits-the-checkout-page#177431 "-- url of the page with the problem -- :   dev.vitaking.ro/  -- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 33  I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page. EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.  If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.  The &quot;Auto submit shipping and payment methods selection&quot; is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.  Please help, I have no idea where to look for solution.")*

Hi,

Keep that optino on and try to change the code: Code:

if(($old_payment_id!=$payment_id &#124;&#124; $old_payment_method!=$payment) &amp;&amp; @$old_payment_data-&gt;payment_price!=$paymentData-&gt;payment_price &amp;&amp; ($this-&gt;_getStep('cart',(int)$this-&gt;previous)===(int)$this-&gt;previous &#124;&#124; $this-&gt;_getStep('confirm',(int)$this-&gt;previous)===(int)$this-&gt;previous)){

to: Code:

if(($old_payment_id!=$payment_id &#124;&#124; $old_payment_method!=$payment) &amp;&amp; @$old_payment_data-&gt;payment_price!=$paymentData-&gt;payment_price){

in the file components/com_hikashop/controllers/checkout.php and see if that helps

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjY1OS1zZWxlY3RpbmctcGF5bWVudC1tZXRob2Qtc3VibWl0cy10aGUtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[otx](/forum/user/14566-otx "View otx's Profile")**
- [![otx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14566-otx "View otx's Profile") Topic Author
- [ Offline](/forum/user/14566-otx)

Less More

- Posts: 53
- Thank you received: 2
-
-

12 years 4 weeks ago -  12 years 4 weeks ago [\#177473](#177473) by [otx](/forum/user/14566-otx "View otx's Profile")  Replied by *[otx](/forum/user/14566-otx "View otx's Profile")* on topic *[Selecting payment method submits the checkout page](/forum/27-checkout/872659-selecting-payment-method-submits-the-checkout-page#177473 "-- url of the page with the problem -- :   dev.vitaking.ro/  -- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 33  I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page. EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.  If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.  The &quot;Auto submit shipping and payment methods selection&quot; is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.  Please help, I have no idea where to look for solution.")*

Dear Nicolas,

Thank you for your help! Unfortunately this doesn't solve my problem, the page gets submitted as soon as I select a payment method. I hope we can find a solution for this, as this is the only serious bug wich prevents us to going online with this version. I realy appreciate your help, I can give you full access to the site if you need.

**EDIT:** I have three versions of Hikashop in my install directory:
com_hikashop_business_2.2.0_2013-07-12
com_hikashop_business_2.3.1_2014-05-31
com_hikashop_business_v2.3.4_2014-10-29_19-29-48

Only the first one is working correctly, so the bug is somewhere between version 2.2.0 and 2.3.1.

So if I disable all the customizations and install the 2.2.0 everithing is fine. As soon as I install a bigger version the problem appears.

**EDIT2:** I have replaced the components/com_hikashop/controllers/checkout.php from the 2.2.0 version and it works! So I have narroved down the problem to one file, but it would take a lot of time to me to understand and find the exact problem. I guess for you is much easer. I hope you can come with a solution.

**EDIT3:** The page still gets submitted if I try to add a new delivery address or edit the existing one (drop-down list). Can you please give me some hint which file is causing this behavior? If I can't find other solution, at least I would try to replace this from the 2.2.0.

Regards,
Dezso

Last edit: 12 years 4 weeks ago by [otx](/forum/user/14566-otx "View otx's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjY1OS1zZWxlY3RpbmctcGF5bWVudC1tZXRob2Qtc3VibWl0cy10aGUtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 4 weeks ago [\#177544](#177544) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting payment method submits the checkout page](/forum/27-checkout/872659-selecting-payment-method-submits-the-checkout-page#177544 "-- url of the page with the problem -- :   dev.vitaking.ro/  -- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 33  I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page. EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.  If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.  The &quot;Auto submit shipping and payment methods selection&quot; is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.  Please help, I have no idea where to look for solution.")*

Hi,

Then please try to change the code: Code:

if(($old_payment_id!=$payment_id &#124;&#124; $old_payment_method!=$payment) &amp;&amp; @$old_payment_data-&gt;payment_price!=$paymentData-&gt;payment_price &amp;&amp; ($this-&gt;_getStep('cart',(int)$this-&gt;previous)===(int)$this-&gt;previous &#124;&#124; $this-&gt;_getStep('confirm',(int)$this-&gt;previous)===(int)$this-&gt;previous)){

to: Code:

if(($old_payment_id!=$payment_id &#124;&#124; $old_payment_method!=$payment) &#124;&#124; @$old_payment_data-&gt;payment_price!=$paymentData-&gt;payment_price){

in the file components/com_hikashop/controllers/checkout.php and see if that helps

The following user(s) said Thank You: [otx](/forum/user/14566-otx "View otx's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjY1OS1zZWxlY3RpbmctcGF5bWVudC1tZXRob2Qtc3VibWl0cy10aGUtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[otx](/forum/user/14566-otx "View otx's Profile")**
- [![otx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14566-otx "View otx's Profile") Topic Author
- [ Offline](/forum/user/14566-otx)

Less More

- Posts: 53
- Thank you received: 2
-
-

12 years 4 weeks ago [\#177597](#177597) by [otx](/forum/user/14566-otx "View otx's Profile")  Replied by *[otx](/forum/user/14566-otx "View otx's Profile")* on topic *[Selecting payment method submits the checkout page](/forum/27-checkout/872659-selecting-payment-method-submits-the-checkout-page#177597 "-- url of the page with the problem -- :   dev.vitaking.ro/  -- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 33  I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page. EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.  If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.  The &quot;Auto submit shipping and payment methods selection&quot; is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.  Please help, I have no idea where to look for solution.")*

Dear Nicolas,

Thank you for your quick fix, it works! This change will be implemented in the next version of Hikashop, or I have to take care of this myself on each upgrade?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjY1OS1zZWxlY3RpbmctcGF5bWVudC1tZXRob2Qtc3VibWl0cy10aGUtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 4 weeks ago [\#177690](#177690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Selecting payment method submits the checkout page](/forum/27-checkout/872659-selecting-payment-method-submits-the-checkout-page#177690 "-- url of the page with the problem -- :   dev.vitaking.ro/  -- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 33  I have a strange problem with the checkout page. Currently I have two payment methodes, the default one is selected. If the user is already logged in and changes the payment method this ends the checkout process and the next page is the thank you page. EDIT: The page gets submitted also if the user starts to add a new adress then cancels the operation.  If the user is logged out than the page behaves normally. I have allready deleted all my customizations, but the problem remains.  The &quot;Auto submit shipping and payment methods selection&quot; is ON, but if I disable, than I need to submit twice the page in order to arrive on the thank you page.  Please help, I have no idea where to look for solution.")*

Hi,

We'll add that for next release yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjY1OS1zZWxlY3RpbmctcGF5bWVudC1tZXRob2Qtc3VibWl0cy10aGUtY2hlY2tvdXQtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
