Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

To achieve this requirement you need to override two files... Step1: Copy /vendor/magento/module-checkout/view/frontend/web/js/view/summary/shipping.js to app/design/frontend/[vendor]/[Theme]/Magento_Checkout/web/js/view/summary/shiping.js and override getValue function alone with below code getValue: function () { var price; if (!this....


0

Goto your shipping module to the model file like below: app/code/Vendor/StorePickup/Model/Carrier/StorePickup.php There is a method name collectRates. You will find something like below code: if (!$this->getConfigFlag('active')) { return false; } You can check your conditions, if you don't want to show the shipping method then return false else ...


4

Without all the code related to the carrier such as the XML, it's hard to give you a definite answer. But if your carrier is disappearing when the weight is over 0, then I would suspect you have not set the max_package_weight property in the XML. Or set it to an invalid value like a negative. If you have tried Neeraj Garg's solution and it worked for you, ...


1

Before configuring, read about shipping dry ice with FedEx. Default Magento 2 application does not support FedEx dry shipping. Instead, for FedEx shipping with Magento, you can use StorePep. You just need to mark the product as Dry ice within StorePep. Using this information StorePep will automatically show Dry ice rates and also print a FedEx shipping ...


0

In order to dynamically disable any given shipping method, we need to create 2 plugins. One will be in charge of shipping method validation( Enable or Disable ), Other one for filtering out disabled shipping methods. Create these files in a custom module. etc/di.xml <?xml version="1.0"?><config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...


0

But what if I want to override a file from front-end ? I need to override base/default/template/checkout/onepage/shipping_method/available.phtml file. I try with this code in my .conf.xml file <frontend> <design> <theme> <template>mycustomname</template> </theme> </design> </...


7

I have got the solution, this is because we need to define processAdditionalValidation method inside the carrier class and for checking the result you can return true in this function. public function processAdditionalValidation(\Magento\Framework\DataObject $request) { return true; } Please note processAdditionalValidation is different than ...


1

try with below code to get admin details. $adminuserId = 15; $user = \Magento\Framework\App\ObjectManager::getInstance()->create( 'Magento\User\Model\User'); $user->load($adminuserId);


2

Adding custom attribute fields to magento is a painful experience in both magento 1 and magento 2. It's something I've had to do a few times but no client wants the same fields in the same place. If you go extension route this handles field visibility and saving. Plus providing you haven't changed much in admin values will come through there too. https://...


0

In Magento 2.2.4 or greater version, there is an option of multishipping. Store > Configuration > Sales > Multishipping Settings Enable - Allow Shipping to Multiple Addresses You can try to manage the same by using the Multi address shipping.


0

After so much investigation I found one solution. I have tried for Offline shipping methods as described follows and its working fine for me: Namespace/Module/view/frontend/requirejs-config.js var config = { "map": { "*": { "Magento_OfflineShipping/js/model/shipping-rates-validation-rules/flatrate": "Namespace_Module/js/model/...


0

As discussed in comments it is a weight issue. I believe either the store pickup or Canada post extension is causing this issue. As the issue is easy to recreate I would reach out to the develops of the extensions. Show them the problem you are experiencing and see if they can determine whether or not their extension is the cause.


1

You could follow this guide from Mageplaza to create your own shipping method: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/


1

I've added the modification logic to the original code. Please check: Copy the following file to your theme: vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js applyBillingAddress: function () { var shippingAddress; if (quote.billingAddress()) { selectBillingAddress(quote.billingAddress()); ...


0

After more digging the code I wanted to remove was in: vendor/magento/module-checkout/view/frontend/web/template/shipping-address/shipping-method-list.html


1

Try following way: app/code/SR/MagentoCommunity/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_Checkout/js/model/checkout-data-resolver': { 'SR_MagentoCommunity/js/mixin/checkout-data-resolver-mixin': true } } } }; app/code/SR/MagentoCommunity/view/frontend/...


Top 50 recent answers are included