From 6aeb77000c78f7ca1b422dfe2a07c052f2d2f715 Mon Sep 17 00:00:00 2001 From: "@ChristelLoftus" <christel@bob.co.za> Date: Thu, 15 Aug 2024 14:03:54 +0200 Subject: [PATCH] update composer.json --- Plugin/AddWeightUnitToOrderPlugin.php | 6 ++++-- composer.json | 10 +++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Plugin/AddWeightUnitToOrderPlugin.php b/Plugin/AddWeightUnitToOrderPlugin.php index 8efcf0d..d619dde 100644 --- a/Plugin/AddWeightUnitToOrderPlugin.php +++ b/Plugin/AddWeightUnitToOrderPlugin.php @@ -38,10 +38,12 @@ class AddWeightUnitToOrderPlugin $convertedWeight = $weight * 0.45359237; // Set the converted weight back to the item - $orderItem->setData('weight', $weight); + $orderItem->setWeight($convertedWeight); + $orderItem->setData('weight', $convertedWeight); } } - + + return [$order]; } } diff --git a/composer.json b/composer.json index c78f4cf..63303ed 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "bobgo/bobgo", - "description": "Smart shipping and order management solution in South Africa", + "name": "bob-public-utils/bobgo-magento-extension", + "description": "Smart shipping and order management solution in South Africa", "type": "magento2-module", "version": "1.0.0", "authors": [ @@ -14,7 +14,11 @@ "AFL-3.0", "OSL-3.0" ], - "autoload": { + "require": { + "php": "^7.4 || ^8.0 || ^8.1" + }, + + "autoload": { "files": [ "registration.php" ], -- GitLab