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

#   + and - instead Refresh button in Chekout and Cart

##

- **[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: 86593
- Thank you received: 14334
-
-

9 years 7 months ago [\#266747](#266747) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart?start=20#266747 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

Hi,

For the cart module, you can use such javascript:
window.hikashop.submitCartModule(this, 'hikashop_cart_&lt;?php echo $module_id; ?&gt;', 'cart');

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

- **[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")**
- [![alikon1's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar17244.jpg)](/forum/user/17244-alikon1 "View alikon1's Profile") Topic Author
- [ Offline](/forum/user/17244-alikon1)

Less More

- Posts: 178
- Thank you received: 5
-
-
-
-

9 years 7 months ago -  9 years 7 months ago [\#266810](#266810) by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")  Replied by *[alikon1](/forum/user/17244-alikon1 "View alikon1's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart?start=20#266810 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

> nicolas wrote: Hi,
> For the cart module, you can use such javascript:
> window.hikashop.submitCartModule(this, 'hikashop\_cart\_&lt;?php echo $module\_id; ?&gt;', 'cart');

Code with **getElementById** in */components/com\_hikashop/views/product/tmpl/cart.php* doesn't work at all. Id changes after every cart update. Code:

&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $product-&gt;cart_product_id;?&gt;'); qty_field.value=parseInt(qty_field.value)+1;window.hikashop.submitCartModule(this, 'hikashop_cart_&lt;?php echo $module_id; ?&gt;', 'cart');"&gt;+&lt;/a&gt;

Code with **getElementsByName** display rotating dots, but nothig changes. Code:

&lt;a href="#" onclick="var qty_field = document.getElementsByName('item[&lt;?php echo $product-&gt;cart_product_id;?&gt;][cart_product_quantity]'); qty_field.value=parseInt(qty_field.value)+1;window.hikashop.submitCartModule(this, 'hikashop_cart_&lt;?php echo $module_id; ?&gt;', 'cart');"&gt;+&lt;/a&gt;

Last edit: 9 years 7 months ago by [alikon1](/forum/user/17244-alikon1 "View alikon1's Profile").

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

9 years 7 months ago [\#266840](#266840) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[+ and - instead Refresh button in Chekout and Cart](/forum/26-product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart?start=20#266840 "-- HikaShop version -- : HikaShop Business 2.3.2 -- Joomla version -- : Joomla! 3.3.3 Stable -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Any  I can change quantity by pressing + and - in product or category listing.  But in Checkout I have only Refresh button.  And in the CartI havent any button at all.  Can I change quantity in the Cart and Checkout by pressing + and - too? Many users don't understand, that they can press Refresh. They are search + and - buttons.")*

No. You should use the modification from:
[ www.hikashop.com/forum/product-category-...and-cart.html#266777](https://www.hikashop.com/forum/product-category-display/870444-and-instead-refresh-button-in-chekout-and-cart.html#266777)
I was simply saying that the cart module can be refreshed with such javascript.

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

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