mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
ref #73045 fix code
This commit is contained in:
parent
63f625b329
commit
a2a4eca8c7
@ -1,5 +1,5 @@
|
|||||||
## v4.1.11
|
## v4.1.11
|
||||||
* Fixed the transfer of the weight of trade offers
|
* Fixed the transfer of the weight offers
|
||||||
|
|
||||||
## v4.1.10
|
## v4.1.10
|
||||||
* Types of deliveries and payments are displayed only active status and available stores
|
* Types of deliveries and payments are displayed only active status and available stores
|
||||||
|
@ -319,21 +319,15 @@ class ModelExtensionRetailcrmIcml extends Model
|
|||||||
$weight = $this->dd->createElement('weight');
|
$weight = $this->dd->createElement('weight');
|
||||||
$coeffWeight = 1;
|
$coeffWeight = 1;
|
||||||
|
|
||||||
if (
|
if (!empty($weightClasses[$product['weight_class_id']]['value'])) {
|
||||||
!empty($weightClasses[$product['weight_class_id']]['value'])
|
|
||||||
&& $weightClasses[$product['weight_class_id']]['value'] !== 0
|
|
||||||
) {
|
|
||||||
$coeffWeight = $weightClasses[$product['weight_class_id']]['value'];
|
$coeffWeight = $weightClasses[$product['weight_class_id']]['value'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($optionsValues['weight'])) {
|
$weightValue = !empty($optionsValues['weight'])
|
||||||
$weightValue = round(
|
? $product['weight'] + $optionsValues['weight']
|
||||||
($product['weight'] + $optionsValues['weight'])/$coeffWeight,
|
: $product['weight']
|
||||||
6
|
;
|
||||||
);
|
$weightValue = round($weightValue / $coeffWeight, 6);
|
||||||
} else {
|
|
||||||
$weightValue = round($product['weight']/$coeffWeight, 6);
|
|
||||||
}
|
|
||||||
|
|
||||||
$weight->appendChild($this->dd->createTextNode($weightValue));
|
$weight->appendChild($this->dd->createTextNode($weightValue));
|
||||||
$e->appendChild($weight);
|
$e->appendChild($weight);
|
||||||
|
Loading…
Reference in New Issue
Block a user