2. UPS Live Rates for Magento 2
Prerequisites
- PHP Version Requirement: PHP 7.3 or higher
- Magento Version Requirement: Version 2.3.4, 2.3.7 or newer (Tested up to version 2.4.6p3, 2.4.6p4, 2.4.7)
- Magento 2 Core Plugin Installed
- firebase/php-jwt
Installation Process:
- Open a Browser Tab and Register or Login to https://ups.dashboardlink.com
- Open another Tab in the same Browser and login to your Magento 2 Admin Backend
Manual Installation:
- Download the ZIP file of the UPS Live Rates addon.
- Extract the contents into your Magento root directory under “app/code”.
- Follow the folder structure like: app/code/UPS/Liverates , If extract folder name UPS_Liverates then rename based on below structure.
- Install Core module : composer require ups/dashboard
- Install the “firebase/php-jwt” dependency by following the link: https://github.com/firebase/php-jwt.
- Run the commands:
- composer require firebase/php-jwt.
- composer require swaggerlib/iws-isa=dev-main
Execute Commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Settings:
- Configuring UPS Live Rates:
- Navigate to: Admin> Store> Configuration> Magento UPS> Start Here> Choose the appropriate store view from the store scope.
- Add configuration details and connect to the Live Rate service.
Setting Proper Store Address:
- Go to: Admin> System> Settings> Configuration> General> Store Information.
- Ensure the store address is accurately set up.
Checkout Page – Shipping Methods:
- Once configured, UPS Live Rates options will be available for selection during the checkout process on the shipping methods section.
Uninstallation Process
Manual Process:
- Navigate to the Magento root directory.
- Delete the “UPS/Liverates” directory manually from the “app/code” directory.
Command Line:
- Open your terminal or command prompt.
- Execute the following command:
bin/magento module:disable UPS_Liverates
- Execute the following command for Uninstall module:
bin/magento module:uninstall UPS_Liverates
- Then, execute the following commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Reconnection Process
In case of disconnection or reconnection, follow the Installation Process steps again.
Functionality of Activating/Deactivating the Plugin
- Deactivate Connection
- Navigate to: Admin > Store > Configuration > Magento UPS > Start Here.
- Click on “Deactivate Connection” to deactivate the plugin.
- Activate
- To activate the plugin, follow the Installation Process steps again.
Was this article helpful?
Have more questions? Submit a request