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

#   Order submits unexpectedly when using quantity refresh button at checkout

##

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

Less More

- Posts: 31
- Thank you received: 2
-
-

5 years 1 week ago [\#336641](#336641) by [sixdeuces](/forum/user/40002-sixdeuces "View sixdeuces's Profile")  *[Order submits unexpectedly when using quantity refresh button at checkout](/forum/3-bug-report/903383-order-submits-unexpectedly-when-using-quantity-refresh-button-at-checkout#336641 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Thankfully, a user was kind enough to report this bug to me today.  During checkout with PayPal selected, attempting to use the quantity reload button (circular arrows) causes the order to submit unexpectedly.  I tested and confirmed the issue.")* was created by *[sixdeuces](/forum/user/40002-sixdeuces "View sixdeuces's Profile")*

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome

Thankfully, a user was kind enough to report this bug to me today.

During checkout with PayPal selected, attempting to use the quantity reload button (circular arrows) causes the order to submit unexpectedly.

I tested and confirmed the issue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDMzODMtb3JkZXItc3VibWl0cy11bmV4cGVjdGVkbHktd2hlbi11c2luZy1xdWFudGl0eS1yZWZyZXNoLWJ1dHRvbi1hdC1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14290
-
-

5 years 1 week ago [\#336651](#336651) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order submits unexpectedly when using quantity refresh button at checkout](/forum/3-bug-report/903383-order-submits-unexpectedly-when-using-quantity-refresh-button-at-checkout#336651 "-- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Chrome  Thankfully, a user was kind enough to report this bug to me today.  During checkout with PayPal selected, attempting to use the quantity reload button (circular arrows) causes the order to submit unexpectedly.  I tested and confirmed the issue.")*

Hi,

Well, yes and no.
If you change the quantity input field and then click on refresh, it won't submit the order.
It only will if you don't change the input field because the data of the form has been submit without any change and thus it assumes you want to go to the next step.
But you're right that it should not be case.
Edit the file components/com_hikashop/views/layouts/tmpl/quantity.php and change the code: Code:

input.form.onsubmit &amp;&amp; !input.form.onsubmit()

near the end to:: Code:

input.value == \'&lt;?php echo $current_quantity; ?&gt;\' &#124;&#124; (input.form.onsubmit &amp;&amp; !input.form.onsubmit())

and it will check that the quantity has been changed in the corresponding input field before sending the data to the server so that nothing will happen when you click the refresh icon if you don't change the input.
If fact, we should even hide the refresh icon as long as the quantity hasn't been changed.

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

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