Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,356
    Plugin Contributions
    94

    Default Missing layout_boxes configuration for responsive_classic on upgrade

    I'm upgrading a site from Zen Cart 1.5.4, with the anticipation of upgrading to the responsive_classic template that's built in. When attempting to clone that template, it's not in the "Clone a Template" dropdown list.

    Turns out that it's not in the list because there aren't any entries in the layout_boxes database table for the responsive_classic template. Shouldn't those have been inserted as part of the upgrade from Zen Cart 1.5.4 to 1.5.5a?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,356
    Plugin Contributions
    94

    Default Re: Missing layout_boxes configuration for responsive_classic on upgrade

    Here's the SQL patch to introduce the responsive_classic's layout_boxes settings into the database on an upgrade:
    Code:
    INSERT INTO `layout_boxes` (`layout_template`, `layout_box_name`, `layout_box_status`, `layout_box_location`, `layout_box_sort_order`, `layout_box_sort_order_single`, `layout_box_status_single`) VALUES
    ('responsive_classic', 'banner_box.php', 1, 0, 300, 1, 127),
    ('responsive_classic', 'banner_box2.php', 1, 1, 15, 1, 15),
    ('responsive_classic', 'banner_box_all.php', 1, 1, 5, 0, 0),
    ('responsive_classic', 'best_sellers.php', 1, 1, 30, 70, 1),
    ('responsive_classic', 'categories.php', 1, 0, 10, 10, 1),
    ('responsive_classic', 'currencies.php', 0, 1, 80, 60, 0),
    ('responsive_classic', 'document_categories.php', 1, 0, 0, 0, 0),
    ('responsive_classic', 'ezpages.php', 1, 1, -1, 2, 1),
    ('responsive_classic', 'featured.php', 1, 0, 45, 0, 0),
    ('responsive_classic', 'information.php', 1, 0, 50, 40, 1),
    ('responsive_classic', 'languages.php', 0, 1, 70, 50, 0),
    ('responsive_classic', 'manufacturers.php', 1, 0, 30, 20, 1),
    ('responsive_classic', 'manufacturer_info.php', 1, 1, 35, 95, 1),
    ('responsive_classic', 'more_information.php', 1, 0, 200, 200, 1),
    ('responsive_classic', 'music_genres.php', 1, 1, 0, 0, 0),
    ('responsive_classic', 'order_history.php', 1, 1, 0, 0, 0),
    ('responsive_classic', 'product_notifications.php', 1, 1, 55, 85, 1),
    ('responsive_classic', 'record_companies.php', 1, 1, 0, 0, 0),
    ('responsive_classic', 'reviews.php', 1, 0, 40, 0, 0),
    ('responsive_classic', 'search.php', 1, 1, 10, 0, 0),
    ('responsive_classic', 'search_header.php', 0, 0, 0, 0, 1),
    ('responsive_classic', 'shopping_cart.php', 1, 1, 20, 30, 1),
    ('responsive_classic', 'specials.php', 1, 1, 45, 0, 0),
    ('responsive_classic', 'whats_new.php', 1, 0, 20, 0, 0),
    ('responsive_classic', 'whos_online.php', 1, 1, 200, 200, 1);
    ... just in case anyone else has also run into this issue.

    P.S. Don't just willy-nilly apply this patch, since it will insert multiple records for the responsive_classic template if those records already exist!
    Last edited by lat9; 7 Jul 2016 at 08:40 PM. Reason: Added P.S.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 12 Oct 2016, 01:22 AM
  2. Replies: 6
    Last Post: 2 Dec 2013, 08:26 PM
  3. Replies: 2
    Last Post: 20 Jun 2012, 02:41 PM
  4. zc1.3.9 prefix 1146 layout_boxes
    By sieg01 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 15 Nov 2011, 12:36 PM
  5. Configuration box missing
    By colweb in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 21 Feb 2008, 12:23 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