Title: Magento 2 Custom Shipping Attributes
1Custom Shipping Attributes for Magento 2 User
Guide
- Table of Contents
- Extension Installation
- Configuration
- Configure Custom Shipping Method
- Manage Shipping Attributes
- Custom Shipping Attributes in Frontend
- Custom Shipping Attributes in Sales Order View in
Backend
Custom Shipping Attributes for Magento 2
Meetanshi
2- Extension Installation
- For Magento Marketplace Customers
- Find the Composer name and version of the
extension in the extensions composer.json file. - Login to your SSH and run
- composer require meetanshi/magento-2-custom-shippi
ng-attributes - Enter your authentication keys. Your public key
is your username your private key is your
password. - Wait for Composer to finish updating your project
dependencies and make sure there arent any
errors. - To verify that the extension installed properly,
run the command - php bin/magento modulestatus Meetanshi_CustomShip
pingOptions - By default, the extension is probably disabled.
- Enable the extension and clear static view files
- php bin/magento moduleenable Meetanshi_CustomShip
pingOptions --clear-static- content - php bin/magento setupupgrade
- For Magento version 2.0.x to 2.1.x - php
bin/magento setupstatic-contentdeploy - For Magento version 2.2.x above - php
bin/magento setupstatic-contentdeploy f - php bin/magento cacheflush
- For Meetanshi Customers
- Extract the zip folder and upload our extension
to the root of your Magento 2 directory via FTP.
Custom Shipping Attributes for Magento 2
Meetanshi
33. Configure Custom Shipping Method Immediately
after the extension installation, you can see a
custom shipping method added at Stores gt
Configuration gt Sales gt Shipping Methods gt
Meetanshi Custom Shipping Method. You can
configure title, method name, shipping rate,
handling fee, allowed countries, etc. for the
same. Custom shipping attributes are compatible
only with this custom shipping method
you configure.
Custom Shipping Attributes for Magento 2
Meetanshi
44. Manage Shipping Attributes All the created and
stored custom shipping attributes are stored at
Sales gt Meetanshi Custom Shipping Attributes gt
Manage Shipping Attributes grid. The admin can
use enable, disable and delete mass action for
the custom shipping attributes.
Custom Shipping Attributes for Magento 2
Meetanshi
5- Add New Custom Shipping Attribute
- From the Manage Shipping Attributes grid, click
on Add New Shipping Attribute - button to add a custom shipping attribute.
- Enable Select to enable custom shipping
attribute. - Label Enter label of the custom shipping
attribute. - Code Enter code for the unique identification of
the attribute. - Shipping Attribute Input Type Select one of the
shipping attribute input types. - Text Field
- Text Area
- Yes/No
- Multi Select
- Dropdown
- Date Picker
- Default Value Set default value for the above
selected shipping attribute input type. - Attribute Value Input Required Select YES to
mandate attribute value input from the customers
at the time of using custom shipping method.
Custom Shipping Attributes for Magento 2
Meetanshi
65. Custom Shipping Attributes in Frontend Once
the extension is configured and enabled,
customers can see custom shipping attributes at
the time of opting for the custom shipping
method. If the Attribute Value Input Required
option is set to YES, customer has to input the
value to checkout the product and place
order successfully.
Custom Shipping Attributes for Magento 2
Meetanshi
7- Custom Shipping Attribute Details in Customers
My Account Section - Immediately after the order is placed
successfully, custom shipping attributes selected
by the customer is displayed in order view
section in My Account section.
Custom Shipping Attributes for Magento 2
Meetanshi
86. Custom Shipping Attributes in Sales Order View
in Backend Apart from the customers, the admin
can also see custom shipping attributes selected
by the customers from Sales gt Orders gt Order
View section in the backend.
Custom Shipping Attributes for Magento 2
Meetanshi
97. Custom Shipping Attributes in Order
Confirmation Email to Customers After the
successful order placement, customer can see
selected shipping attributes in order
confirmation email under the custom shipping
options section.
Custom Shipping Attributes for Magento 2
Meetanshi