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

#   hikashop\_product\_quantity\_field

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 2 months ago [\#165689](#165689) by [Thunder1001](/forum/user/31900-thunder1001 "View Thunder1001's Profile")  *[hikashop\_product\_quantity\_field](/forum/26-product-category-display/870019-hikashop-product-quantity-field#165689 "Hi, I use the Hikashop with the Hagane template. I want to make a kind of orderform to use with a tabletpc. Now the hikashop&#95;product&#95;quantity&#95;field is filled with &quot;1&quot; But is it possbile to clear the input field when you click on it? Cause then we use a tablet you need to clear the quantity &quot;1&quot; everytime before you can put in the quantity you need? (Or maybe a method to leave the field's empty)  Greetz")* was created by *[Thunder1001](/forum/user/31900-thunder1001 "View Thunder1001's Profile")*

Hi,
I use the Hikashop with the Hagane template.
I want to make a kind of orderform to use with a tabletpc.
Now the hikashop_product_quantity_field is filled with "1"
But is it possbile to clear the input field when you click on it?
Cause then we use a tablet you need to clear the quantity "1" everytime before you can put in the quantity you need?
(Or maybe a method to leave the field's empty)

Greetz

- [ ![haa8b960.jpg](/forum/attachment/18733) ](/forum/attachment/18733 "haa8b960.jpg") [ ](/forum/attachment/18733?download=1 "haa8b960.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 months ago [\#165695](#165695) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[hikashop\_product\_quantity\_field](/forum/26-product-category-display/870019-hikashop-product-quantity-field#165695 "Hi, I use the Hikashop with the Hagane template. I want to make a kind of orderform to use with a tabletpc. Now the hikashop&#95;product&#95;quantity&#95;field is filled with &quot;1&quot; But is it possbile to clear the input field when you click on it? Cause then we use a tablet you need to clear the quantity &quot;1&quot; everytime before you can put in the quantity you need? (Or maybe a method to leave the field's empty)  Greetz")*

Hi,

You can potentially add some javascript in the view "product / show_quantity" in order to empty the field when selected.
Something like:
Code:

&lt;script type="text/javascript"&gt; jQuery('.hikashop_product_quantity_field').click(function(){jQuery(this).val('');}); &lt;/script&gt;

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 2 months ago [\#168776](#168776) by [Thunder1001](/forum/user/31900-thunder1001 "View Thunder1001's Profile")  Replied by *[Thunder1001](/forum/user/31900-thunder1001 "View Thunder1001's Profile")* on topic *[hikashop\_product\_quantity\_field](/forum/26-product-category-display/870019-hikashop-product-quantity-field#168776 "Hi, I use the Hikashop with the Hagane template. I want to make a kind of orderform to use with a tabletpc. Now the hikashop&#95;product&#95;quantity&#95;field is filled with &quot;1&quot; But is it possbile to clear the input field when you click on it? Cause then we use a tablet you need to clear the quantity &quot;1&quot; everytime before you can put in the quantity you need? (Or maybe a method to leave the field's empty)  Greetz")*

Hi,
This one is work nice now ![:-)](/media/kunena/emoticons/9.png ":-)")
When i click on the field it will be clear.

But when i add some value like "3" pieces and when i click 'add to cart" it will put 3 pieces in the cart, but the value stay's on "3" after.
Is it possible to set the quantity value back to "0" when after you click on the "add to cart" button?

Tom

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 months ago [\#168778](#168778) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[hikashop\_product\_quantity\_field](/forum/26-product-category-display/870019-hikashop-product-quantity-field#168778 "Hi, I use the Hikashop with the Hagane template. I want to make a kind of orderform to use with a tabletpc. Now the hikashop&#95;product&#95;quantity&#95;field is filled with &quot;1&quot; But is it possbile to clear the input field when you click on it? Cause then we use a tablet you need to clear the quantity &quot;1&quot; everytime before you can put in the quantity you need? (Or maybe a method to leave the field's empty)  Greetz")*

Yes with something like: Code:

jQuery('.hikashop_cart_input_button').click(function(){jQuery('.hikashop_product_quantity_field').val(0)});

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

- **[Oli\_Thai](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")**
- [![Oli&#95;Thai's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")
- [ Offline](/forum/user/34583-oli-thai)

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 11 months ago [\#178091](#178091) by [Oli\_Thai](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")  Replied by *[Oli\_Thai](/forum/user/34583-oli-thai "View Oli&#95;Thai's Profile")* on topic *[hikashop\_product\_quantity\_field](/forum/26-product-category-display/870019-hikashop-product-quantity-field#178091 "Hi, I use the Hikashop with the Hagane template. I want to make a kind of orderform to use with a tabletpc. Now the hikashop&#95;product&#95;quantity&#95;field is filled with &quot;1&quot; But is it possbile to clear the input field when you click on it? Cause then we use a tablet you need to clear the quantity &quot;1&quot; everytime before you can put in the quantity you need? (Or maybe a method to leave the field's empty)  Greetz")*

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.20 and 3
-- PHP version -- : 5.3.9
- Template GK fronstore
-- Browser(s) name and version -- : Firefox,Chrome,IE11

i have create all caregories and have begin to create the menu.this all going fine and good.
but now i have add one testproduct for look [ www.thaionlinemarkt.com/neu/de/gesundhei...t/1-testprodukt.html](http://www.thaionlinemarkt.com/neu/de/gesundhei...t/1-testprodukt.html)
but the problem i cant see the quantity.

we can do does show it and their in wich name of script exactly must change does can show later the quantity?

the option for "Display the quantity field on the product page" is set to "Ajax Input" in the configuration of HikaShop..

i want not move to other shopsystem eg Virtuemart.

thx and hope for fast respond

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#178129](#178129) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[hikashop\_product\_quantity\_field](/forum/26-product-category-display/870019-hikashop-product-quantity-field#178129 "Hi, I use the Hikashop with the Hagane template. I want to make a kind of orderform to use with a tabletpc. Now the hikashop&#95;product&#95;quantity&#95;field is filled with &quot;1&quot; But is it possbile to clear the input field when you click on it? Cause then we use a tablet you need to clear the quantity &quot;1&quot; everytime before you can put in the quantity you need? (Or maybe a method to leave the field's empty)  Greetz")*

Hi,

Please avoit duplicate posts:
[ hikashop.com/forum/4-how-to/24521-how-to...html?start=20#178085](https://hikashop.com/forum/4-how-to/24521-how-to-show-quantity-on-product-listing.html?start=20#178085)

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

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

[](#top)
