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

#2 - Renamed/Replaced All Visible, Variables, Functions with `uafrica` ref.

parent 6d6f9a42
No related branches found
No related tags found
1 merge request!1Resolve "Magento :: Rebrand to Bob Go"
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
Showing
with 156 additions and 122 deletions
<?php <?php
namespace uafrica\Customshipping\Block\System\Config\Form\Field; namespace bobgo\Customshipping\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement; use Magento\Framework\Data\Form\Element\AbstractElement;
/** /**
* @category BobGroup * @category BobGroup
* @package uafrica_customshipping * @package bobgo_Customshipping
* @author info@bob.co.za * @author info@bob.co.za
* @website https://www.bob.co.za * @website https://www.bob.co.za
*/ */
...@@ -14,17 +14,17 @@ class Version extends \Magento\Config\Block\System\Config\Form\Field ...@@ -14,17 +14,17 @@ class Version extends \Magento\Config\Block\System\Config\Form\Field
const EXTENSION_URL = 'https://www.bob.co.za'; const EXTENSION_URL = 'https://www.bob.co.za';
/** /**
* @var \uafrica\Customshipping\Helper\Data $helper * @var \bobgo\Customshipping\Helper\Data $helper
*/ */
protected $_helper; protected $_helper;
/** /**
* @param \Magento\Backend\Block\Template\Context $context * @param \Magento\Backend\Block\Template\Context $context
* @param \uafrica\Customshipping\Helper\Data $helper * @param \bobgo\Customshipping\Helper\Data $helper
*/ */
public function __construct( public function __construct(
\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Block\Template\Context $context,
\uafrica\Customshipping\Helper\Data $helper \bobgo\Customshipping\Helper\Data $helper
) { ) {
$this->_helper = $helper; $this->_helper = $helper;
parent::__construct($context); parent::__construct($context);
......
<?php <?php
namespace uafrica\Customshipping\Helper; namespace bobgo\Customshipping\Helper;
use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\AbstractHelper;
use Magento\Framework\App\Helper\Context; use Magento\Framework\App\Helper\Context;
...@@ -7,16 +7,16 @@ use Magento\Framework\Module\ModuleListInterface; ...@@ -7,16 +7,16 @@ use Magento\Framework\Module\ModuleListInterface;
use Magento\Store\Model\ScopeInterface; use Magento\Store\Model\ScopeInterface;
/** /**
* @category uafrica * @category bobgo
* @package uafrica_customshipping * @package bobgo_Customshipping
* @author uafrica * @author bobgo
* @website https://www.bob.co.za * @website https://www.bob.co.za
*/ */
class Data extends AbstractHelper class Data extends AbstractHelper
{ {
const XML_PATH_ENABLED = 'uafrica_customshipping/general/enabled'; const XML_PATH_ENABLED = 'bobgo_Customshipping/general/enabled';
const XML_PATH_DEBUG = 'uafrica_customshipping/general/debug'; const XML_PATH_DEBUG = 'bobgo_Customshipping/general/debug';
/** /**
* @var \Psr\Log\LoggerInterface * @var \Psr\Log\LoggerInterface
...@@ -65,7 +65,7 @@ class Data extends AbstractHelper ...@@ -65,7 +65,7 @@ class Data extends AbstractHelper
public function getExtensionVersion() public function getExtensionVersion()
{ {
$moduleCode = 'uafrica_Customshipping'; $moduleCode = 'bobgo_Customshipping';
$moduleInfo = $this->_moduleList->getOne($moduleCode); $moduleInfo = $this->_moduleList->getOne($moduleCode);
return $moduleInfo['setup_version']; return $moduleInfo['setup_version'];
} }
......
<?php <?php
namespace uafrica\Customshipping\Model\Carrier; namespace bobgo\Customshipping\Model\Carrier;
class Company class Company
{ {
......
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace uafrica\Customshipping\Model\Carrier; namespace bobgo\Customshipping\Model\Carrier;
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;
use Magento\CatalogInventory\Api\StockRegistryInterface; use Magento\CatalogInventory\Api\StockRegistryInterface;
...@@ -31,9 +31,9 @@ use Magento\Store\Model\StoreManagerInterface; ...@@ -31,9 +31,9 @@ use Magento\Store\Model\StoreManagerInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
/** /**
* uAfrica shipping implementation * bobgo shipping implementation
* @category bob * @category bob
* @package uafrica_Customshipping * @package bobgo_Customshipping
* @author info@bob.co.za * @author info@bob.co.za
* @website https://www.bob.co.za * @website https://www.bob.co.za
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity) * @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
...@@ -44,9 +44,10 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -44,9 +44,10 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
{ {
/** /**
* Code of the carrier * Code of the carrier
*`
* @var string * @var string
*/ */
public const CODE = 'uafrica'; public const CODE = 'bobgo';
const UNITS = 100; const UNITS = 100;
...@@ -73,7 +74,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -73,7 +74,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
protected $_result = null; protected $_result = null;
/** /**
* Container types that could be customized for uAfrica carrier * Container types that could be customized for bobgo carrier
* *
* @var string[] * @var string[]
*/ */
...@@ -200,7 +201,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -200,7 +201,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
/** /**
* Make request to uAfrica API to get shipping rates * Make request to bobgo API to get shipping rates
* @param $payload * @param $payload
* @return array * @return array
*/ */
...@@ -399,7 +400,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -399,7 +400,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
{ {
$codes = [ $codes = [
'method' => [ 'method' => [
'UAFRICA_SHIPPING' => __('uAfrica Shipping'), 'bobgo_SHIPPING' => __('bobgo Shipping'),
], ],
'delivery_confirmation_types' => [ 'delivery_confirmation_types' => [
'NO_SIGNATURE_REQUIRED' => __('Not Required'), 'NO_SIGNATURE_REQUIRED' => __('Not Required'),
...@@ -634,7 +635,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -634,7 +635,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
} }
/** /**
* Parse track details response from uAfrica * Parse track details response from bobgo
* *
* @return array * @return array
* @SuppressWarnings(PHPMD.CyclomaticComplexity) * @SuppressWarnings(PHPMD.CyclomaticComplexity)
...@@ -700,7 +701,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -700,7 +701,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
} }
/** /**
* Perfom API Request to uAfrica API and return response * Perfom API Request to bobgo API and return response
* @param array $payload * @param array $payload
* @param Result $result * @param Result $result
* @return void * @return void
...@@ -715,14 +716,14 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -715,14 +716,14 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
} }
/** /**
* Perform API Request for Shipment Tracking to uAfrica API and return response * Perform API Request for Shipment Tracking to bobgo API and return response
* @param $trackInfo * @param $trackInfo
* @param array $result * @param array $result
* @return array * @return array
*/ */
private function _requestTracking($trackInfo, array $result): array private function _requestTracking($trackInfo, array $result): array
{ {
$response = $this->trackUafricaShipment($trackInfo); $response = $this->trackbobgoShipment($trackInfo);
$result = $this->prepareActivity($response[0], $result); $result = $this->prepareActivity($response[0], $result);
...@@ -730,7 +731,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -730,7 +731,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
} }
/** /**
* Format rates from uAfrica API response and append to rate result instance of carrier * Format rates from bobgo API response and append to rate result instance of carrier
* @param mixed $rates * @param mixed $rates
* @param Result $result * @param Result $result
* @return void * @return void
...@@ -775,7 +776,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -775,7 +776,7 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
/** /**
* Prepare received checkpoints and activity from uAfrica Shipment Tracking API * Prepare received checkpoints and activity from bobgo Shipment Tracking API
* @param $response * @param $response
* @param array $result * @param array $result
* @return array * @return array
...@@ -824,18 +825,17 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\ ...@@ -824,18 +825,17 @@ class Customshipping extends AbstractCarrierOnline implements \Magento\Shipping\
/** /**
* Curl request to uAfrica Shipment Tracking API * Curl request to bobgo Shipment Tracking API
* @param $trackInfo * @param $trackInfo
* @return mixed * @return mixed
*/ */
private function trackUafricaShipment($trackInfo): mixed private function trackbobgoShipment($trackInfo): mixed
{ {
$this->curl->get(uData::TRACKING . $trackInfo); $this->curl->get(uData::TRACKING . $trackInfo);
$response = $this->curl->getBody(); $response = $this->curl->getBody();
$response = json_decode($response, true); return json_decode($response, true);
return $response;
} }
/** /**
......
<?php <?php
namespace uafrica\Customshipping\Model\Carrier; namespace bobgo\Customshipping\Model\Carrier;
/** /**
* Class uData * Class uData
* @package uafrica\Customshipping\Model\Carrier * bobGo API Resources
* @package bobgo\Customshipping\Model\Carrier
*/ */
class uData class uData
{ {
/** Tracking Endpoint */ /** Tracking Endpoint */
public const TRACKING = 'https://api.dev.ship.uafrica.com/tracking?channel=localhost&tracking_reference='; public const TRACKING = 'https://api.dev.ship.uafrica.com/tracking?channel=localhost&tracking_reference=';
/*** RATES API Endpoint*/ /*** RATES API Endpoint*/
public const RATES_ENDPOINT = 'https://api.dev.ship.uafrica.com/rates-at-checkout/woocommerce'; public const RATES_ENDPOINT = 'https://api.dev.ship.uafrica.com/rates-at-checkout/magento';
} }
<?php <?php
namespace uafrica\Customshipping\Model\Carrier; namespace bobgo\Customshipping\Model\Carrier;
use Magento\Checkout\Api\Data\ShippingInformationInterface; use Magento\Checkout\Api\Data\ShippingInformationInterface;
use Magento\Framework\App\ObjectManager; use Magento\Framework\App\ObjectManager;
use Magento\Framework\Exception\NoSuchEntityException; use Magento\Framework\Exception\NoSuchEntityException;
......
<?php <?php
namespace uafrica\Customshipping\Model\Source; namespace bobgo\Customshipping\Model\Source;
class Dropoff extends Generic class Dropoff extends Generic
{ {
......
<?php <?php
namespace uafrica\Customshipping\Model\Source; namespace bobgo\Customshipping\Model\Source;
/** /**
* uafrica Free Method source implementation * bobgo Free Method source implementation
*/ */
class Freemethod extends Method class Freemethod extends Method
{ {
......
<?php <?php
namespace uafrica\customshipping\Model\Source; namespace bobgo\Customshipping\Model\Source;
use Magento\Framework\Data\OptionSourceInterface; use Magento\Framework\Data\OptionSourceInterface;
use uafrica\Customshipping\Model\Carrier\Customshipping; use bobgo\Customshipping\Model\Carrier\Customshipping;
/** /**
* uAfrica generic source implementation * bobgo generic source implementation
*/ */
class Generic implements OptionSourceInterface class Generic implements OptionSourceInterface
{ {
......
<?php <?php
namespace uafrica\Customshipping\Model\Source; namespace bobgo\Customshipping\Model\Source;
class Method extends Generic class Method extends Generic
{ {
......
<?php <?php
namespace uafrica\Customshipping\Model\Source; namespace bobgo\Customshipping\Model\Source;
class Packaging extends Generic class Packaging extends Generic
{ {
......
<?php <?php
namespace uafrica\Customshipping\Model\Source; namespace bobgo\Customshipping\Model\Source;
class Unitofmeasure extends Generic class Unitofmeasure extends Generic
{ {
......
<?php <?php
namespace uafrica\Customshipping\Observer; namespace bobgo\Customshipping\Observer;
use Magento\Framework\DataObject\Copy; use Magento\Framework\DataObject\Copy;
use Magento\Framework\Event\Observer; use Magento\Framework\Event\Observer;
......
<?php <?php
namespace uafrica\Customshipping\Plugin\Block\DataProviders\Tracking; namespace bobgo\Customshipping\Plugin\Block\DataProviders\Tracking;
use uafrica\Customshipping\Model\Carrier; use bobgo\Customshipping\Model\Carrier;
use Magento\Shipping\Model\Tracking\Result\Status; use Magento\Shipping\Model\Tracking\Result\Status;
use Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle as Subject; use Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle as Subject;
/** /**
* Plugin to change delivery date title with UAfrica customized value * Plugin to change delivery date title with bobgo customized value
*/ */
class ChangeTitle class ChangeTitle
{ {
/** /**
* Title modification in case if UAfrica used as carrier * Title modification in case if bobgo used as carrier
* *
* @param Subject $subject * @param Subject $subject
* @param \Magento\Framework\Phrase|string $result * @param \Magento\Framework\Phrase|string $result
......
<?php <?php
namespace uafrica\Customshipping\Plugin\Block\Tracking; namespace bobgo\Customshipping\Plugin\Block\Tracking;
use Magento\Shipping\Block\Tracking\Popup; use Magento\Shipping\Block\Tracking\Popup;
use Magento\Shipping\Model\Tracking\Result\Status; use Magento\Shipping\Model\Tracking\Result\Status;
use Magento\Shiiping\Model\Carrier; use Magento\Shiiping\Model\Carrier;
/* /*
* Plugin to update delivery date value in case if UAfrica is a carrier used * Plugin to update delivery date value in case if bobgo is a carrier used
*/ */
class PopupDeliveryDate class PopupDeliveryDate
{ {
/** /**
* Show only date for expected delivery in case if UAfrica is a carrier * Show only date for expected delivery in case if bobgo is a carrier
* *
* @param Popup $subject * @param Popup $subject
* @param string $result * @param string $result
......
<?php <?php
namespace uafrica\Customshipping\Plugin\Checkout\Block; namespace bobgo\Customshipping\Plugin\Checkout\Block;
use Magento\Checkout\Block\Checkout\LayoutProcessor; use Magento\Checkout\Block\Checkout\LayoutProcessor;
class LayoutProcessorPlugin class LayoutProcessorPlugin
{ {
// /**
// * This is the Class That Allows The Field To Appear As Required On Checkout,
// * But It Does Not Save The Data To The Quote Table In The Database For The Order
// * To Be Processed Correctly In The Backend And Frontend It Works With Shipping
// * Information Management Class
// * @param LayoutProcessor $subject
// * @param array $jsLayout
// * @return array
// */
/** /**
* This is the Class That Allows The Field To Appear As Required On Checkout, * @param \Magento\Checkout\Block\Checkout\LayoutProcessor $subject
* But It Does Not Save The Data To The Quote Table In The Database For The Order
* To Be Processed Correctly In The Backend And Frontend It Works With Shipping
* Information Management Class
* @param LayoutProcessor $subject
* @param array $jsLayout * @param array $jsLayout
* @return array * @return array
*/ */
public function afterProcess( public function afterProcess(
LayoutProcessor $subject, \Magento\Checkout\Block\Checkout\LayoutProcessor $subject,
array $jsLayout array $jsLayout
): array ) {
{
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children'] $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['suburb'] = [ ['shippingAddress']['children']['shipping-address-fieldset']['children']['street'] = [
'component' => 'Magento_Ui/js/form/element/textarea', 'component' => 'Magento_Ui/js/form/components/group',
'label' => ('Street Address'),
'required' => false,
'dataScope' => 'shippingAddress.street',
'provider' => 'checkoutProvider',
'sortOrder' => 55,
'type' => 'group',
'additionalClasses' => 'street',
'children' => [
[
'label' => ('Street Address'),
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [ 'config' => [
'customScope' => 'shippingAddress.extension_attributes', 'placeholder' => 'street address',
'customEntry' => null, 'customScope' => 'shippingAddress',
'template' => 'ui/form/field', 'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input', 'elementTmpl' => 'ui/form/element/input'
'options' => [],
'tooltip' => [
'description' => __('Necessary for shipping.')
], ],
'id' => 'suburb' 'dataScope' => '0',
'provider' => 'checkoutProvider',
'validation' => ['required-entry' => true, "min_text_length" => 1, "max_text_length" => 255],
],
[
'label' => __('Label 2'),
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'placeholder' => 'town',
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
], ],
'dataScope' => 'shippingAddress.extension_attributes.suburb', 'dataScope' => '1',
'label' => 'Suburb(BobGo Required)',
'provider' => 'checkoutProvider', 'provider' => 'checkoutProvider',
'visible' => false, 'validation' => ['required-entry' => true, "min_text_length" => 1, "max_text_length" => 255],
'validation' => [ ],
'required-entry' => false [
'label' => __('Label 3'),
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'placeholder' => 'suburb',
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '2',
'provider' => 'checkoutProvider',
'validation' => ['required-entry' => true, "min_text_length" => 1, "max_text_length" => 255],
],
'dataScope' => '3',
'provider' => 'checkoutProvider',
'validation' => ['required-entry' => false, "min_text_length" => 1, "max_text_length" => 255],
], ],
'sortOrder' => 110,
/*'customEntry' => null,*/
'id' => 'suburb'
]; ];
return $jsLayout; return $jsLayout;
} }
} }
<?php <?php
namespace uafrica\Customshipping\Plugin; namespace bobgo\Customshipping\Plugin;
use Magento\Quote\Api\CartRepositoryInterface; use Magento\Quote\Api\CartRepositoryInterface;
......
# Magento 2 uAfrica Shipping Extension # Magento 2 BobGo Shipping Extension
## Introduction ## Introduction
A complete guide to install Magento uAfrica Shipping extension in Magento 2. A complete guide to install Magento Bob Go Shipping extension in Magento 2.
## Features ## Features
>This extension allows you to get real-time shipping rates from Bob Go shipping services and display them to your customers during checkout. >This extension allows you to get real-time shipping rates from Bob Go shipping services and display them to your customers during checkout.
>This extension also allows you to track shipments and get delivery status updates from Bob Go shipping services. >This extension also allows you to track shipments and get delivery status updates from Bob Go shipping services.
## How to install Magento 2 Bobgo Shipping Extension ## How to install Magento 2 Bob Go Shipping Extension
### Option 1 (recommended): Install via composer ### Option 1 (recommended): Install via composer
...@@ -23,12 +23,12 @@ Run the following command in Magento 2 root folder:</br> ...@@ -23,12 +23,12 @@ Run the following command in Magento 2 root folder:</br>
#### 1. Execute the following command to install the module: #### 1. Execute the following command to install the module:
``` ```
composer require uafrica/customshipping composer require bobgo/customshipping
``` ```
#### 2. Enter following commands to enable the module: #### 2. Enter following commands to enable the module:
``` ```
bin/magento module:enable uafrica_Customshipping bin/magento module:enable bobgo_Customshipping
bin/magento cache:clean bin/magento cache:clean
bin/magento cache:flush bin/magento cache:flush
bin/magento setup:upgrade bin/magento setup:upgrade
...@@ -41,20 +41,20 @@ bin/magento setup:static-content:deploy ...@@ -41,20 +41,20 @@ bin/magento setup:static-content:deploy
1. Download the extension zip file from the link below: </br> 1. Download the extension zip file from the link below: </br>
<a href="https://github.com/uafrica/magento-uafrica-shipping-extension/archive/refs/heads/main.zip"> Download Magento 2 uAfrica Shipping Extension </a> <a href="https://gitlab.bob.co.za/bobgo/bobgo-magento-extension/-/archive/main/bobgo-magento-extension-main.zip"> Download Magento 2 Bob Go Shipping Extension </a>
2. Unzip the file and copy contents 2. Unzip the file and copy contents
3. Create `uafrica/Customshipping` <em>Directory</em> 3. Create `bobgo/Customshipping` <em>Directory</em>
**It should look like this:** </br> **It should look like this:** </br>
>{Magento root}/app/code/uafrica/Customshipping/ >{Magento root}/app/code/bobgo/Customshipping/
>**{Magento root}**`/app/code/uafrica/Customshipping/`**{Paste here}** >**{Magento root}**`/app/code/bobgo/Customshipping/`**{Paste here}**
3. Go to Magento root folder and run all commands below to install `uafrica_Customshipping`: </br> 3. Go to Magento root folder and run all commands below to install `bobgo_Customshipping`: </br>
``` ```
bin/magento cache:clean bin/magento cache:clean
Bin/magento cache:flush Bin/magento cache:flush
...@@ -65,22 +65,22 @@ ________________________________________________________________________________ ...@@ -65,22 +65,22 @@ ________________________________________________________________________________
# After installation # After installation
## How to configure Magento 2 uAfrica Shipping Extension ## How to configure Magento 2 Bob Go Shipping Extension
### ✓ Step 1: Create an account on Bobgo ### ✓ Step 1: Create an account on Bob Go
You need to create an account on Bobgo to get your Store Identified by the API. You need to create an account on Bob Go to get your Store Identified by the API.
Please visit [Bobgo](https://uafrica.co.za) to create an account. Please visit [Bob Go](https://bobgo.co.za) to create an account.
### ✓ Step 2: Login to Magento Admin ### ✓ Step 2: Login to Magento Admin
1. Click on **UAFRICA** > bobGo > Enabled for Checkout > Yes </br> 1. Click on **bobgo** > bobGo > Enabled for Checkout > Yes </br>
2. and go to `Stores > Configuration > Sales > Delivery Methods` to configure the extension. 2. and go to `Stores > Configuration > Sales > Delivery Methods` to configure the extension.
### ✓ Step 3: Configure Bobgo Shipping Extension ### ✓ Step 3: Configure Bob Go Shipping Extension
1. Select `Bobgo` as shipping method. 1. Select `Bobgo` as shipping method.
...@@ -110,7 +110,7 @@ When the extension is **installed** and **enabled**, a new field will be created ...@@ -110,7 +110,7 @@ When the extension is **installed** and **enabled**, a new field will be created
## How it works ## How it works
## How to use Magento 2 Bobgo Shipping Extension (carrier) to Ship Orders ## How to use Magento 2 Bob Go Shipping Extension (carrier) to Ship Orders
### ✓ Step 1: Add products to cart(Checkout) ### ✓ Step 1: Add products to cart(Checkout)
...@@ -126,5 +126,5 @@ When the extension is **installed** and **enabled**, a new field will be created ...@@ -126,5 +126,5 @@ When the extension is **installed** and **enabled**, a new field will be created
>1. Go to `Sales > Orders` in Magento Admin >1. Go to `Sales > Orders` in Magento Admin
>2. Select an order >2. Select an order
>3. Click `Ship` button >3. Click `Ship` button
>4. Select `uAfrica` as shipping method >4. Select `bobgo` as shipping method
>5. Click `Submit Shipment` button >5. Click `Submit Shipment` button
{ {
"name": "uafrica/bobgo", "name": "bobgo/bobgo",
"description": "Streamline your shipments fulfillments with bobgo", "description": "Streamline your shipments fulfillments with bobgo",
"type": "magento2-module", "type": "magento2-module",
"version": "1.0.0", "version": "1.0.0",
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"registration.php" "registration.php"
], ],
"psr-4": { "psr-4": {
"uafrica\\Customshipping\\": "" "bobgo\\Customshipping\\": ""
} }
} }
} }
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
/** /**
* @category Uafrica * @category bobgo
* @package Uafrica_Customshipping * @package bobgo_Customshipping
* @author Uafrica * @author bobgo
*/ */
--> -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system> <system>
<tab id="uafrica" translate="label" sortOrder="200"> <tab id="bobgo" translate="label" sortOrder="200">
<label>uafrica</label> <label>bobgo</label>
</tab> </tab>
<section id="uafrica_customshipping" showInDefault="1"> <section id="bobgo_Customshipping" showInDefault="1">
<tab>uafrica</tab> <tab>bobgo</tab>
<label>bobGo</label> <label>bobGo</label>
<resource>Magento_Config::config</resource> <resource>Magento_Config::config</resource>
<group id="general" showInDefault="1"> <group id="general" showInDefault="1">
<label>General Settings</label> <label>General Settings</label>
<field id="version" translate="label" type="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0"> <field id="version" translate="label" type="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Version</label> <label>Version</label>
<frontend_model>uafrica\Customshipping\Block\System\Config\Form\Field\Version</frontend_model> <frontend_model>bobgo\Customshipping\Block\System\Config\Form\Field\Version</frontend_model>
</field> </field>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled for Checkout</label> <label>Enabled for Checkout</label>
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
</group> </group>
</section> </section>
<section id="carriers" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> <section id="carriers" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="uafrica" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1"> <group id="bobgo" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>uAfrica</label> <label>bobgo</label>
<field id="version" translate="label" type="label" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0"> <field id="version" translate="label" type="label" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Version</label> <label>Version</label>
<frontend_model>uafrica\Customshipping\Block\System\Config\Form\Field\Version</frontend_model> <frontend_model>bobgo\Customshipping\Block\System\Config\Form\Field\Version</frontend_model>
</field> </field>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0"> <field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</field> </field>
<field id="unit_of_measure" translate="label" type="select" sortOrder="73" showInDefault="1" showInWebsite="1" canRestore="1"> <field id="unit_of_measure" translate="label" type="select" sortOrder="73" showInDefault="1" showInWebsite="1" canRestore="1">
<label>Weight Unit</label> <label>Weight Unit</label>
<source_model>uafrica\Customshipping\Model\Source\Unitofmeasure</source_model> <source_model>bobgo\Customshipping\Model\Source\Unitofmeasure</source_model>
</field> </field>
<field id="additional_info" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1"> <field id="additional_info" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1">
<label>Display Additional Information</label> <label>Display Additional Information</label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment