diff --git a/Block/System/Config/Form/Field/Version.php b/Block/System/Config/Form/Field/Version.php index 964f53cfe5cfdc52a4de73baf68d88fe3cb38f1c..5db3aadba1c798da9bd047990f7c434e9beedf20 100644 --- a/Block/System/Config/Form/Field/Version.php +++ b/Block/System/Config/Form/Field/Version.php @@ -5,14 +5,14 @@ use Magento\Framework\Data\Form\Element\AbstractElement; /** * Displays Version number in System Configuration - * @category BobGroup + * @category Bob Go * @package bobgo_CustomShipping * @author info@bob.co.za * @website https://www.bob.co.za */ class Version extends \Magento\Config\Block\System\Config\Form\Field { - const EXTENSION_URL = 'https://www.bob.co.za'; + const EXTENSION_URL = 'https://www.bobgo.co.za'; /** * @var \bobgo\CustomShipping\Helper\Data $helper @@ -39,7 +39,7 @@ class Version extends \Magento\Config\Block\System\Config\Form\Field protected function _getElementHtml(AbstractElement $element) { $extensionVersion = $this->_helper->getExtensionVersion(); - $extensionTitle = 'BobGo'; + $extensionTitle = 'Bob Go'; $versionLabel = sprintf( '<a href="%s" title="%s" target="_blank">%s</a>', self::EXTENSION_URL, diff --git a/Helper/Data.php b/Helper/Data.php index f1da9bdf1359370d934f38be1c520e0ac1786a00..8bfc250084ca0f4118ed21381d2733bfd676b0e8 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -9,7 +9,7 @@ use Magento\Store\Model\ScopeInterface; /** * @category bobgo * @package bobgo_CustomShipping - * @author bobgo + * @author Bob Go * @website https://www.bob.co.za */ class Data extends AbstractHelper diff --git a/Model/Carrier/CustomShipping.php b/Model/Carrier/CustomShipping.php index d007495e2705e5f221a2c1077978d51f981617c5..d574860b84792df901b439d14aa3b0d9053e53b0 100644 --- a/Model/Carrier/CustomShipping.php +++ b/Model/Carrier/CustomShipping.php @@ -32,7 +32,7 @@ use Magento\Store\Model\StoreManagerInterface; use Psr\Log\LoggerInterface; /** - * bobgo shipping implementation + * Bob Go shipping implementation * @category bob * @package bobgo_CustomShipping * @author info@bob.co.za @@ -182,7 +182,7 @@ class CustomShipping extends AbstractCarrierOnline implements CarrierInterface /* * Gets the base url of the store by stripping the http:// or https:// and wwww. from the url - * leaving just "example.com" since bobgo API uses this format and not the full url as the Identifier + * leaving just "example.com" since Bob Go API uses this format and not the full url as the Identifier * @var \Magento\Store\Model\StoreManagerInterface $this->_storeManager * @return string */ @@ -196,8 +196,8 @@ class CustomShipping extends AbstractCarrierOnline implements CarrierInterface } /** - * Make request to bobgo API to get shipping rates for the cart - * After all the required data is collected, it makes a request to the bobgo API to get the shipping rates + * Make request to Bob Go API to get shipping rates for the cart + * After all the required data is collected, it makes a request to the Bob Go API to get the shipping rates * @param $payload * @return array */ @@ -235,10 +235,10 @@ class CustomShipping extends AbstractCarrierOnline implements CarrierInterface $destStreet = $request->getDestStreet(); /** Destination Information */ - list($destStreet1, $destStreet2, $destStreet3) = $this->destStreet($destStreet); + [$destStreet1, $destStreet2, $destStreet3] = $this->destStreet($destStreet); /** Origin Information */ - list($originStreet, $originRegion, $originCountry, $originCity, $originStreet1, $originStreet2, $storeName, $baseIdentifier, $originSuburb) = $this->storeInformation(); + [$originStreet, $originRegion, $originCountry, $originCity, $originStreet1, $originStreet2, $storeName, $baseIdentifier, $originSuburb] = $this->storeInformation(); /** Get all the items in the cart */ $items = $request->getAllItems(); @@ -398,7 +398,7 @@ class CustomShipping extends AbstractCarrierOnline implements CarrierInterface { $codes = [ 'method' => [ - 'bobGo' => __('Bob Go'), + 'bobgo' => __('Bob Go'), ], 'delivery_confirmation_types' => [ 'NO_SIGNATURE_REQUIRED' => __('Not Required'), @@ -720,7 +720,7 @@ class CustomShipping extends AbstractCarrierOnline implements CarrierInterface */ private function _requestTracking($trackInfo, array $result): array { - $response = $this->trackBobgoShipment($trackInfo); + $response = $this->trackBobGoShipment($trackInfo); $result = $this->prepareActivity($response[0], $result); @@ -820,11 +820,11 @@ class CustomShipping extends AbstractCarrierOnline implements CarrierInterface } /** - * Curl request to bobgo Shipment Tracking API + * Curl request to Bob Go Shipment Tracking API * @param $trackInfo * @return mixed */ - private function trackBobgoShipment($trackInfo): mixed + private function trackBobGoShipment($trackInfo): mixed { $this->curl->get(uData::TRACKING . $trackInfo); diff --git a/Model/Carrier/uData.php b/Model/Carrier/uData.php index 476e9a1f4c22960f2de0a9fada874143a2c49863..46e26523d5eea93e149ff765f259a69111d557aa 100644 --- a/Model/Carrier/uData.php +++ b/Model/Carrier/uData.php @@ -4,7 +4,7 @@ namespace bobgo\CustomShipping\Model\Carrier; /** * Class uData - * bobGo API Resources for Custom Shipping + * Bob Go API Resources for Custom Shipping * @package bobgo\CustomShipping\Model\Carrier */ class uData diff --git a/Model/Source/Freemethod.php b/Model/Source/Freemethod.php index 2ea09d3a96a72e394c04c4e72190481cdd8fd4b6..2e0bc6fd50f52e242f98ed7eef3965f47c032fae 100644 --- a/Model/Source/Freemethod.php +++ b/Model/Source/Freemethod.php @@ -3,7 +3,7 @@ namespace bobgo\CustomShipping\Model\Source; /** - * bobgo Free Method source implementation + * Bob Go Free Method source implementation */ class Freemethod extends Method { diff --git a/Model/Source/Generic.php b/Model/Source/Generic.php index 214e8eb4d02e8d6f437d37244172ffd589362ee9..8bebd1722e4bde334ce710a339686aac2495b8be 100644 --- a/Model/Source/Generic.php +++ b/Model/Source/Generic.php @@ -7,7 +7,7 @@ use Magento\Framework\Data\OptionSourceInterface; use bobgo\CustomShipping\Model\Carrier\CustomShipping; /** - * bobgo generic source implementation + * Bob Go generic source implementation */ class Generic implements OptionSourceInterface { diff --git a/Plugin/Block/DataProviders/Tracking/ChangeTitle.php b/Plugin/Block/DataProviders/Tracking/ChangeTitle.php index 05d108bb12603f8182fcb9a0d72bc40b749fc1b9..285ca5af64851b89e1d4de810acc46bd2a8bc7b8 100644 --- a/Plugin/Block/DataProviders/Tracking/ChangeTitle.php +++ b/Plugin/Block/DataProviders/Tracking/ChangeTitle.php @@ -8,13 +8,13 @@ use Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle as Subject; /** - * Plugin to change delivery date title with bobgo customized value + * Plugin to change delivery date title with Bob Go customized value */ class ChangeTitle { /** - * Title modification in case if bobgo used as carrier + * Title modification in case if Bob Go used as carrier * * @param Subject $subject * @param \Magento\Framework\Phrase|string $result diff --git a/Plugin/Block/Tracking/PopUpDeliveryDate.php b/Plugin/Block/Tracking/PopUpDeliveryDate.php index 420d39b205ff333f48cd92c0bdfd11cb052f9516..e2fa211dd336927e36e7f5bfb17f1f69e8a42c97 100644 --- a/Plugin/Block/Tracking/PopUpDeliveryDate.php +++ b/Plugin/Block/Tracking/PopUpDeliveryDate.php @@ -7,12 +7,12 @@ use Magento\Shipping\Model\Tracking\Result\Status; use Magento\Shiiping\Model\Carrier; /* - * Plugin to update delivery date value in case if bobgo is a carrier used + * Plugin to update delivery date value in case if Bob Go is a carrier used */ class PopupDeliveryDate { /** - * Show only date for expected delivery in case if bobgo is a carrier + * Show only date for expected delivery in case if Bob Go is a carrier * * @param Popup $subject * @param string $result diff --git a/Readme.md b/Readme.md index c157860761a1071e29e6ce76907d3e857a5ae810..82c656168768c83aebe6ede645c035a49a8519cc 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ -# Magento 2 BobGo Shipping Extension +# Magento 2 Bob Go Shipping Extension ## Introduction @@ -75,7 +75,7 @@ Please visit [Bob Go](https://bobgo.co.za) to create an account. ### ✓ Step 2: Login to Magento Admin -1. Click on **bobgo** > bobGo > Enabled for Checkout > Yes </br> +1. Click on **Bob Go** > Bob Go > Enabled for Checkout > Yes </br> 2. and go to `Stores > Configuration > Sales > Delivery Methods` to configure the extension. @@ -83,7 +83,7 @@ Please visit [Bob Go](https://bobgo.co.za) to create an account. ### ✓ Step 3: Configure Bob Go Shipping Extension -1. Select `Bobgo` as shipping method. +1. Select `Bob Go` as shipping method. 2. Select `Enable` to enable the extension. @@ -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 >2. Select an order >3. Click `Ship` button ->4. Select `bobgo` as shipping method +>4. Select `Bob Go` as shipping method >5. Click `Submit Shipment` button diff --git a/composer.json b/composer.json index d817decda90ccb35b62a7d9d1a542d42ea8fe6f4..454449527cd403317adf46db8db8efba9275ffdf 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "bobgo/bobgo", - "description": "Streamline your shipments fulfillment's with bobgo", + "description": "Streamline your shipments fulfillment's with Bob Go", "type": "magento2-module", "version": "1.0.0", "authors": [ diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 71e49e16cc66eb398600dd6e44ece0b20fb6ad0d..a77b41f58e27eae766ebac5ddb47d68ce37f769f 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -9,11 +9,11 @@ <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> - <tab id="BobGo" translate="label" sortOrder="200"> - <label>BobGo</label> + <tab id="bobgo" translate="label" sortOrder="200"> + <label>Bob Go</label> </tab> <section id="bobgo_CustomShipping" showInDefault="1"> - <tab>BobGo</tab> + <tab>Bob Go</tab> <label>Bob Go</label> <resource>Magento_Config::config</resource> <group id="general" showInDefault="1"> @@ -42,7 +42,7 @@ </section> <section id="carriers" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> <group id="bobgo" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1"> - <label>BobGo</label> + <label>Bob Go</label> <field id="version" translate="label" type="label" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0"> <label>Version</label>