Zone Based Rates, $shipping_weight add two decimal places
Zone Based Rates, $shipping_weight add two decimal places
Hi
I use Zone Based Rates,
I need to add two decimal places to "$shipping_weight" in this module.
When the product weighs less than 1 kg, 0 kg is displayed everywhere.
Can you help me, please.
I use Zone Based Rates,
I need to add two decimal places to "$shipping_weight" in this module.
When the product weighs less than 1 kg, 0 kg is displayed everywhere.
Can you help me, please.
You do not have the required permissions to view the files attached to this post.
-
- VIP Member
- Posts: 2315
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 31 times
- Been thanked: 218 times
Re: Zone Based Rates, $shipping_weight add two decimal places
You don't say what Phoenix Cart version you are using but testing on a default current v1.0.9.9 with nothing changed from default and Lime Products Weight is 0.35, the display is as expected:
You do not have the required permissions to view the files attached to this post.
- bonbec
- VIP Member
- Posts: 102
- Joined: Mon Oct 26, 2020 12:23 pm
- Has thanked: 16 times
- Been thanked: 7 times
Re: Zone Based Rates, $shipping_weight add two decimal places
Hello @miki
This happens when you use a comma instead of a period.
0,30 => 0 Kg
0.30 => 0.30 Kg
This happens when you use a comma instead of a period.
0,30 => 0 Kg
0.30 => 0.30 Kg
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.0.9.7 PHP 8.3
Re: Zone Based Rates, $shipping_weight add two decimal places
I use the period everywhere.
Products Weight,
Shipping Table...
-
- Lead Developer
- Posts: 3002
- Joined: Tue Oct 29, 2019 9:37 am
- : Buy Me A Beverage
- Has thanked: 52 times
- Been thanked: 167 times
Re: Zone Based Rates, $shipping_weight add two decimal places
You must always state your Phoenix version when asking for help.
-
- VIP Member
- Posts: 2315
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 31 times
- Been thanked: 218 times
Re: Zone Based Rates, $shipping_weight add two decimal places
Confirmed that testing on a default v1.0.9.0 with nothing changed from default where Lime Products Weight is 0.35, the display is incorrect:
Personally don't know a fix (though somebody else might) other than updating your installation.
Personally don't know a fix (though somebody else might) other than updating your installation.
You do not have the required permissions to view the files attached to this post.
Re: Zone Based Rates, $shipping_weight add two decimal places
I would like to add the following here:
I had to adjust the products_weight field in the products table. 1 kilogram (kg) has 3 decimal places for 1 gram.
This was necessary in order to calculate the weight calculation for the Swiss postal tariff more precisely.
Perhaps it would make sense to take this into account in the main version of Phoenix:
(products_weight field decimal 6,3). I work with Version 1 0 7 15
I had to adjust the products_weight field in the products table. 1 kilogram (kg) has 3 decimal places for 1 gram.
This was necessary in order to calculate the weight calculation for the Swiss postal tariff more precisely.
Perhaps it would make sense to take this into account in the main version of Phoenix:
(products_weight field decimal 6,3). I work with Version 1 0 7 15