1
In shipping carrier class, there's a method to validate additional rules proccessAdditionalValidation, searching for that method in the code base will reveal processAdditionalValidation (less than 1 'c'). Then continue searching with that will lead collectCarrierRates
So in my opinion, there will be 2 approaches for this:
Extend the current Carrier, add ...
1
I haven't done something similar but as I checked the code right now, you can create an after Plugin for this method \Magento\Shipping\Model\CarrierFactory::createIfActive or also this method \Magento\Shipping\Model\Shipping::isShippingCarrierAvailable, there you can add your validation and return true or false for the shipping method you allow or not.
...
1
First create a Import Button in your Ui-component File
vendor_name\module_name\view\adminhtml\ui_component
uiComponenetFileName.xml
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Ui/etc/ui_configuration.xsd&...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
backend × 759magento2 × 262
magento-1.9 × 154
admin × 104
adminhtml × 44
orders × 43
frontend × 43
product × 38
grid × 34
magento-1.7 × 31
module × 31
error × 31
attributes × 27
magento2.3 × 25
customer × 24
php × 23
database × 22
magento-1 × 22
magento-1.8 × 19
configuration × 18
login × 18
magento-2.1 × 17
forms × 16
admin-panel × 16
uicomponent × 15