lol..
Run this in your sql:
Run this in your sql:
Code: Select all
INSERT INTO `extension` (`extension_id`, `code`, `type`, `directory`, `filename`, `controller`) VALUES
(NULL, 'cod', 'payment', 'payment', 'cod.php', 'payment_cod');
SET @lid=last_insert_id();
INSERT INTO `extension_description` (`extension_id`, `language_id`, `name`, `description`) VALUES
(@lid, 1, 'Cash On Delivery', 'Cash On Delivery');
Alternatively, you can simply put it back from the store admin.
From the admin menu select Extensions->Payment and click the "Insert" button
General Tab:
Extension Name: Cash on Delivery
Description: Cash on Delivery
Data Tab:
Code: cod
Directory: payment
Filename: cod.php
Controller: payment_cod
From the admin menu select Extensions->Payment and click the "Insert" button
General Tab:
Extension Name: Cash on Delivery
Description: Cash on Delivery
Data Tab:
Code: cod
Directory: payment
Filename: cod.php
Controller: payment_cod
There must be some way to dynamically fill that info. That seems to be a really awkward step that you have to add reference to a module, then add the module, then install the module. Seems like if it could just "see" the new file in the folder, then it should have some data in that file to configure the settings.
Further research is required.
Further research is required.
I guess so, if you have nothing better to do.
The folder in this case is "payment" and if the filename matches the code "cod.php" then a file watcher routine could call the install() function of the class which would have to be "PaymentCod"
Even so, it is not like you have to do this very often.
The folder in this case is "payment" and if the filename matches the code "cod.php" then a file watcher routine could call the install() function of the class which would have to be "PaymentCod"
Even so, it is not like you have to do this very often.
Who is online
Users browsing this forum: No registered users and 1 guest