Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Denotes questions about shipping methods configuration and implementation.
0
votes
2
answers
2k
views
Magento 2 how convert package weight to Kilogram (KG)
I have a custom shipping method in Magento 2, i successfully got the package weight by using this code in Model/Carrier.php :
$weight = $request->getPackageWeight();
but the default system measurem …
0
votes
How to get region_id value inside collectRates method from shipping module : Magento2
$data = json_decode(file_get_contents('php://input'), true);
$region = $data['region_id'];
this is uncommon way, but it works
6
votes
1
answer
626
views
Flat rate still showing after disabled
Magento 2.1.4 : Disabled flat rate via store > configuration > sales > shipping method like this:
I have already deleted the cache, upgrade, static content deploy but it keeps showing the flat rate …
5
votes
How to get the value of custom field checkout address in Carrier Model Magento 2
finally found the solution, using php function to get the raw json input, here's the code:
public function collectRates(RateRequest $request)
{
$data = json_decode(file_get_contents('php://input' …
4
votes
1
answer
2k
views
How to get the value of custom field checkout address in Carrier Model Magento 2
I followed the tutorial here to make a custom field in address form checkout:
<?php
$customAttributeCode = 'custom_field';
$customField = [
'component' => 'Magento_Ui/js/form/element/abstract',
…