- Posts: 16
- Thank you received: 0
hikashop_product_quantity_field
- Thunder1001
-
Topic Author
- Offline
Less
More
12 years 2 months ago #165689
by Thunder1001
hikashop_product_quantity_field was created by Thunder1001
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
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
Please Log in or Create an account to join the conversation.
12 years 2 months ago #165695
by Xavier
Replied by Xavier on topic hikashop_product_quantity_field
Hi,
You can potentially add some javascript in the view "product / show_quantity" in order to empty the field when selected.
Something like:
You can potentially add some javascript in the view "product / show_quantity" in order to empty the field when selected.
Something like:
Code:
<script type="text/javascript">
jQuery('.hikashop_product_quantity_field').click(function(){jQuery(this).val('');});
</script>
Please Log in or Create an account to join the conversation.
- Thunder1001
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 0
12 years 2 months ago #168776
by Thunder1001
Replied by Thunder1001 on topic hikashop_product_quantity_field
Hi,
This one is work nice now
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
This one is work nice now
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 or Create an account to join the conversation.
12 years 2 months ago #168778
by Xavier
Replied by Xavier on topic hikashop_product_quantity_field
Yes with something like:
Code:
jQuery('.hikashop_cart_input_button').click(function(){jQuery('.hikashop_product_quantity_field').val(0)});
Please Log in or Create an account to join the conversation.
11 years 11 months ago #178091
by Oli_Thai
Replied by Oli_Thai on topic hikashop_product_quantity_field
-- 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
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
-- 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
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 or Create an account to join the conversation.
11 years 11 months ago #178129
by Xavier
Replied by Xavier on topic hikashop_product_quantity_field
Please Log in or Create an account to join the conversation.
Time to create page: 0.282 seconds