Updating the GRIN Magento Module
  • 14 Jun 2022
  • Dark
    Light
  • PDF

Updating the GRIN Magento Module

  • Dark
    Light
  • PDF

Article summary

Periodically, you may need to update your GRIN Magento Module to the newest version to continue to have full functionality with your integrated Magento store. You can follow the steps below to complete your update.

Note
We highly recommend your Magento Admin completes the module setup. If you need further assistance, reach out to GRIN’s Support team.

What You’ll Need

Note

If you have the GRIN Magento Module Version 1 installed, you must uninstall Version 1 and reinstall Version 2. For help uninstalling Version 1, contact GRIN Support. Then, you can install Version 2 using our help article Installing the GRIN Magento Module.

To check which version of the module you’re on, you can check the composer.json file for the module as well as the location of the file itself. 

  • Version 1 (this version will appear as less than 2.0): <magento root dir>/app/code/Grin/GrinModule/composer.json
  • Version 2 (this version will appear as greater than 2.0): <magento root dir>/vendor/grin/module/composer.json
  • Composer v1, which you can download directly from Composer. If your server is running Composer 2.X, you can download Composer v1 to the working directory, then explicitly use the v1 executable with any composer command by specifying ./composer.phar for any composer related commands, as shown below. 
curl -O "https://getcomposer.org/download/1.10.22/composer.phar" 

// Downloads v1 version of Composer

chmod a+x composer.phar

// Sets the file as executable

How to Do It

  1. Open Composer v1. 
  2. Enter the following commands:
composer update grin/module

bin/magento setup:upgrade

bin/magento setup:di:compile

bin/magento setup:static-content:deploy

bin/magento cache:flush

That’s it! Your GRIN Magento Module should now be updated to the latest version.


Was this article helpful?