I’m working on building a new shipping module and would like for it to access information in the database in a way similar to how the tablerate shipping module works.
My module is located in the following location:
The module works in both the admin and the frontend. What I want to do is add database functionality to it.
I created the following files in the app/code/local/Pw/MultipleTablerates namespace:
I see that in the tablerate module, it uses Mage::getResourceModel(’shipping/carrier_tablerate’)->getRate($request) to get the rates.
My question is how do I create the resource model in my etc/config.xml file order to access the methods I have in Mysql4/Carrier/ShippingMethod.php?
Thanks in advance!!