Adding shipping box

  • Posts: 67
  • Thank you received: 3
  • Hikamarket Multivendor Hikashop Business
5 hours 57 minutes ago #373412

-- HikaShop version -- : 6.6.0
-- Joomla version -- : 6.1.3
-- PHP version -- : 8.3

Hi.
I use manual shipping plugin with Restrictions (price from 0 to 100g, from 100 to 250.
I need to add weight of shipping box to weight of product. How to do it?
thank you.

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

  • Posts: 86177
  • Thank you received: 14212
  • MODERATOR
2 hours 31 minutes ago #373415

Hi,

The manual shipping method has no setting for the weight of the box: its weight restrictions are compared with the weight of the products in the cart. But you can have the box included in the weight of each product automatically with a mass action:

1. In Display > Custom fields, create two custom fields for the table "product", for example "Net weight" (column name net_weight) and "Box weight" (column name box_weight). Enter both in the same unit as the weight of the product.
2. In System > Mass actions, create a mass action on products with the triggers "After a product is created" and "After a product is updated".
3. Add the action "Update the values", select the column product_weight, choose "A calculation" and enter:

product.net_weight + product.box_weight

Then, each time you save a product, its weight becomes the net weight plus the box weight, and the weight restrictions of your shipping methods use that weight.

Note that the weight of a product is multiplied by the quantity in the cart, so this works well if each product is shipped in its own box. If several products are shipped together in one box, the box would be counted once per product.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum