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

Deactivated `Show Method if Not Applicable`: Strictly ZA.

parent bb952b7c
Branches
Tags
1 merge request!5Update RAC
......@@ -408,6 +408,9 @@ class CustomShipping extends AbstractCarrierOnline implements \Magento\Shipping\
'allspecificcountries' => [
'ZA' => __('South Africa'),
],
'showmethod' => [
'0' => __('No'),
],
];
if (!isset($codes[$type])) {
......
<?php
namespace bobgo\CustomShipping\Model\Source;
class Showmethod extends Generic
{
/**
* @return array
*/
public function toOptionArray()
{
return [
['value' => '0', 'label' => __('No')],
];
}
}
......@@ -70,7 +70,7 @@
<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>Magento\Config\Model\Config\Source\Yesno</source_model>
<source_model>bobgo\CustomShipping\Model\Source\Showmethod</source_model>
</field>
<field id="unit_of_measure" translate="label" type="select" sortOrder="73" showInDefault="1" showInWebsite="1" canRestore="1">
<label>Weight Unit</label>
......
......@@ -16,7 +16,7 @@
<carriers>
<bobgo>
<active>0</active>
<active>1</active>
<sallowspecific>0</sallowspecific>
<price>0.00</price>
<model>bobgo\CustomShipping\Model\Carrier\CustomShipping</model>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment