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

#   Checkout looping between Shipment and Payment

##

- **[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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 10 months ago [\#34802](#34802) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34802 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

I see that there is still a javascript error for another piece of code for the same reasons.
Could you do the same change in the file administrator/components/com_hikashop/helpers/cart.php and try again ?

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

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

Less More

- Posts: 137
- Thank you received: 4
-
-

14 years 10 months ago [\#34816](#34816) by [simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")  Replied by *[simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34816 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

Hm, stil not working, I'm afraid...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjkyMC1jaGVja291dC1sb29waW5nLWJldHdlZW4tc2hpcG1lbnQtYW5kLXBheW1lbnQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 10 months ago [\#34834](#34834) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34834 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

Now I see again the problem as if you didn't do the modifications in the components/com_hikashop/views/checkout/view.html.php file.
Are you sure that you didn't reverted the modifications there in some way ?

Here is the file with the modifications already applied. Please replace it and try again.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

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

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

Less More

- Posts: 137
- Thank you received: 4
-
-

14 years 10 months ago [\#34838](#34838) by [simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")  Replied by *[simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34838 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

I'm pretty sure I did not revert them, but just to be sure I FTP-ed your file to the requested location, still the problem keeps occurring.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjkyMC1jaGVja291dC1sb29waW5nLWJldHdlZW4tc2hpcG1lbnQtYW5kLXBheW1lbnQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 10 months ago [\#34846](#34846) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34846 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

I don't see how that is possible. The source of the page indicates that the modification hasn't been applied.
Could you provide a FTP access so that we can directly check the code ?

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

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

Less More

- Posts: 137
- Thank you received: 4
-
-

14 years 10 months ago [\#34854](#34854) by [simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")  Replied by *[simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34854 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

Hi Nicholas, just sent you a PM message with the details.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjkyMC1jaGVja291dC1sb29waW5nLWJldHdlZW4tc2hpcG1lbnQtYW5kLXBheW1lbnQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 10 months ago [\#34874](#34874) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34874 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

I don't know why but there is something triming the return lines on your website apparently.
I've changed the lines:
$doc-&gt;addScriptDeclaration("&lt;!--\n".$js."\n//--&gt;");

to:
$doc-&gt;addScriptDeclaration("\n".$js."\n");

and that has solved the problem.

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

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

Less More

- Posts: 137
- Thank you received: 4
-
-

14 years 10 months ago [\#34903](#34903) by [simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")  Replied by *[simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34903 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

Perfect, thanks a lot for solving this.

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

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

Less More

- Posts: 137
- Thank you received: 4
-
-

14 years 10 months ago [\#34957](#34957) by [simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")  Replied by *[simonkloostra](/forum/user/4870-simonkloostra "View simonkloostra's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34957 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

Thanks for the support again, I just posted a nice review on the Joomla extensions website.

Just a final question on this, just to be sure: Will the fix you applied be part of the next release?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjkyMC1jaGVja291dC1sb29waW5nLWJldHdlZW4tc2hpcG1lbnQtYW5kLXBheW1lbnQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

14 years 10 months ago [\#34975](#34975) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Checkout looping between Shipment and Payment](/forum/3-bug-report/32920-checkout-looping-between-shipment-and-payment?start=20#34975 "I'm still busy setting up my shop using the latest Essential version. It all worked fine sofar, untill I was updating my payment methods. I was first using the Check payment plugin, while I meant to...")*

That one won't be as it's not a fix.
Using "&lt;!--\n".$js."\n//--&gt;" is not a problem and in fact the recommended way of adding javascript in joomla in order to have a HTML valid page. If we had that last modification, it wouldn't be HTML valid and we would have complains about that.
Also, that works for everyone else. There is really something on your website messing with the javascript somewhere.

So make sure that you back up these two files on even better, that you redo these changes in the new version of these files if you still have the problem when you update.
The cart.php file should change much in the future. However, the other one will.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMjkyMC1jaGVja291dC1sb29waW5nLWJldHdlZW4tc2hpcG1lbnQtYW5kLXBheW1lbnQ/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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.074 seconds

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