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

#   Update cart button

##

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

Less More

- Posts: 49
- Thank you received: 0
-
-

15 years 11 months ago [\#2090](#2090) by [thewedge](/forum/user/350-thewedge "View thewedge's Profile")  *[Update cart button](/forum/4-how-to/2090-update-cart-button#2090 "I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it....")* was created by *[thewedge](/forum/user/350-thewedge "View thewedge's Profile")*

I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it. Can you tell me what code I need to put in what view to do this? You should really add this to your product. It is in almost all shopping cart software.

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

15 years 11 months ago [\#2092](#2092) by [thewedge](/forum/user/350-thewedge "View thewedge's Profile")  Replied by *[thewedge](/forum/user/350-thewedge "View thewedge's Profile")* on topic *[Re: Update cart button](/forum/4-how-to/2090-update-cart-button#2092 "I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it....")*

Well, I found the button, but for some reason the code you have around it doesn't work:

&lt;?php
if($this-&gt;params-&gt;get('show_quantity')){ ?&gt;
&lt;noscript&gt;
&lt;input id="hikashop_checkout_cart_quantity_button" class="button" type="submit" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt;
&lt;/noscript&gt;
&lt;?php }
} ?&gt;

I had to do this:

&lt;input id="hikashop_checkout_cart_quantity_button" class="button" type="submit" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt;

&lt;?php } ?&gt;

and then it works right

For anyone who wants to know where I found it, go under Views, then select cart under front end - checkout.

I think you need to look at this code again and correct in next release.

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

15 years 11 months ago [\#2094](#2094) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Update cart button](/forum/4-how-to/2090-update-cart-button#2094 "I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it....")*

Hi,

When you change the value of the quantity you don't need to click on any button. Just press enter or click somewhere else and the cart will be refreshed. That's why there is no button. That code will display the button to refresh the cart only when javascript is disabled on the browser of the user because without javascript, when you change the quantity field value, the change won't be submitted automatically.

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

15 years 11 months ago [\#2162](#2162) by [thewedge](/forum/user/350-thewedge "View thewedge's Profile")  Replied by *[thewedge](/forum/user/350-thewedge "View thewedge's Profile")* on topic *[Re: Update cart button](/forum/4-how-to/2090-update-cart-button#2162 "I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it....")*

Unfortunately people won't get that. They don't get basic click enter on keyboard or click somewhere else. I understand it, but I can tell you from experience that no one else will. A coder will. Because almost all other carts have a button, that is what they want to see. Even I looked for a button. Then I experimented with click enter like a search box and it worked, but knew instantly that other people won't do this. A whole lot of people.

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

15 years 11 months ago [\#2165](#2165) by [thewedge](/forum/user/350-thewedge "View thewedge's Profile")  Replied by *[thewedge](/forum/user/350-thewedge "View thewedge's Profile")* on topic *[Re: Update cart button](/forum/4-how-to/2090-update-cart-button#2165 "I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it....")*

I tried out what you coded. I agree it does work, and work well. Could you take a look at my other concern, the coupon thing not working?

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

15 years 11 months ago [\#2172](#2172) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Update cart button](/forum/4-how-to/2090-update-cart-button#2172 "I am not sure why there is no update cart button for either the cart nugget, or the cart. But, how would one go about adding a update cart button. I suspect I would have to go through views to do it....")*

Note that you can easily add a fake update button to your cart...
You can edit the file cart of the views product and checkout, and add an image near the input of the quantity. Since the cart will be submitted when the user click somewhere else, the new value will be submitted automatically when the user tries to click on the fake button.

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

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