shipping custom module doesn't workMagento Shipping estimate doesn't workProblem with custom shipping...

Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?

Constexpr if with a non-bool condition

Is a new boolean field better than null reference when a value can be meaningfully absent?

Why was Lupin comfortable with saying Voldemort's name?

Strange "DuckDuckGo dork" takes me to random website

Why are the books in the Game of Thrones citadel library shelved spine inwards?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Does dispel magic end a master's control over their undead?

Alien invasion to probe us, why?

Square Root Distance from Integers

Is this ordinary workplace experiences for a job in Software Engineering?

Potential client has a problematic employee I can't work with

Does diversity provide anything that meritocracy does not?

Why don't key signatures indicate the tonic?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Line of Bones to Travel and Conform to Curve (Like Train on a Track...)

Why did the villain in the first Men in Black movie care about Earth's Cockroaches?

Eww, those bytes are gross

Let's Encrypt and EV certificates for different hosts in the same domain

Why does magnet wire need to be insulated?

How would an AI self awareness kill switch work?

How do I draw the dashed lines as shown in this figure

Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?

How to use Mathematica to do a complex integrate with poles in real axis?



shipping custom module doesn't work


Magento Shipping estimate doesn't workProblem with custom shipping moduleMagento 2.1.8 - Custom Online shipping module not displaying shipping methods on checkoutMagento 2 Retrive the Shipping method and shipping rates programmaticallyCustom Attribute Product - Checkout Page - Shipping Module - ObjectManager InstanceEstimate Shipping not work for registered addressMagento2 Frontend and backend doesn't work while executing commandsMagento 2 Custom module country change issueremove free shipping method from custom shipping module magento2Localized Exception Doesn't display erros in Magento 2 shipping plugin













0















I'm trying to extend shipping module of magento. I need to set shiping rate based on region.



the problem is I cannot find my shipping modules in admin panel in Stores > Configuration and it's not applied to storefront



here is system.xml:



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="vendor_id" translate="label" sortOrder="10">
<label>Vendor_Name</label>
</tab>
<section id="zones_shipping" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Zones Fixed Shipping</label>
<tab>vendor_id</tab>
<resource>Vendor_Module::moduleName</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>General Configuration</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
                <label>Enabled</label>           
<source_model>MagentoConfigModelConfigSourceYesno</source_model>


           

                Fixed Shipping
           

Module Enable
MagentoConfigModelConfigSourceYesno


Display Text
This text will display on the frontend.


Title


Method Name


                Price
                validate-number validate-zero-or-greater
           

                Calculate Handling Fee
      MagentoShippingModelSourceHandlingType
           



            <field id="handling_fee" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="0">
                <label>Handling Fee</label>
                <validate>validate-number validate-zero-or-greater</validate>
            </field>
            <field id="sort_order" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
                <label>Sort Order</label>
            </field>
<field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">


                Ship to Applicable Countries
                shipping-applicable-country
               MagentoShippingModelConfigSourceAllspecificcountries
           
           
                Ship to Specific Countries
               
MagentoDirectoryModelConfigSourceCountry
                1
           
           
                Show Method if Not Applicable
                MagentoConfigModelConfigSourceYesno
           
           
                Displayed Error Message
           





here is config.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<carriers>

<Vendor_ModuleName>

<active>1</active>
<sallowspecific>0</sallowspecific>

<model>VendorModuleNameModelCarrierFixedShipping</model>

<name>Fixed Shipping</name>

<title>Zoned fixed shipping</title>



</Vendor_ModuleName>

</carriers>

</default>




here is my model:



class FixedShipping extends AbstractCarrier implements CarrierInterface
{
/**
* @var string
*/
protected $_code = 'vendoe_moduleName';

/**
* @var bool
*/
protected $_isFixed = true;

/**
* @var MagentoShippingModelRateResultFactory
*/
protected $_rateResultFactory;

/**
* @var MagentoQuoteModelQuoteAddressRateResultMethodFactory
*/
protected $_rateMethodFactory;

/**
* @var MagentoCustomerModelSession
*/
protected $customerSession;


public function __construct(MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
MagentoQuoteModelQuoteAddressRateResultErrorFactory $rateErrorFactory,
PsrLogLoggerInterface $logger,
MagentoShippingModelRateResultFactory $rateResultFactory,
MagentoQuoteModelQuoteAddressRateResultMethodFactory $rateMethodFactory,
MagentoCustomerModelSession $customerSession,
array $data = []){

$this->_rateResultFactory = $rateResultFactory;
$this->_rateMethodFactory = $rateMethodFactory;
$this->customerSession = $customerSession;
parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
}

/**
* @return array
*/
public function getAllowedMethods(){

return [$this->getCarrierCode() => __($this->getConfigData('name'))];
}

public function collectRates(MagentoQuoteModelQuoteAddressRateRequest $request){

if (!$this->isActive()){

return false;
}



$result->append($method);
return $result;*/

$item = current($request->getAllItems());
$quote = null;
if ($item instanceof QuoteItem){
$quote = $item->getQuote();
}
if($quote){
$shippingAddress = $quote->getShippingAddress();
if($shippingAddress['region']['region_code'] == 'Cairo'){
$shippingPrice = 20;
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
}
elseif($shippingAddress['region']['region_code'] == 'Alexandria'){
$shippingPrice = 34;
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
}
//else{
$shippingPrice = 1600;
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
//}

$method = $this->_rateMethodFactory->create();

$method->setCarrier($_code);
$method->setCarrierTitle($this->getConfigData('title'));

$method->setMethod($this->getCarrierCode());
$method->setMethodTitle($this->getConfigData('name'));
$result->append($method);
return $result;
}
return false;
}


}










share|improve this question



























    0















    I'm trying to extend shipping module of magento. I need to set shiping rate based on region.



    the problem is I cannot find my shipping modules in admin panel in Stores > Configuration and it's not applied to storefront



    here is system.xml:



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
    <tab id="vendor_id" translate="label" sortOrder="10">
    <label>Vendor_Name</label>
    </tab>
    <section id="zones_shipping" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
    <class>separator-top</class>
    <label>Zones Fixed Shipping</label>
    <tab>vendor_id</tab>
    <resource>Vendor_Module::moduleName</resource>
    <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
    <label>General Configuration</label>
    <field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Enabled</label>           
    <source_model>MagentoConfigModelConfigSourceYesno</source_model>


               

                    Fixed Shipping
               

    Module Enable
    MagentoConfigModelConfigSourceYesno


    Display Text
    This text will display on the frontend.


    Title


    Method Name


                    Price
                    validate-number validate-zero-or-greater
               

                    Calculate Handling Fee
          MagentoShippingModelSourceHandlingType
               



                <field id="handling_fee" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Handling Fee</label>
                    <validate>validate-number validate-zero-or-greater</validate>
                </field>
                <field id="sort_order" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Sort Order</label>
                </field>
    <field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">


                    Ship to Applicable Countries
                    shipping-applicable-country
                   MagentoShippingModelConfigSourceAllspecificcountries
               
               
                    Ship to Specific Countries
                   
    MagentoDirectoryModelConfigSourceCountry
                    1
               
               
                    Show Method if Not Applicable
                    MagentoConfigModelConfigSourceYesno
               
               
                    Displayed Error Message
               





    here is config.xml



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
    <carriers>

    <Vendor_ModuleName>

    <active>1</active>
    <sallowspecific>0</sallowspecific>

    <model>VendorModuleNameModelCarrierFixedShipping</model>

    <name>Fixed Shipping</name>

    <title>Zoned fixed shipping</title>



    </Vendor_ModuleName>

    </carriers>

    </default>




    here is my model:



    class FixedShipping extends AbstractCarrier implements CarrierInterface
    {
    /**
    * @var string
    */
    protected $_code = 'vendoe_moduleName';

    /**
    * @var bool
    */
    protected $_isFixed = true;

    /**
    * @var MagentoShippingModelRateResultFactory
    */
    protected $_rateResultFactory;

    /**
    * @var MagentoQuoteModelQuoteAddressRateResultMethodFactory
    */
    protected $_rateMethodFactory;

    /**
    * @var MagentoCustomerModelSession
    */
    protected $customerSession;


    public function __construct(MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
    MagentoQuoteModelQuoteAddressRateResultErrorFactory $rateErrorFactory,
    PsrLogLoggerInterface $logger,
    MagentoShippingModelRateResultFactory $rateResultFactory,
    MagentoQuoteModelQuoteAddressRateResultMethodFactory $rateMethodFactory,
    MagentoCustomerModelSession $customerSession,
    array $data = []){

    $this->_rateResultFactory = $rateResultFactory;
    $this->_rateMethodFactory = $rateMethodFactory;
    $this->customerSession = $customerSession;
    parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
    }

    /**
    * @return array
    */
    public function getAllowedMethods(){

    return [$this->getCarrierCode() => __($this->getConfigData('name'))];
    }

    public function collectRates(MagentoQuoteModelQuoteAddressRateRequest $request){

    if (!$this->isActive()){

    return false;
    }



    $result->append($method);
    return $result;*/

    $item = current($request->getAllItems());
    $quote = null;
    if ($item instanceof QuoteItem){
    $quote = $item->getQuote();
    }
    if($quote){
    $shippingAddress = $quote->getShippingAddress();
    if($shippingAddress['region']['region_code'] == 'Cairo'){
    $shippingPrice = 20;
    $method->setPrice($shippingPrice);
    $method->setCost($shippingPrice);
    }
    elseif($shippingAddress['region']['region_code'] == 'Alexandria'){
    $shippingPrice = 34;
    $method->setPrice($shippingPrice);
    $method->setCost($shippingPrice);
    }
    //else{
    $shippingPrice = 1600;
    $method->setPrice($shippingPrice);
    $method->setCost($shippingPrice);
    //}

    $method = $this->_rateMethodFactory->create();

    $method->setCarrier($_code);
    $method->setCarrierTitle($this->getConfigData('title'));

    $method->setMethod($this->getCarrierCode());
    $method->setMethodTitle($this->getConfigData('name'));
    $result->append($method);
    return $result;
    }
    return false;
    }


    }










    share|improve this question

























      0












      0








      0








      I'm trying to extend shipping module of magento. I need to set shiping rate based on region.



      the problem is I cannot find my shipping modules in admin panel in Stores > Configuration and it's not applied to storefront



      here is system.xml:



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
      <system>
      <tab id="vendor_id" translate="label" sortOrder="10">
      <label>Vendor_Name</label>
      </tab>
      <section id="zones_shipping" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
      <class>separator-top</class>
      <label>Zones Fixed Shipping</label>
      <tab>vendor_id</tab>
      <resource>Vendor_Module::moduleName</resource>
      <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
      <label>General Configuration</label>
      <field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
                      <label>Enabled</label>           
      <source_model>MagentoConfigModelConfigSourceYesno</source_model>


                 

                      Fixed Shipping
                 

      Module Enable
      MagentoConfigModelConfigSourceYesno


      Display Text
      This text will display on the frontend.


      Title


      Method Name


                      Price
                      validate-number validate-zero-or-greater
                 

                      Calculate Handling Fee
            MagentoShippingModelSourceHandlingType
                 



                  <field id="handling_fee" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="0">
                      <label>Handling Fee</label>
                      <validate>validate-number validate-zero-or-greater</validate>
                  </field>
                  <field id="sort_order" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
                      <label>Sort Order</label>
                  </field>
      <field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">


                      Ship to Applicable Countries
                      shipping-applicable-country
                     MagentoShippingModelConfigSourceAllspecificcountries
                 
                 
                      Ship to Specific Countries
                     
      MagentoDirectoryModelConfigSourceCountry
                      1
                 
                 
                      Show Method if Not Applicable
                      MagentoConfigModelConfigSourceYesno
                 
                 
                      Displayed Error Message
                 





      here is config.xml



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
      <default>
      <carriers>

      <Vendor_ModuleName>

      <active>1</active>
      <sallowspecific>0</sallowspecific>

      <model>VendorModuleNameModelCarrierFixedShipping</model>

      <name>Fixed Shipping</name>

      <title>Zoned fixed shipping</title>



      </Vendor_ModuleName>

      </carriers>

      </default>




      here is my model:



      class FixedShipping extends AbstractCarrier implements CarrierInterface
      {
      /**
      * @var string
      */
      protected $_code = 'vendoe_moduleName';

      /**
      * @var bool
      */
      protected $_isFixed = true;

      /**
      * @var MagentoShippingModelRateResultFactory
      */
      protected $_rateResultFactory;

      /**
      * @var MagentoQuoteModelQuoteAddressRateResultMethodFactory
      */
      protected $_rateMethodFactory;

      /**
      * @var MagentoCustomerModelSession
      */
      protected $customerSession;


      public function __construct(MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
      MagentoQuoteModelQuoteAddressRateResultErrorFactory $rateErrorFactory,
      PsrLogLoggerInterface $logger,
      MagentoShippingModelRateResultFactory $rateResultFactory,
      MagentoQuoteModelQuoteAddressRateResultMethodFactory $rateMethodFactory,
      MagentoCustomerModelSession $customerSession,
      array $data = []){

      $this->_rateResultFactory = $rateResultFactory;
      $this->_rateMethodFactory = $rateMethodFactory;
      $this->customerSession = $customerSession;
      parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
      }

      /**
      * @return array
      */
      public function getAllowedMethods(){

      return [$this->getCarrierCode() => __($this->getConfigData('name'))];
      }

      public function collectRates(MagentoQuoteModelQuoteAddressRateRequest $request){

      if (!$this->isActive()){

      return false;
      }



      $result->append($method);
      return $result;*/

      $item = current($request->getAllItems());
      $quote = null;
      if ($item instanceof QuoteItem){
      $quote = $item->getQuote();
      }
      if($quote){
      $shippingAddress = $quote->getShippingAddress();
      if($shippingAddress['region']['region_code'] == 'Cairo'){
      $shippingPrice = 20;
      $method->setPrice($shippingPrice);
      $method->setCost($shippingPrice);
      }
      elseif($shippingAddress['region']['region_code'] == 'Alexandria'){
      $shippingPrice = 34;
      $method->setPrice($shippingPrice);
      $method->setCost($shippingPrice);
      }
      //else{
      $shippingPrice = 1600;
      $method->setPrice($shippingPrice);
      $method->setCost($shippingPrice);
      //}

      $method = $this->_rateMethodFactory->create();

      $method->setCarrier($_code);
      $method->setCarrierTitle($this->getConfigData('title'));

      $method->setMethod($this->getCarrierCode());
      $method->setMethodTitle($this->getConfigData('name'));
      $result->append($method);
      return $result;
      }
      return false;
      }


      }










      share|improve this question














      I'm trying to extend shipping module of magento. I need to set shiping rate based on region.



      the problem is I cannot find my shipping modules in admin panel in Stores > Configuration and it's not applied to storefront



      here is system.xml:



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
      <system>
      <tab id="vendor_id" translate="label" sortOrder="10">
      <label>Vendor_Name</label>
      </tab>
      <section id="zones_shipping" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
      <class>separator-top</class>
      <label>Zones Fixed Shipping</label>
      <tab>vendor_id</tab>
      <resource>Vendor_Module::moduleName</resource>
      <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
      <label>General Configuration</label>
      <field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
                      <label>Enabled</label>           
      <source_model>MagentoConfigModelConfigSourceYesno</source_model>


                 

                      Fixed Shipping
                 

      Module Enable
      MagentoConfigModelConfigSourceYesno


      Display Text
      This text will display on the frontend.


      Title


      Method Name


                      Price
                      validate-number validate-zero-or-greater
                 

                      Calculate Handling Fee
            MagentoShippingModelSourceHandlingType
                 



                  <field id="handling_fee" translate="label" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="0">
                      <label>Handling Fee</label>
                      <validate>validate-number validate-zero-or-greater</validate>
                  </field>
                  <field id="sort_order" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
                      <label>Sort Order</label>
                  </field>
      <field id="sallowspecific" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="0">


                      Ship to Applicable Countries
                      shipping-applicable-country
                     MagentoShippingModelConfigSourceAllspecificcountries
                 
                 
                      Ship to Specific Countries
                     
      MagentoDirectoryModelConfigSourceCountry
                      1
                 
                 
                      Show Method if Not Applicable
                      MagentoConfigModelConfigSourceYesno
                 
                 
                      Displayed Error Message
                 





      here is config.xml



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
      <default>
      <carriers>

      <Vendor_ModuleName>

      <active>1</active>
      <sallowspecific>0</sallowspecific>

      <model>VendorModuleNameModelCarrierFixedShipping</model>

      <name>Fixed Shipping</name>

      <title>Zoned fixed shipping</title>



      </Vendor_ModuleName>

      </carriers>

      </default>




      here is my model:



      class FixedShipping extends AbstractCarrier implements CarrierInterface
      {
      /**
      * @var string
      */
      protected $_code = 'vendoe_moduleName';

      /**
      * @var bool
      */
      protected $_isFixed = true;

      /**
      * @var MagentoShippingModelRateResultFactory
      */
      protected $_rateResultFactory;

      /**
      * @var MagentoQuoteModelQuoteAddressRateResultMethodFactory
      */
      protected $_rateMethodFactory;

      /**
      * @var MagentoCustomerModelSession
      */
      protected $customerSession;


      public function __construct(MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
      MagentoQuoteModelQuoteAddressRateResultErrorFactory $rateErrorFactory,
      PsrLogLoggerInterface $logger,
      MagentoShippingModelRateResultFactory $rateResultFactory,
      MagentoQuoteModelQuoteAddressRateResultMethodFactory $rateMethodFactory,
      MagentoCustomerModelSession $customerSession,
      array $data = []){

      $this->_rateResultFactory = $rateResultFactory;
      $this->_rateMethodFactory = $rateMethodFactory;
      $this->customerSession = $customerSession;
      parent::__construct($scopeConfig, $rateErrorFactory, $logger, $data);
      }

      /**
      * @return array
      */
      public function getAllowedMethods(){

      return [$this->getCarrierCode() => __($this->getConfigData('name'))];
      }

      public function collectRates(MagentoQuoteModelQuoteAddressRateRequest $request){

      if (!$this->isActive()){

      return false;
      }



      $result->append($method);
      return $result;*/

      $item = current($request->getAllItems());
      $quote = null;
      if ($item instanceof QuoteItem){
      $quote = $item->getQuote();
      }
      if($quote){
      $shippingAddress = $quote->getShippingAddress();
      if($shippingAddress['region']['region_code'] == 'Cairo'){
      $shippingPrice = 20;
      $method->setPrice($shippingPrice);
      $method->setCost($shippingPrice);
      }
      elseif($shippingAddress['region']['region_code'] == 'Alexandria'){
      $shippingPrice = 34;
      $method->setPrice($shippingPrice);
      $method->setCost($shippingPrice);
      }
      //else{
      $shippingPrice = 1600;
      $method->setPrice($shippingPrice);
      $method->setCost($shippingPrice);
      //}

      $method = $this->_rateMethodFactory->create();

      $method->setCarrier($_code);
      $method->setCarrierTitle($this->getConfigData('title'));

      $method->setMethod($this->getCarrierCode());
      $method->setMethodTitle($this->getConfigData('name'));
      $result->append($method);
      return $result;
      }
      return false;
      }


      }







      shipping-methods magento-2.1.7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 17 mins ago









      Yomna MansourYomna Mansour

      16910




      16910






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263706%2fshipping-custom-module-doesnt-work%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263706%2fshipping-custom-module-doesnt-work%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown