Skip to content

transiteo/Landed-Cost-Magento-2

Repository files navigation

TRANSITEO Landed cost connector for Magento 2

Latest Stable Version License: MIT

This module is the official connector between Transiteo Taxes Calculator and Magento 2. It has been made in partnership with Transiteo.

Setup

Get the package

Composer Package:

composer require transiteo/landed-cost

Zip Package:

Unzip the package in app/code/Transiteo/ContentManagerIndexerDisabler, from the root of your Magento instance.

Install the module

Go to your Magento root directory and run the following magento command:

bin/magento setup:upgrade

Documentation

Sync Feature

All the Products and Orders will be synchronised with Transiteo in order to retrieve the Taxes. It is using message queue feature of Magento 2 that's why you must be sure that cron job are running on your server.

  • The message queue consumer transiteo.sync.product` is responsible for synchronising the products.
### To manually launch the synchronisation of products
bin/magento queue:consumers:run transiteo.sync.product
  • The message queue consumer `transiteo.sync.order is responsible for synchronising the products.
### To manually launch the synchronisation of orders
bin/magento queue:consumers:run transiteo.sync.order

When a product or an order is saved, synchronisation messages will be added to the queues.

When indexing the indexer catalog_product_category is running, all the products are also added to the message queue in order to be synchronised.

### To manually launch the synchronisation of all the products
bin/magento indexer:reindex catalog_product_category
bin/magento queue:consumers:run transiteo.sync.order

Cache Management

All the request to the Transiteo API are cached, when a product is reindexed, the cache associated with the product is deleted. The cache lifetime of the requests is 3600 seconds. The cache type is transiteo_taxes. If you want to manually refresh the request cache. You can run :

bin/magento cache:clean transiteo_taxes

Support

Contact

For further information, contact us:

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

That's all folks!