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

#   Cart quantity input override not working

##

- **[Density5](/forum/user/6013-density5 "View Density5's Profile")**
- [![Density5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6013.gif)](/forum/user/6013-density5 "View Density5's Profile") Topic Author
- [ Offline](/forum/user/6013-density5)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 6 months ago [\#47601](#47601) by [Density5](/forum/user/6013-density5 "View Density5's Profile")  *[Cart quantity input override not working](/forum/4-how-to/47601-cart-quantity-input-override-not-working#47601 "Hi Nicolas,  Just want to say thanks for all your help so far, we are nearly done with out build and I must say I'm really impressed with how customisable Hikashop can be.  I have a slight problem overriding the quantity input in the cart. I have enabled the Ajax option and am following the instructions in the Developer Documentation, but I think there might be an error there.  I have created the file templates/MY TEMPLATE/html/com&#95;hikashop/hikashop&#95;button.php - is that the correct name? I have also tried naming it hikashop&#95;quantity.php.  In this file I have copied all the code from administrator/components/com&#95;hikashop/helpers/cart.php, just under the check for the override, and added a simple message, but I'm not seeing it displayed so I don't think my override is being picked up at all.  I've attached a copy of the file, if you could have a quick look I'd be most grateful.  Thanks in advance,  Jerry")* was created by *[Density5](/forum/user/6013-density5 "View Density5's Profile")*

Hi Nicolas,

Just want to say thanks for all your help so far, we are nearly done with out build and I must say I'm really impressed with how customisable Hikashop can be.

I have a slight problem overriding the quantity input in the cart. I have enabled the Ajax option and am following the instructions in the Developer Documentation, but I think there might be an error there.

I have created the file templates/MY TEMPLATE/html/com_hikashop/hikashop_button.php - is that the correct name? I have also tried naming it hikashop_quantity.php.

In this file I have copied all the code from administrator/components/com_hikashop/helpers/cart.php, just under the check for the override, and added a simple message, but I'm not seeing it displayed so I don't think my override is being picked up at all.

I've attached a copy of the file, if you could have a quick look I'd be most grateful.

Thanks in advance,

Jerry

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3NjAxLWNhcnQtcXVhbnRpdHktaW5wdXQtb3ZlcnJpZGUtbm90LXdvcmtpbmc/dG1wbD1tYXJrZG93bg==) 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: 86320
- Thank you received: 14277
-
-

14 years 6 months ago [\#47777](#47777) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart quantity input override not working](/forum/4-how-to/47601-cart-quantity-input-override-not-working#47777 "Hi Nicolas,  Just want to say thanks for all your help so far, we are nearly done with out build and I must say I'm really impressed with how customisable Hikashop can be.  I have a slight problem overriding the quantity input in the cart. I have enabled the Ajax option and am following the instructions in the Developer Documentation, but I think there might be an error there.  I have created the file templates/MY TEMPLATE/html/com&#95;hikashop/hikashop&#95;button.php - is that the correct name? I have also tried naming it hikashop&#95;quantity.php.  In this file I have copied all the code from administrator/components/com&#95;hikashop/helpers/cart.php, just under the check for the override, and added a simple message, but I'm not seeing it displayed so I don't think my override is being picked up at all.  I've attached a copy of the file, if you could have a quick look I'd be most grateful.  Thanks in advance,  Jerry")*

The path should be: templates/YOUR_TEMPLATE/html/hikashop_button.php
It's in the documentation: [ www.hikashop.com/en/support/documentatio...tation.html#override](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#override)
Also, you should not copy all the code, but create a function declaration and only add the relevant code.

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

- **[Density5](/forum/user/6013-density5 "View Density5's Profile")**
- [![Density5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6013.gif)](/forum/user/6013-density5 "View Density5's Profile") Topic Author
- [ Offline](/forum/user/6013-density5)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 6 months ago [\#48763](#48763) by [Density5](/forum/user/6013-density5 "View Density5's Profile")  Replied by *[Density5](/forum/user/6013-density5 "View Density5's Profile")* on topic *[Re: Cart quantity input override not working](/forum/4-how-to/47601-cart-quantity-input-override-not-working#48763 "Hi Nicolas,  Just want to say thanks for all your help so far, we are nearly done with out build and I must say I'm really impressed with how customisable Hikashop can be.  I have a slight problem overriding the quantity input in the cart. I have enabled the Ajax option and am following the instructions in the Developer Documentation, but I think there might be an error there.  I have created the file templates/MY TEMPLATE/html/com&#95;hikashop/hikashop&#95;button.php - is that the correct name? I have also tried naming it hikashop&#95;quantity.php.  In this file I have copied all the code from administrator/components/com&#95;hikashop/helpers/cart.php, just under the check for the override, and added a simple message, but I'm not seeing it displayed so I don't think my override is being picked up at all.  I've attached a copy of the file, if you could have a quick look I'd be most grateful.  Thanks in advance,  Jerry")*

Hi Nicolas, thanks for your reply, even after reading the documentation and your reply several times I failed to spot my mistake so I'm posting it here as a warning to others to pay attention to the detail!

The files does NOT go in &lt;template&gt;/html/com_hikashop it goes directly in &lt;template&gt;/html!

D'oh!

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

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

[](#top)
