Results 1 to 10 of 10

Threaded View

  1. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Seriously Weird Configuration Setting (Bug?) In Zen Cart?

    A search through "all files - catalog/admin" for "Enable" gives this:
    Code:
    /includes/modules/payment/moneyorder.php
    
    Line #10 : var $code, $title, $description, $enabled;
    
    Line #21 : $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
    
    Line #36 : if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_MONEYORDER_ZONE > 0) ) {
    
    Line #51 : $this->enabled = false;
    
    Line #100 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Check/Money Order Module', 'MODULE_PAYMENT_MONEYORDER_STATUS', 'True', 'Do you want to accept Check/Money Order payments?', '6', '1', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now());");
    
    Line #103 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_MONEYORDER_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())");
    Line 100: ...values ('Enable Check/Money Order Module',...

    This is being put into the database. You can change the value here.


    Did you use the admin > Modules > Payment controls to remove and install the module? That is not the same as deleting and replacing files. The files need to be run to update the database.
    Last edited by gjh42; 23 Mar 2008 at 10:48 PM.

 

 

Similar Threads

  1. Weird Error on zen cart--when logging back in
    By timhersh in forum General Questions
    Replies: 0
    Last Post: 28 Jun 2009, 05:06 AM
  2. Zen Cart Template Configuration.
    By Siena in forum General Questions
    Replies: 4
    Last Post: 2 Nov 2008, 05:08 PM
  3. Zen Cart configuration inquiries
    By karazy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 May 2008, 04:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg