Added one line to allow use of price_ttc in calculated extra fields
price_ttc sometimes needs to be used in extra fields to compute price ttc per kilo or per liter. Currently price_ttc does not compute in the product list, so price per kilo cannot compute either. This allows to add an extra field "Price TTC per kilo" like this : $object->price_ttc / $object->weight. $object->price_ttc will work because the added line puts price_ttc into $products_static, which is put in $object.
This commit is contained in:
parent
b41205302e
commit
33475b8e92
1 changed files with 1 additions and 0 deletions
|
|
@ -1628,6 +1628,7 @@ while ($i < $imaxinloop) {
|
|||
}
|
||||
|
||||
$product_static->price = $obj->price;
|
||||
$product_static->price_ttc = $obj->price_ttc; // Allows to use price_ttc in calculated extra fields (ex : price per kilo)
|
||||
|
||||
$object = $product_static;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue