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

#   checkout no refresh automatically in google chrome

##

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile") Topic Author
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

12 years 7 months ago [\#152891](#152891) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  *[checkout no refresh automatically in google chrome](/forum/27-checkout/867565-checkout-no-refresh-automatically-in-google-chrome#152891 "Hi dear i am using this code in my checkout:  when i select a value in firefox my page is refresh automatically and it's work very good. but it's no refresh in google chrome. what's my problem and it's not refresh automatically in chrome? thank you")* was created by *[kaya](/forum/user/25605-kaya "View kaya's Profile")*

Hi dear
i am using this code in my checkout: Code:

&lt;select id="hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;').value=qty_field.value;"&gt; &lt;option value="1" &lt;?php if($row-&gt;cart_product_quantity == '1') echo 'selected="selected"'; ?&gt; onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt;1&lt;/option&gt; &lt;option value="2" &lt;?php if($row-&gt;cart_product_quantity == '2') echo 'selected="selected"'; ?&gt; onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt;2&lt;/option&gt; &lt;option value="3" &lt;?php if($row-&gt;cart_product_quantity == '3') echo 'selected="selected"'; ?&gt; onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt;3&lt;/option&gt; &lt;/select&gt;

when i select a value in firefox my page is refresh automatically and it's work very good. but it's no refresh in google chrome.
what's my problem and it's not refresh automatically in chrome?
thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzU2NS1jaGVja291dC1uby1yZWZyZXNoLWF1dG9tYXRpY2FsbHktaW4tZ29vZ2xlLWNocm9tZT90bXBsPW1hcmtkb3du) 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 7 months ago [\#152919](#152919) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[checkout no refresh automatically in google chrome](/forum/27-checkout/867565-checkout-no-refresh-automatically-in-google-chrome#152919 "Hi dear i am using this code in my checkout:  when i select a value in firefox my page is refresh automatically and it's work very good. but it's no refresh in google chrome. what's my problem and it's not refresh automatically in chrome? thank you")*

Hi,

You should not use a onclick event in your option tags. Instead you should use a onchange event in your select tag (like you actually already have).
It's probably why it doesn't work on Chrome.

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

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

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile") Topic Author
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

12 years 7 months ago [\#152927](#152927) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  Replied by *[kaya](/forum/user/25605-kaya "View kaya's Profile")* on topic *[checkout no refresh automatically in google chrome](/forum/27-checkout/867565-checkout-no-refresh-automatically-in-google-chrome#152927 "Hi dear i am using this code in my checkout:  when i select a value in firefox my page is refresh automatically and it's work very good. but it's no refresh in google chrome. what's my problem and it's not refresh automatically in chrome? thank you")*

thank you dear Nicolas
my onclick event is: Code:

onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;"

when i remove it's from my code it's not work any browser. how can do it work in all browser?
thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NzU2NS1jaGVja291dC1uby1yZWZyZXNoLWF1dG9tYXRpY2FsbHktaW4tZ29vZ2xlLWNocm9tZT90bXBsPW1hcmtkb3du) 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 7 months ago [\#152936](#152936) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[checkout no refresh automatically in google chrome](/forum/27-checkout/867565-checkout-no-refresh-automatically-in-google-chrome#152936 "Hi dear i am using this code in my checkout:  when i select a value in firefox my page is refresh automatically and it's work very good. but it's no refresh in google chrome. what's my problem and it's not refresh automatically in chrome? thank you")*

As I said you should remove the onclick in your option tags and add your auto submit in the onchange attribute of the select tag.
If you just remove the onclick, it won't auto submit anymore.

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

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