First, you need to call this:
Mage::getModel('amtable/rate')->deleteBy($methodId);
OR
Amasty_Table_Model_Rate::deleteBy($methodId)
This will erase any data in the method.
And that is how you make import:
Mage::getModel('amtable/rate')->import($methodId, $fileName)
OR
Amasty_Table_Model_Rate::import($methodId, $fileName)
$methodId is Id of the method in Table Rates, and $fileName is the name of the csv file.
See more details on Shipping Table Rates page
We use cookies to help improve our services, make personal offers, and enhance your experience. If you do not accept optional cookies below, your experience may be affected. If you want to know more, please read the Cookie Policy
Please select and accept your Cookies Group
Cookie Name | Cookie Provider | Cookie Description | Cookie Lifetime | Cookie Type |
---|---|---|---|---|
Login and Registration Form