Search by

yireo / magento2-tablerate-commands

yireo

N/A

Package info

github.com/yireo/Yireo_TablerateCommands

Type:magento2-module

pkg:composer/yireo/magento2-tablerate-commands

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 47

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

0.0.3 2026-11-25 16:52 UTC

This package is auto-updated.

Last update: 2026-11-29 21:06:56 UTC


README

Magento version PHP version License Latest Version

A Magento 2 module offering CLI commands to manipulate table rates

Installation

composer require yireo/magento2-tablerate-commands
bin/magento module:enable Yireo_TablerateCommands

Usage

List all existing tablerates (optionally only those of website ID 1):

bin/magento yireo_tablerates:list
bin/magento yireo_tablerates:list --website_id=1

Export all existing tablerates with website ID 1:

bin/magento yireo_tablerates:export 1 test.csv
bin/magento yireo_tablerates:export 1 test.csv --overwrite

Import tablerates with website ID 1:

bin/magento yireo_tablerates:import 1 test.csv
bin/magento yireo_tablerates:import 1 test.csv --overwrite

Notes:

  • The CSV file must have the extension .csv. The export refuses to write into pub/ or app/etc/.
  • Import and export only handle the tablerates of the condition (carriers/tablerate/condition_name) configured for the website. Tablerates of other conditions are left untouched.
  • With --overwrite (or --overwrite=1), the import replaces the existing tablerates of the website for that condition.
  • An import of a CSV file without any tablerates is refused.
  • The import validates all rows first (country, region, postcode and numbers). If any row is invalid, nothing is changed.
  • Text columns of the export are escaped against spreadsheet formula injection.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation