From eaa7ca332dc91dccf081164838fdf8667c2cecfd Mon Sep 17 00:00:00 2001
From: Gundo Sifhufhi <sifhufhisg@gmail.com>
Date: Wed, 15 Feb 2023 14:45:21 +0200
Subject: [PATCH] Error Fixing

---
 etc/adminhtml/system.xml | 22 ++++++++--------------
 etc/config.xml           |  9 +--------
 2 files changed, 9 insertions(+), 22 deletions(-)

diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml
index 3553cdc..4e3d063 100644
--- a/etc/adminhtml/system.xml
+++ b/etc/adminhtml/system.xml
@@ -1,18 +1,10 @@
 <?xml version="1.0"?>
-<!--
-/**
- * @category   Bob Go
- * @package    bobgo_CustomShipping
- * @author     Bob Go
- */
--->
 <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="20">
+        <tab id="BobGo" translate="label" sortOrder="1">
             <label>Bob Go</label>
         </tab>
-
         <section id="bobgo_CustomShipping"  showInDefault="1">
             <tab>BobGo</tab>
             <label>Settings</label>
@@ -59,18 +51,19 @@
                 <field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">
                     <label>Ship to Applicable Countries</label>
                     <frontend_class>shipping-applicable-country</frontend_class>
-                    <source_model>bobgo\CustomShipping\Model\Source\Allspecificcountries</source_model>
+                    <source_model>Magento\Shipping\Model\Config\Source\Allspecificcountries</source_model>
                 </field>
-                <field id="specificcountry" translate="label" type="select" sortOrder="91" showInDefault="1" showInWebsite="1" showInStore="0">
-                    <label>Applicable Countries</label>
-                    <source_model>bobgo\CustomShipping\Model\Source\Country</source_model>
+
+                <field id="specificcountry" translate="label" type="multiselect" sortOrder="91" showInDefault="1" showInWebsite="1" showInStore="0">
+                    <label>Ship to Specific Countries</label>
+                    <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
                     <can_be_empty>1</can_be_empty>
                 </field>
 
                 <field id="showmethod" translate="label" type="select" sortOrder="92" showInDefault="1" showInWebsite="1" showInStore="0">
                     <label>Show Method if Not Applicable</label>
                     <frontend_class>shipping-skip-hide</frontend_class>
-                    <source_model>bobgo\CustomShipping\Model\Source\Showmethod</source_model>
+                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                 </field>
                 <field id="unit_of_measure" translate="label" type="select" sortOrder="73" showInDefault="1" showInWebsite="1" canRestore="1">
                     <label>Weight Unit</label>
@@ -87,3 +80,4 @@
 
     </system>
 </config>
+
diff --git a/etc/config.xml b/etc/config.xml
index 2d77a53..6f6b169 100644
--- a/etc/config.xml
+++ b/etc/config.xml
@@ -1,11 +1,4 @@
 <?xml version="1.0"?>
-<!--
-/**
- * @category   bobgo
- * @package    bobgo_CustomShipping
- * @author     bobgo
- */
--->
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
     <default>
         <bobgo_CustomShipping>
@@ -16,7 +9,7 @@
 
         <carriers>
             <bobgo>
-                <active>1</active>
+                <active>0</active>
                 <sallowspecific>0</sallowspecific>
                 <price>0.00</price>
                 <model>bobgo\CustomShipping\Model\Carrier\CustomShipping</model>
-- 
GitLab