Page 1 of 2 12 LastLast
Results 1 to 10 of 34

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    Integers

    CREATE TABLE `layout_boxes` (
    `layout_id` int(11) NOT NULL,
    `layout_template` varchar(64) NOT NULL DEFAULT '',
    `layout_box_name` varchar(64) NOT NULL DEFAULT '',
    `layout_box_status` tinyint(1) NOT NULL DEFAULT '0',
    `layout_box_location` tinyint(1) NOT NULL DEFAULT '0',
    `layout_box_sort_order` int(11) NOT NULL DEFAULT '0',
    `layout_box_sort_order_single` int(11) NOT NULL DEFAULT '0',
    `layout_box_status_single` tinyint(4) NOT NULL DEFAULT '0',
    `show_box_min_width` tinyint(1) NOT NULL DEFAULT '1'
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    Cheers!
    v2.2.1

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Trouble with Layout Boxes Controller

    Hmmm...

    The install SQL, all the way back to the original version, contains the auto-increment, and some indexes, but yours doesn't.
    Without the auto-increment, all the insertions of records for each setting, including when the "reset" button is used, are getting a value of 0, which is why the links are giving strange results on screen.

    This is how it should be, from the v155 install SQL:
    Code:
    CREATE TABLE layout_boxes ( 
      layout_id int(11) NOT NULL auto_increment,
      layout_template varchar(64) NOT NULL default '',
      layout_box_name varchar(64) NOT NULL default '',
      layout_box_status tinyint(1) NOT NULL default '0',
      layout_box_location tinyint(1) NOT NULL default '0',
      layout_box_sort_order int(11) NOT NULL default '0',
      layout_box_sort_order_single int(11) NOT NULL default '0',
      layout_box_status_single tinyint(4) NOT NULL default '0',
      PRIMARY KEY  (layout_id),
      KEY idx_name_template_zen (layout_template,layout_box_name),
      KEY idx_layout_box_status_zen (layout_box_status),
      KEY idx_layout_box_sort_order_zen (layout_box_sort_order)
    ) ENGINE=MyISAM;
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    Interesting

    Is `show_box_min_width` tinyint(1) NOT NULL DEFAULT '1' applicable to v155 or 160?

    Otherwise I am prepared to import this into SQL window:

    DROP TABLE IF EXISTS `layout_boxes`;
    /*!40101 SET @saved_cs_client = @@character_set_client */;
    /*!40101 SET character_set_client = utf8 */;
    CREATE TABLE layout_boxes (
    layout_id int(11) NOT NULL auto_increment,
    layout_template varchar(64) NOT NULL default '',
    layout_box_name varchar(64) NOT NULL default '',
    layout_box_status tinyint(1) NOT NULL default '0',
    layout_box_location tinyint(1) NOT NULL default '0',
    layout_box_sort_order int(11) NOT NULL default '0',
    layout_box_sort_order_single int(11) NOT NULL default '0',
    layout_box_status_single tinyint(4) NOT NULL default '0',
    PRIMARY KEY (layout_id),
    KEY idx_name_template_zen (layout_template,layout_box_name),
    KEY idx_layout_box_status_zen (layout_box_status),
    KEY idx_layout_box_sort_order_zen (layout_box_sort_order)
    ) ENGINE=MyISAM;
    /*!40101 SET character_set_client = @saved_cs_client */;
    Cheers!
    v2.2.1

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Trouble with Layout Boxes Controller

    Is `show_box_min_width` tinyint(1) NOT NULL DEFAULT '1' applicable to v155 or 160?
    That was added in earlier versions of the DIY responsive components.

    It was not ported to v1.5.5

  5. #5
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    Ok. I can edit individual side boxes. Thank you.

    Ability to add to cart is gone.

    Do I need to run the new zc installer?
    Cheers!
    v2.2.1

  6. #6
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    Still, I cannot add to or edit cart again. No debugs in the logs folder.

    Any advice?
    Cheers!
    v2.2.1

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Trouble with Layout Boxes Controller

    webskipper, can you put a fresh new unaltered v155 install (with demo data) into a subdirectory for us to compare against your live site?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    deleted
    Cheers!
    v2.2.1

  9. #9
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    I misunderstood you the first time, Doc.

    So, what you are saying is reset all int(#) to zero? For all tables as well? Right column boxes do not show.

    DROP TABLE IF EXISTS `layout_boxes`;
    /*!40101 SET @saved_cs_client = @@character_set_client */;
    /*!40101 SET character_set_client = utf8 */;
    CREATE TABLE `layout_boxes` (
    `layout_id` int(0) NOT NULL AUTO_INCREMENT,
    `layout_template` varchar(64) NOT NULL DEFAULT '',
    `layout_box_name` varchar(64) NOT NULL DEFAULT '',
    `layout_box_status` tinyint(0) NOT NULL DEFAULT '0',
    `layout_box_location` tinyint(0) NOT NULL DEFAULT '0',
    `layout_box_sort_order` int(0) NOT NULL DEFAULT '0',
    `layout_box_sort_order_single` int(0) NOT NULL DEFAULT '0',
    `layout_box_status_single` tinyint(0) NOT NULL DEFAULT '0',
    PRIMARY KEY (`layout_id`),
    KEY `idx_name_template_zen` (`layout_template`,`layout_box_name`),
    KEY `idx_layout_box_status_zen` (`layout_box_status`),
    KEY `idx_layout_box_sort_order_zen` (`layout_box_sort_order`)
    ) ENGINE=MyISAM AUTO_INCREMENT=99 DEFAULT CHARSET=utf8;
    /*!40101 SET character_set_client = @saved_cs_client */;

    Do you also want ENGINE=MyISAM AUTO_INCREMENT=117 DEFAULT CHARSET=utf8; to be?

    ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;

    I think I found an error on my end because downloading the backup copy of the DB does not show the changes I make i.e adding auto_increment. I delete all the lines above the first instance of DROP TABLE IF EXISTS `address_book` and also below the last instance of UNLOCK TABLES. Copy pasted file directly into admin sql, correct?
    Last edited by Webskipper; 26 Mar 2016 at 08:09 PM.
    Cheers!
    v2.2.1

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Trouble with Layout Boxes Controller

    Quote Originally Posted by webskipper View Post
    i misunderstood you the first time, doc.

    So, what you are saying is reset all int(#) to zero?
    noooooooo!
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 layout boxes controller
    By cj.dekrijger in forum Customization from the Admin
    Replies: 2
    Last Post: 14 Jun 2016, 08:42 AM
  2. v155 Trouble with Layout Boxes Controller
    By DrByte in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Mar 2016, 01:51 AM
  3. Layout Boxes Controller
    By NBordeau in forum General Questions
    Replies: 5
    Last Post: 11 May 2010, 02:50 AM
  4. Layout Boxes Controller
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 17 Feb 2010, 10:50 PM
  5. Alignment/layout issue when using Layout Boxes Controller
    By nicknight in forum General Questions
    Replies: 0
    Last Post: 25 Oct 2008, 02:04 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