Default product and variant weight and volume settings

  • Posts: 12
  • Thank you received: 0
8 years 6 months ago #254597

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 7.0

We tend to use shipping via Australia Post, which requires an accurate weight to be entered, and an arbitrary volume. It does not actually use the volume to calculate the freight, however it does require a non-zero entry for each of length, width and height for it to be able to calculate freight based on the weight.

We are finding that there are several issues with the default settings both for products and variants, and would like to know how to change these. The issues are:

1) When you add a new product the default weight, length, width and height are all zero. I have no problem with the weight being zero, but would like to set the default length, width and height all to 0.01m (1cm) so that freight can be calculated once a weight is entered. Is there a way of changing this default so that all products have those measurements by default?

2) Of greater concern however is the situation with variants. The most common variant we use is colour, which does not alter price, or size. However, even if the main product has the correct weights and volumes entered, any variant created always has zero weight and volume, so cannot be ordered and freight calculated unless these are individually changed. This is extremely tedious, especially if there are 10 or more variants, and it is easy to miss one and then have checkout being impossible.

Surely the variants should inherit the main product weights and size measurements as the default, not zero settings?

If there is a simple way that we can change these defaults it would represent an enormous time saving for us.

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
8 years 6 months ago #254602

Hi,

I would recommend to create mass actions via the menu System>Mass actions.
There, you can have one or several mass actions on the trigger "after a product is created" or "before a product is created" and actions "update the values" on the different weight/dimensions columns to set their values automatically so that you don't have to do that manually each time, be it for main products or variants (both are "product" for mass actions).
www.hikashop.com/support/documentation/167-massaction-form.html

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

  • Posts: 12
  • Thank you received: 0
8 years 6 months ago #254678

Thanks, that sounds perfect and I have been able to get most things to work correctly, however I have not been able to work out a syntax to copy across the weight of the parent product to the variant. Can you suggest something?

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

  • Posts: 12953
  • Thank you received: 1778
8 years 6 months ago #254717

Hello,

Note that if every variant should have the same weight/dimensions, you won't need to change it because it will directly use the weight/dimensions of the main product

There is actually no MassActions option to change the weight/dimensions of your variants based on the main product for EVERY products, so the solution will probably be to directly :
- use some custom code
- create a mass action for each product, and apply a filter based on the product_parent_id

Also, note that you'll be able to retrieve your product weight by using the "product.product_weight" keyword.

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

Time to create page: 0.100 seconds
Powered by Kunena Forum