Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Configuration group values

    Can someone define what "25, 59," refer to and if designing another what values are acceptable/correct??
    Code:
    VALUES ('Define About Us Status', 'DEFINE_ABOUT_US_STATUS', '1', 'Enable the Defined About Us Link/Text?<br />0= Link ON, Define
    Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 59, NOW(),
    NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
    Zen-Venom Get Bitten

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Configuration group values

    Quote Originally Posted by kobra View Post
    Can someone define what "25, 59," refer to and if designing another what values are acceptable/correct??
    Code:
    VALUES ('Define About Us Status', 'DEFINE_ABOUT_US_STATUS', '1', 'Enable the Defined About Us Link/Text?<br />0= Link ON, Define
    Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 59, NOW(),
    NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
    In a default Zen Cart configuration, they usually refer to the configuration_group_id and sort_order, respectively (but you haven't included the full SQL INSERT statement).

    Note, however, that the VALUES should always be preceded by a list of associated fields; if not, then any field additions (like the numinix "tabbed configuration") to the Zen Cart configuration table will yield a database error when the query is run.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Configuration group values

    Thanks - here is the full statement and I was wondering if "25" is the group id if additional pages added could use the same group??
    And why the sort order of "59" is there as this seems quite high
    Code:
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) 
    VALUES ('Define About Us Status', 'DEFINE_ABOUT_US_STATUS', '1', 'Enable the Defined About Us Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 59, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Configuration group values

    Quote Originally Posted by kobra View Post
    Thanks - here is the full statement and I was wondering if "25" is the group id if additional pages added could use the same group??
    If you go to Admin->Configuration->Define Page Status you will see the various other pages.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Configuration group values

    Quote Originally Posted by swguy
    If you go to Admin->Configuration->Define Page Status you will see the various other pages
    I am trying to create NEW pages other than the ones that currently exist just as the about_us page is created which is why I am asking this
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Configuration group values

    You can add them in using the same logic shown in the INSERT statement in post 3 above. Just do a select MAX on the cid for that gid and bump it by 1 to get your new value.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 14 Feb 2013, 11:11 PM
  2. Can't edit configuration values in admin area
    By reachit in forum General Questions
    Replies: 3
    Last Post: 17 Sep 2010, 02:38 PM
  3. Extra Configures file will not load configuration key values
    By mrmeech in forum Contribution-Writing Guidelines
    Replies: 6
    Last Post: 7 Apr 2008, 04:58 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR