Max quantity restriction not working

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #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.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #243192

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 or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #243319

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






Results:



Here is the shipping method it is using:





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

Bye,

David.

Last edit: 8 years 5 months ago by davidmayne. Reason: Made a mistake

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #243341

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

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

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #243463

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #243469

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 or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #243549

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #243559

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 or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #243664

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #243670

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 or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #243691

Hi,

Ok got it, thanks for your help.

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

Time to create page: 0.113 seconds
Powered by Kunena Forum