Skip to main content
added 119 characters in body
Source Link
CodeForGood
  • 764
  • 8
  • 39

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below. All the previous custom modules I created the same way are working,but none of them had any Model directory within it.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

di.xml file is as below.

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Config\Model\Config\TypePool">
        <arguments>
            <argument name="sensitive" xsi:type="array">
                <item name="carriers/fedex/account" xsi:type="string">1</item>
                <item name="carriers/fedex/key" xsi:type="string">1</item>
                <item name="carriers/fedex/meter_number" xsi:type="string">1</item>
                <item name="carriers/fedex/password" xsi:type="string">1</item>
                <item name="carriers/fedex/production_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/sandbox_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/smartpost_hubid" xsi:type="string">1</item>
            </argument>
            <argument name="environment" xsi:type="array">
                <item name="carriers/fedex/sandbox_mode" xsi:type="string">1</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle">
        <plugin name="update_delivery_date_title" type="Magento\Fedex\Plugin\Block\DataProviders\Tracking\ChangeTitle"/>
    </type>
    <type name="Magento\Shipping\Block\Tracking\Popup">
        <plugin name="update_delivery_date_value" type="Magento\Fedex\Plugin\Block\Tracking\PopupDeliveryDate"/>
    </type>
</config>

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

di.xml file is as below.

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Config\Model\Config\TypePool">
        <arguments>
            <argument name="sensitive" xsi:type="array">
                <item name="carriers/fedex/account" xsi:type="string">1</item>
                <item name="carriers/fedex/key" xsi:type="string">1</item>
                <item name="carriers/fedex/meter_number" xsi:type="string">1</item>
                <item name="carriers/fedex/password" xsi:type="string">1</item>
                <item name="carriers/fedex/production_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/sandbox_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/smartpost_hubid" xsi:type="string">1</item>
            </argument>
            <argument name="environment" xsi:type="array">
                <item name="carriers/fedex/sandbox_mode" xsi:type="string">1</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle">
        <plugin name="update_delivery_date_title" type="Magento\Fedex\Plugin\Block\DataProviders\Tracking\ChangeTitle"/>
    </type>
    <type name="Magento\Shipping\Block\Tracking\Popup">
        <plugin name="update_delivery_date_value" type="Magento\Fedex\Plugin\Block\Tracking\PopupDeliveryDate"/>
    </type>
</config>

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below. All the previous custom modules I created the same way are working,but none of them had any Model directory within it.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

di.xml file is as below.

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Config\Model\Config\TypePool">
        <arguments>
            <argument name="sensitive" xsi:type="array">
                <item name="carriers/fedex/account" xsi:type="string">1</item>
                <item name="carriers/fedex/key" xsi:type="string">1</item>
                <item name="carriers/fedex/meter_number" xsi:type="string">1</item>
                <item name="carriers/fedex/password" xsi:type="string">1</item>
                <item name="carriers/fedex/production_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/sandbox_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/smartpost_hubid" xsi:type="string">1</item>
            </argument>
            <argument name="environment" xsi:type="array">
                <item name="carriers/fedex/sandbox_mode" xsi:type="string">1</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle">
        <plugin name="update_delivery_date_title" type="Magento\Fedex\Plugin\Block\DataProviders\Tracking\ChangeTitle"/>
    </type>
    <type name="Magento\Shipping\Block\Tracking\Popup">
        <plugin name="update_delivery_date_value" type="Magento\Fedex\Plugin\Block\Tracking\PopupDeliveryDate"/>
    </type>
</config>
added 1824 characters in body
Source Link
CodeForGood
  • 764
  • 8
  • 39

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

di.xml file is as below.

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Config\Model\Config\TypePool">
        <arguments>
            <argument name="sensitive" xsi:type="array">
                <item name="carriers/fedex/account" xsi:type="string">1</item>
                <item name="carriers/fedex/key" xsi:type="string">1</item>
                <item name="carriers/fedex/meter_number" xsi:type="string">1</item>
                <item name="carriers/fedex/password" xsi:type="string">1</item>
                <item name="carriers/fedex/production_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/sandbox_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/smartpost_hubid" xsi:type="string">1</item>
            </argument>
            <argument name="environment" xsi:type="array">
                <item name="carriers/fedex/sandbox_mode" xsi:type="string">1</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle">
        <plugin name="update_delivery_date_title" type="Magento\Fedex\Plugin\Block\DataProviders\Tracking\ChangeTitle"/>
    </type>
    <type name="Magento\Shipping\Block\Tracking\Popup">
        <plugin name="update_delivery_date_value" type="Magento\Fedex\Plugin\Block\Tracking\PopupDeliveryDate"/>
    </type>
</config>

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

di.xml file is as below.

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Config\Model\Config\TypePool">
        <arguments>
            <argument name="sensitive" xsi:type="array">
                <item name="carriers/fedex/account" xsi:type="string">1</item>
                <item name="carriers/fedex/key" xsi:type="string">1</item>
                <item name="carriers/fedex/meter_number" xsi:type="string">1</item>
                <item name="carriers/fedex/password" xsi:type="string">1</item>
                <item name="carriers/fedex/production_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/sandbox_webservices_url" xsi:type="string">1</item>
                <item name="carriers/fedex/smartpost_hubid" xsi:type="string">1</item>
            </argument>
            <argument name="environment" xsi:type="array">
                <item name="carriers/fedex/sandbox_mode" xsi:type="string">1</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Shipping\Block\DataProviders\Tracking\DeliveryDateTitle">
        <plugin name="update_delivery_date_title" type="Magento\Fedex\Plugin\Block\DataProviders\Tracking\ChangeTitle"/>
    </type>
    <type name="Magento\Shipping\Block\Tracking\Popup">
        <plugin name="update_delivery_date_value" type="Magento\Fedex\Plugin\Block\Tracking\PopupDeliveryDate"/>
    </type>
</config>
added 14 characters in body
Source Link
CodeForGood
  • 764
  • 8
  • 39

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

I got to override Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

I got to override Magento FedEx Carrier.php in Magento-fedex module which is seen in the screenshot below.

enter image description here

The structure of the overriden Fedex module under app/code in the project is as below.

enter image description here

registration.php, modul.xml are all edited accordingly. Also ran the upgrade commands. The change doesn't seem to have taken place. Am I overriding the module the way it should be?

Source Link
CodeForGood
  • 764
  • 8
  • 39
Loading