Skip to content
Snippets Groups Projects
Commit 461a2fb5 authored by Christel Loftus's avatar Christel Loftus
Browse files

remove bobgo tab from admin protal and hide admin settings for bobgo delivery method

parent 5b2e5cc7
No related branches found
No related tags found
1 merge request!6Rates at checkout
...@@ -2,22 +2,6 @@ ...@@ -2,22 +2,6 @@
<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="bobgo" translate="label" sortOrder="2">
<label>Bob Go</label>
</tab>
<section id="BobGroup_BobGo" showInDefault="1">
<tab>bobgo</tab>
<label>Settings</label>
<resource>Magento_Config::config</resource>
<group id="general" showInDefault="1">
<label>Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Extension enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>
</section>
<section id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> <section id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="store_information" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> <group id="store_information" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="suburb" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0"> <field id="suburb" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
...@@ -39,41 +23,40 @@ ...@@ -39,41 +23,40 @@
<comment>When this setting is enabled, your customers will be presented with shipping rates at checkout, as configured on the Bob Go platform under Rates at checkout.</comment> <comment>When this setting is enabled, your customers will be presented with shipping rates at checkout, as configured on the Bob Go platform under Rates at checkout.</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field> </field>
<field id="specificerrmsg" translate="label" type="textarea" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="additional_info" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1">
<label>Displayed Error Message</label> <label>Show additional rate information</label>
<comment>The message displayed to the customer when no rates were available on Bob Go.</comment> <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Displays the delivery timeframe and additional service level description as configured on Bob Go.</comment>
</field> </field>
<field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0"> <!-- Hiding these fields (specificerrmsg, sallowspecific, specificcountry, showmethod, unit_of_measure, max_package_weight) from the admin protal-->
<field id="specificerrmsg" translate="label" type="textarea" sortOrder="80" showInDefault="0" showInWebsite="0" showInStore="0">
<label>Displayed Error Message</label>
<comment>We could not find any shipping rates for your delivery address. Please make sure your address is correct. If you are experiencing problems, please contact BobGo (support@bobgo.co.za).</comment>
</field>
<field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="0" showInWebsite="0" showInStore="0">
<label>Ship to Applicable Countries</label> <label>Ship to Applicable Countries</label>
<frontend_class>shipping-applicable-country</frontend_class> <frontend_class>shipping-applicable-country</frontend_class>
<source_model>Magento\Shipping\Model\Config\Source\Allspecificcountries</source_model> <source_model>Magento\Shipping\Model\Config\Source\Allspecificcountries</source_model>
</field> </field>
<field id="specificcountry" translate="label" type="multiselect" sortOrder="91" showInDefault="0" showInWebsite="0" showInStore="0">
<field id="specificcountry" translate="label" type="multiselect" sortOrder="91" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Ship to Specific Countries</label> <label>Ship to Specific Countries</label>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model> <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<can_be_empty>1</can_be_empty> <can_be_empty>1</can_be_empty>
</field> </field>
<field id="showmethod" translate="label" type="select" sortOrder="92" showInDefault="0" showInWebsite="0" showInStore="0">
<field id="showmethod" translate="label" type="select" sortOrder="92" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Show Method if Not Applicable</label> <label>Show Method if Not Applicable</label>
<frontend_class>shipping-skip-hide</frontend_class> <frontend_class>shipping-skip-hide</frontend_class>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field> </field>
<field id="unit_of_measure" translate="label" type="select" sortOrder="73" showInDefault="1" showInWebsite="1"> <field id="unit_of_measure" translate="label" type="select" sortOrder="73" showInDefault="0" showInWebsite="0">
<label>Weight Unit</label> <label>Weight Unit</label>
<source_model>BobGroup\BobGo\Model\Source\Unitofmeasure</source_model> <source_model>BobGroup\BobGo\Model\Source\Unitofmeasure</source_model>
</field> </field>
<field id="max_package_weight" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1"> <field id="max_package_weight" translate="label" type="text" sortOrder="90" showInDefault="0" showInWebsite="0">
<label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label> <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
<validate>validate-number validate-zero-or-greater</validate> <validate>validate-number validate-zero-or-greater</validate>
</field> </field>
<field id="additional_info" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1">
<label>Show additional rate information</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Displays the delivery timeframe and additional service level description as configured on Bob Go.</comment>
</field>
</group> </group>
</section> </section>
......
...@@ -10,14 +10,10 @@ ...@@ -10,14 +10,10 @@
<carriers> <carriers>
<bobgo> <bobgo>
<active>0</active> <active>0</active>
<!-- <sallowspecific>1</sallowspecific>
<specificcountry>ZA</specificcountry>-->
<price>0.00</price> <price>0.00</price>
<model>BobGroup\BobGo\Model\Carrier\BobGo</model> <model>BobGroup\BobGo\Model\Carrier\BobGo</model>
<name>Fixed</name> <name>Fixed</name>
<max_package_weight>300</max_package_weight>
<title>Bob Go</title> <title>Bob Go</title>
<specificerrmsg>We could not find any shipping rates for your delivery address. Please make sure your address is correct. If you are experiencing problems, please contact us.</specificerrmsg>
</bobgo> </bobgo>
</carriers> </carriers>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment