From 91529c03f6f1396995dd7bbc26ebdad43578b7e1 Mon Sep 17 00:00:00 2001
From: Gundo Sifhufhi <sifhufhisg@gmail.com>
Date: Tue, 27 Dec 2022 16:32:55 +0200
Subject: [PATCH] Intercept checkout session Get all items from order Get
 Origin details from checkout session(admin configs) Get destination details
 from checkout session Send body of request with all required data. Respond
 with rates

---
 .idea/php.xml                                           | 4 +++-
 uafrica/Customshipping/Model/Carrier/Customshipping.php | 4 ----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/.idea/php.xml b/.idea/php.xml
index b4bbf1e..0e09af4 100644
--- a/.idea/php.xml
+++ b/.idea/php.xml
@@ -1,4 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="PhpProjectSharedConfiguration" php_language_level="7.0" />
+  <component name="PhpProjectSharedConfiguration" php_language_level="7.4">
+    <option name="suggestChangeDefaultLanguageLevel" value="false" />
+  </component>
 </project>
\ No newline at end of file
diff --git a/uafrica/Customshipping/Model/Carrier/Customshipping.php b/uafrica/Customshipping/Model/Carrier/Customshipping.php
index f57e2c4..10769af 100644
--- a/uafrica/Customshipping/Model/Carrier/Customshipping.php
+++ b/uafrica/Customshipping/Model/Carrier/Customshipping.php
@@ -300,8 +300,6 @@ class Customshipping extends AbstractCarrier implements CarrierInterface
          * 3. This method feels hacky, not sure if I will need to refactor, but it works for now,
          * I am open for suggestions.
          */
-
-        //Todo: Add Image dynamically to the result object
         echo "<pre>";
                 print_r("
         <img src='https://ik.imagekit.io/z1viz85yxs/dev-v3/provider-logos/devpanda_logo.png' alt='Dev Panda' width='100' height='100'>
@@ -468,7 +466,6 @@ class Customshipping extends AbstractCarrier implements CarrierInterface
         $destStreet = $request->getDestStreet();
         $destStreet1 = $destStreet;
         $destStreet2 = $destStreet;
-        //  $destStreet3 = $destStreet[2];
 
         //Get all the origin data from the request
         $origin = $this->getConfigData('origin_postcode');
@@ -478,7 +475,6 @@ class Customshipping extends AbstractCarrier implements CarrierInterface
         $originStreet = $this->getConfigData('origin_street');
         $originStreet1 = $originStreet;
         $originStreet2 = $originStreet;
-        // $originStreet3 = $originStreet[2];
 
 
         $items = $request->getAllItems();
-- 
GitLab