|
Hello everyone,
We desperately require some extra shipping methods for our 1.7 CE webstore. So I did some googling and found this guide: http://www.magentocommerce.com/wiki/5_-_modules_and_development/shipping/create-shipping-method-module
I followed every step quite literally, even to the point of using the names (YourCompany. NewModule etc.) used in the example.
*I have created the config.xml in app/code/local/YourCompany/NewModule/etc/
*YourCompany_NewModule.xml in app/etc/modules/
*ShippingMethod.php in app/code/local/YourCompany/NewModule/Model/Carrier/
*and system.xml in app/code/local/YourCompany/NewModule/etc/
All with the code used in the guide.
The back end works fine, however whenever I enable the new shipping method, the front end gives the following error:
Fatal error: Call to a member function setStore() on a non-object in /home/xxxx/domains/xxxx/public_html/app/code/core/Mage/Shipping/Model/Shipping.php on line 421
Line 421 is:
$obj->setStore($storeId);
In the guide there are some steps for front end problems, but even applying those fixes, make no difference and still produce the aforementioned error.
Any help is greatly appreciated, as the lack of shipping methods makes it very difficult to work.
|