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

#   Net and gross weight issues

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 5 months ago [\#156059](#156059) by [jani](/forum/user/32629-jani "View jani's Profile")  *[Net and gross weight issues](/forum/28-shipping-methods/868226-net-and-gross-weight-issues#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.")* was created by *[jani](/forum/user/32629-jani "View jani's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY4MjI2LW5ldC1hbmQtZ3Jvc3Mtd2VpZ2h0LWlzc3Vlcz90bXBsPW1hcmtkb3du) 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
-
-
-

12 years 5 months ago [\#156071](#156071) 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 *[Net and gross weight issues](/forum/28-shipping-methods/868226-net-and-gross-weight-issues#156071 "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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY4MjI2LW5ldC1hbmQtZ3Jvc3Mtd2VpZ2h0LWlzc3Vlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 5 months ago [\#156322](#156322) by [jani](/forum/user/32629-jani "View jani's Profile")  Replied by *[jani](/forum/user/32629-jani "View jani's Profile")* on topic *[Net and gross weight issues](/forum/28-shipping-methods/868226-net-and-gross-weight-issues#156322 "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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY4MjI2LW5ldC1hbmQtZ3Jvc3Mtd2VpZ2h0LWlzc3Vlcz90bXBsPW1hcmtkb3du) 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
-
-
-

12 years 5 months ago [\#156398](#156398) 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 *[Net and gross weight issues](/forum/28-shipping-methods/868226-net-and-gross-weight-issues#156398 "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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY4MjI2LW5ldC1hbmQtZ3Jvc3Mtd2VpZ2h0LWlzc3Vlcz90bXBsPW1hcmtkb3du) 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.208 seconds

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

[](#top)
