- Posts: 4
- Thank you received: 0
QTY Step
3 years 2 months ago #354202
by zieasoft
-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.1
I have a quantity increase and decrease buttons on my product pages.
These however, increase or decrease by 1, I would like to change it to 5. How can this be done please?
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.1
I have a quantity increase and decrease buttons on my product pages.
These however, increase or decrease by 1, I would like to change it to 5. How can this be done please?
Please Log in or Create an account to join the conversation.
3 years 1 month ago #354205
by nicolas
Hi,
Edit the view files product / show_quantity and layouts / quantity via the menu Display>Views
There, you'll find the pieces of code:
and:
which respectively define the increment and decrement steps.
Change them to use 5 and -5 and it should work like you want.
Alternatively, and without any view customization, you can set the minimum quantity per order to 5 in your product, and set its "quantity input" setting to "show select". This will display a dropdown with the values 5, 10, 15, 20 etc automatically for the quantity selection.
Edit the view files product / show_quantity and layouts / quantity via the menu Display>Views
There, you'll find the pieces of code:
Code:
data-hk-qty-mod="1"
Code:
data-hk-qty-mod="-1"
Change them to use 5 and -5 and it should work like you want.
Alternatively, and without any view customization, you can set the minimum quantity per order to 5 in your product, and set its "quantity input" setting to "show select". This will display a dropdown with the values 5, 10, 15, 20 etc automatically for the quantity selection.
The following user(s) said Thank You: zieasoft
Please Log in or Create an account to join the conversation.
3 years 1 month ago #354236
by zieasoft
Just one issue remains, they could over-ride the qty in the cart, can I make the Quantity field read-only for example or change it to a drop-down or plus and minus boxes?
Screenshot attached
Screenshot attached
Please Log in or Create an account to join the conversation.
3 years 1 month ago #354242
by nicolas
Hi,
The alternative method I proposed in my previous message will make all the quantity inputs as dropdowns with the same increment. So it would be a quick and easy solution.
Making the quantity read only on the checkout is easy too. Go in the HikaShop configuration page, and under the Checkout tab, change the setting "read only" of the "Cart" view.
The alternative method I proposed in my previous message will make all the quantity inputs as dropdowns with the same increment. So it would be a quick and easy solution.
Making the quantity read only on the checkout is easy too. Go in the HikaShop configuration page, and under the Checkout tab, change the setting "read only" of the "Cart" view.
Please Log in or Create an account to join the conversation.
Time to create page: 0.256 seconds