Weight calculator files

A weight calculator file is similar to a price calculator file but the return variable is $weight instead of $result
The file should be located in “calculator” folder inside the module and having the name weightXX.php where XX is the ID of the product
Initially, the $weight variable contains the result of the weight formula.
Additionally, you can add a global calculator with the name “weights.php” which will affect all products.

Was this article helpful to you? Yes No