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

#   Max quantity restriction not working

##

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

Less More

- Posts: 21
- Thank you received: 0
-
-

10 years 4 months ago [\#243178](#243178) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243178 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")* was created by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")*

-- url of the page with the problem -- : [ www.stepsandstillages.co.uk/products/rol...emountable-roll-cage](https://www.stepsandstillages.co.uk/products/roll-pallets-and-roll-cages/product/994-jumbo-demountable-roll-cage)
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- Browser(s) name and version -- : All

Hi,

Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.

I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.

I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.

Bye,

David.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 4 months ago [\#243192](#243192) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243192 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hello David,

Can you give us more information about the issue that you are having through some screenshots and also by showing us some screenshots of how you configured your shipping methods ?

Thank you.

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

10 years 4 months ago -  10 years 4 months ago [\#243319](#243319) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  Replied by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243319 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

I have shown results for this product 3 Sided Mammoth Demountable Roll Cage shipped to postcode NN17 5XY, although I created a test manual shipping method with no post code restriction and it still didnt work. Quantity purchased 4. The product has warehouse set to Manchester-0-6. Here is the shipping method that should be used for this quantity.

Product [ www.stepsandstillages.co.uk/products/rol...emountable-roll-cage](https://www.stepsandstillages.co.uk/products/roll-pallets-and-roll-cages/product/1011-3-sided-mammoth-demountable-roll-cage)

[ ![shipping-method-1.jpg](/forum/attachment/32146) ](/forum/attachment/32146 "...g-method-1.jpg")

[ ![shipping-method-2.jpg](/forum/attachment/32147) ](/forum/attachment/32147 "...g-method-2.jpg")

Results:

[ ![results-for-edge.jpg](/forum/attachment/32149) ](/forum/attachment/32149 "...s-for-edge.jpg")

Here is the shipping method it is using:

[ ![edge-method-used-1.jpg](/forum/attachment/32150) ](/forum/attachment/32150 "...hod-used-1.jpg")

[ ![edge-method-used-2.jpg](/forum/attachment/32151) ](/forum/attachment/32151 "...hod-used-2.jpg")

All methods that use weight instead as the restriction work fine.

Bye,

David.

- [ ![shipping-method-1.jpg](/forum/attachment/32146) ](/forum/attachment/32146 "...g-method-1.jpg") [ ](/forum/attachment/32146?download=1 "...g-method-1.jpg")
- [ ![shipping-method-2.jpg](/forum/attachment/32147) ](/forum/attachment/32147 "...g-method-2.jpg") [ ](/forum/attachment/32147?download=1 "...g-method-2.jpg")
- [ ![results-for-edge.jpg](/forum/attachment/32149) ](/forum/attachment/32149 "...s-for-edge.jpg") [ ](/forum/attachment/32149?download=1 "...s-for-edge.jpg")
- [ ![edge-method-used-1.jpg](/forum/attachment/32150) ](/forum/attachment/32150 "...hod-used-1.jpg") [ ](/forum/attachment/32150?download=1 "...hod-used-1.jpg")
- [ ![edge-method-used-2.jpg](/forum/attachment/32151) ](/forum/attachment/32151 "...hod-used-2.jpg") [ ](/forum/attachment/32151?download=1 "...hod-used-2.jpg")

Last edit: 10 years 4 months ago by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile"). Reason: Made a mistake

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243341](#243341) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243341 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

First, I would recommend to download the latest version of the brainforge plugin. Maybe he fixed some things since one year ago and you have the problem because you're using an old version of the plugin.

If that doesn't help, please provide a test user account and the steps to reproduce the issue on your website and a backend access so that we can check your settings, and a link to this thread (so that we know why you're sending all that) :
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

10 years 4 months ago [\#243463](#243463) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  Replied by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243463 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

Latest brainforge plugin doesnt help. Standard hikashop manual plugin restrictions by quantity doesnt work either. HOWEVER all shipping methods work as expected with NEW products. It is only on the existing products that the method seems to double the products in the cart and select the wrong method. So I can have two products, one just created that works and one created about 2 years ago that doesnt but with all the same settings and methods!

I will send you a login link to the test server tomorrow.

Thanks,

David.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243469](#243469) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243469 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

That's an important thing to know.
Based on that I would recommend to create some mass actions with filter on the product_id and product_parent_id columns being equal to the id of two products of your test (so four mass actions) with an action "display the results" and the columns product_code, product_name and product_warehouse_id selected.
That should allow you and us to understand what is different regarding the warehouses of these two products so that you could then apply a mass action to update the old products to match the new products way of doing it.
I'm guessing that the issue might be that the product_warehouse_id of the variants might have a wrong value or that the brainforge plugin, by redefining the functions of the shipping plugin for its purposes is missing some proper handling of the warehouse system that was added later on.

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

10 years 4 months ago [\#243549](#243549) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  Replied by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243549 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

Finally tracked down the problem. When I created a new test product using the shipping method I neglected to add the same options as the original. When looking at the difference between them the only one was the options. It seems that an optional product that itself has variants is somehow the cause of the problem. Adding an optional product with variants to the newly created test product caused this to use the wrong shipping method as well.

This seems limited to shipping methods that use quantity as a restriction as my methods that use weight can have variant options with no problem.

Bye,

David.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243559](#243559) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243559 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

So the problem is probably that you didn't take the options into account.
When you have a product with 3 options and that you purchase 2 items of that product, you'll end up with 8 items in the cart: 2 of the main products, and 2 of each option.

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

10 years 4 months ago [\#243664](#243664) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  Replied by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243664 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

Yes, but the optional products have a weight of zero and warehouse is set to none. Surely this would mean that they should not be included within the shipping calculation that has a restriction by warehouse. Are you saying that optional products for shipping use the warehouse of the parent product. This would mean you cannot restrict shipping methods by quantity if you wished to not include optional products in the shipping calculation.

Thanks,

David.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243670](#243670) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243670 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

The options will automatically take the warehouse of the product when the "group options with product" setting of the HikaShop configuration is activated.
That's because when the options are grouped with their product, they appear as one product on the cart and the shipping methods selection interface and thus are bundled together with their product in the shipping method selection per warehouse.
If you turn off that option, options won't be associated with the product and they will be keep their own warehouse for the shipping method selection.

Regarding the restrictions per min/max quantities, the weight of the products are not taken into account. What matters there are the number of products/options regardless of their weight.
If you want to not count the options then don't use the quantity restrictions, use the weight restrictions instead:
set a weight of 1kg to all the products and a weight of 0 to the options and then use the min/max on weight. That way, you'll get the same calculations but without the options taken into account.

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

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

Less More

- Posts: 21
- Thank you received: 0
-
-

10 years 4 months ago [\#243691](#243691) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  Replied by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")* on topic *[Max quantity restriction not working](/forum/28-shipping-methods/885104-max-quantity-restriction-not-working#243691 "-- url of the page with the problem -- :   www.stepsandstillages.co.uk/products/rol...emountable-roll-cage  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- Browser(s) name and version -- : All  Hi,  Shipping methods were set up well over a year ago and worked fine, using brainforge postcode plugin and restrictions by warehouse and quantity among others.  I have now noticed that the restrictions by warehouse and quantity do not work as expected. I have tested manual methods without the postcode plugin and they do not work as expected either. I have tested locally without any view modifications.  I have set up a single test method with restriction by warehouse and quantity min 1 max 100 and this works as expected to quantity 50 but then fails with quantity 51. Using weight as a restriction instead works fine but would mean modifying hundreds of shipping methods.  Bye,  David.")*

Hi,

Ok got it, thanks for your help.

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

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

[](#top)
