hikashop_product_quantity_field

  • Posts: 16
  • Thank you received: 0
11 years 1 month ago #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_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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #165695

Hi,

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

<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.

  • Posts: 16
  • Thank you received: 0
11 years 2 weeks ago #168776

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

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 weeks ago #168778

Yes with something like:

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.

  • Posts: 2
  • Thank you received: 0
10 years 10 months ago #178091

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #178129

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum