Minimum product Quantity per order, multiply by 3

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
10 years 1 month ago #208706

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4

Hello!
Thank you so far for the excellent support!

My products have minimum Quantity per order : 1.
What i need to do, is for some products, the minimum Quantity per order to be 3, and when a logged in customer wants to order more than 3, i want that number to multiply by 3, and not by 1.
For example, when the customer clicks the + button, the number should add 3. so it would be:
minimun Quantity per order: 3, 6, 9 etc

Is that somehow possible?
Thank you

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #208709

Hello,
A solution can be to :
- Sell products per unit for none logged users
- Sell products per pack of 3 products for logged in users
Note that you can restrict the displaying of your product regarding the user group by using Access level through your product configuration page.

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

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
10 years 1 month ago #209020

Hi, thank you for the answer but it's not what i m saying.

Only logged users can see the prices and make orders, i ve done that part.
What i dont know how to do, is for some products, the amount of the order to multiply by 3, so when a user clicks the plus(+) button to add more products to his/her cart, the order number should go up from 3 to 6, from 6 to 9 etc...

Is it possible?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #209070

Hi,

You can potentially use the "Show select" value for the option "Quantity input method" in Configuration > Display > Product or directly in the product or category edition page.
Then on the product edition page, set the minimum quantity per order to 3 and the select will automatically display multiple of 3 values.

If you really want an input field with a plus and minus buttons, you can create a new view with a name starting by "show_quantity_" and add the desired php/html code.

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

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
10 years 1 month ago #209281

Hello Xavier,

thank you for the answer, i checked what you said about "Show select" value for the option "Quantity input method" and yes it works.
Unfortunately my client wants the input field but i m going to need your help creating a new view as you said.
Could you write the code that is needed here?

Thank you

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #209283

Hi,

An easiest solution could be to select a value for the option "input quantity mehtod" and then edit the view "product / show_quantity" and customize the code of the selected quantity input method in order to have a specific increment, so this way no need to create a new view.

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

  • Posts: 25
  • Thank you received: 1
9 years 8 months ago #225999

Xavier wrote: Hi,

An easiest solution could be to select a value for the option "input quantity mehtod" and then edit the view "product / show_quantity" and customize the code of the selected quantity input method in order to have a specific increment, so this way no need to create a new view.


Hello I am very interested this solution because I'm having the same problem.
My product has a maximum and a minimum number of orders, but mostly a minimum.

Capture 1 -> Capture 2

Please can you give me a clue how to get it? thanks.

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

  • Posts: 25
  • Thank you received: 1
9 years 8 months ago #226010

I found this solution to change the field value. forum thread

But as I can get the user can not choose less than 2 and a maximum of 20 "exemple"?

It seems to work in part. capture
1. When we select a value below the minimum, the layer disappears payment.
2. The product becomes free. 1 product = free continuing purchase.

What am I doing wrong?

Last edit: 9 years 8 months ago by liontv.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #226218

Hi,

What you are looking for is the option "Quantity per order" in the part "restrictions and dimensions" of the product edition page.
There you can set a minimum and a maximum quantity to order.

What you were filling is a price based on a quantity, so with your settings the price where applied only if the customer add 2 products or more to the cart. So when trying to add 1 product, no prices set.

The following user(s) said Thank You: liontv

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

  • Posts: 25
  • Thank you received: 1
9 years 8 months ago #226247

Thanks Javier. understood perfectly

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

Time to create page: 0.088 seconds
Powered by Kunena Forum