Net and gross weight issues

  • Posts: 2
  • Thank you received: 0
10 years 6 months ago #156059

Dear Nicolas and Community!

I getting to know the Hikashop system, I haven't found the solution of my issues about the following:

In the shop there will be packed foods. The food has a net weight, plus the package (i.e. bottle, box, and so on) weight, so there are gross weight, too.
An example:
beer 0,5kg (0,5l) = net weight is 0,5kg
glass bottle weight is 0,35kg
gross weight (beer and bottle) is 0,85kg

1. Requirement:
There are regulation to indicate the price/weight unit (i.e. 2.33EUR/kg), as I see the system can do it, with the normal weight parameter. It is OK.

2. Requirement:
On the other case, I can manage the shipping according to the sum. weight of the total order, devided by categories of shipping cost. The manual shipping method with restrictions can manage it, too. It is OK.

The problem is the following, if I would like to use both (1 an 2.) requirement, the system should manage not only one weight, but the net and gross weight too. Because in the case of 1. requirement the correct price/unit calculation use the net weight. But in the case of 2. requirement the shipping method should calculate with gross weight.

As I can see, it is possible to make a new unique field (gross weight). Can I rewrite the manual shipping method code so that it can use weight restrictions not with the normal weight parameter but the new gross weight field? Where can I found (in which file) the code?

Thanks.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #156071

Hi,

As I can see, it is possible to make a new unique field (gross weight). Can I rewrite the manual shipping method code so that it can use weight restrictions not with the normal weight parameter but the new gross weight field? Where can I found (in which file) the code?


You'll be able to do that by editing the code of the "onShippingDisplay" function of the file : "\administrator\components\com_hikashop\helpers\helper.php"

But note that the best way will be to don't change any core file of Hikashop and use a product custom field to show the gross or net weight through the "weight" option of your product configuration page, and set the other weight through a product custom field which will be displayed through your product page.

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

  • Posts: 2
  • Thank you received: 0
10 years 6 months ago #156322

Thanks the reply.

So, should I use the system "weight" parameter as a gross weight, in order to use this in the shipping method restriction (the shipping method can calculate with the gross weight in this manner correctly).
But how can I solve the price / net weight unit issues?
Can I prepare a new field, the net weight, it is filled by the shop administrator, and other, it is calculated, and overwrite the product page to show the calculated field?

thanks.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #156398

Hi,

So, should I use the system "weight" parameter as a gross weight, in order to use this in the shipping method restriction (the shipping method can calculate with the gross weight in this manner correctly).

Yes.

But how can I solve the price / net weight unit issues?
Can I prepare a new field, the net weight, it is filled by the shop administrator, and other, it is calculated, and overwrite the product page to show the calculated field?

By using products custom fields you'll be able to also display the "net weight" through your product page.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum