Skip to content
Snippets Groups Projects
Commit 91529c03 authored by Gundo Sifhufhi's avatar Gundo Sifhufhi
Browse files

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
parent 8988b3a2
No related branches found
No related tags found
No related merge requests found
<?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
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment