Post by tomperro » Wed Oct 15, 2008 8:39 am

I deleted COD Payment Extension and dont know how to get it back. please help!!!

Newbie

Posts

Joined
Wed Oct 15, 2008 8:36 am

Post by Qphoria » Wed Oct 15, 2008 8:47 am

lol..

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');

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bruce » Thu Oct 23, 2008 10:12 am

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

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Thu Oct 23, 2008 11:21 am

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bruce » Thu Oct 23, 2008 11:59 am

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.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Thu Oct 23, 2008 7:24 pm

better than having to do it "ever"

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 1 guest