Results 1 to 10 of 1679

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I've just submitted v3.1.3 of the Bootstrap-4 template for the Zen Cart moderators' review and will post back here when it's available for download.

    This release contains changes associated with the following GitHub issues:

    #59: Correct duplicate sort-orders present in color configurations added in v3.1.2.
    #61: Correct small-screen layout on shopping_cart page, required horizontal scroll.
    #63: Remove redundant code from product_listing.php.
    #64: Use common image sizing for all centerbox displays.
    #65: Add 'specificity' to addresses to correct browsers' auto-fill.
    #67: Add .clearBoth class styling to the template's base stylesheet.
    #69: Use bootstrap message styling for the "Place Order" shopping-for message.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by lat9 View Post
    I've just submitted v3.1.3 of the Bootstrap-4 template for the Zen Cart moderators' review and will post back here when it's available for download.

    This release contains changes associated with the following GitHub issues:

    #59: Correct duplicate sort-orders present in color configurations added in v3.1.2.
    #61: Correct small-screen layout on shopping_cart page, required horizontal scroll.
    #63: Remove redundant code from product_listing.php.
    #64: Use common image sizing for all centerbox displays.
    #65: Add 'specificity' to addresses to correct browsers' auto-fill.
    #67: Add .clearBoth class styling to the template's base stylesheet.
    #69: Use bootstrap message styling for the "Place Order" shopping-for message.
    Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I'd like to force the listing pages to use larger product images/fewer columns - I know that Product Listing > Columns per Row is recommended to be 0; is there another option?
    That Software Guy. My Store: Zen Cart Support
    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.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by swguy View Post
    I'd like to force the listing pages to use larger product images/fewer columns - I know that Product Listing > Columns per Row is recommended to be 0; is there another option?
    With that setting at 0, edit your template's override of /includes/modules/bootstrap/product_listing.php, finding the following section
    Code:
            // set css classes for "row" wrapper, to allow for fluid grouping of cells based on viewport
            // these defaults are based on Bootstrap4, but can be customized to suit your own framework
            if ($product_listing_layout_style === 'fluid') {
                $grid_cards_classes = 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3';
                // this array is intentionally in reverse order, with largest index first
                $grid_classes_matrix = [
                    '10' => 'row-cols-1 row-cols-md-2 row-cols-lg-4 row-cols-xl-5',
                    '9' => 'row-cols-1 row-cols-md-3 row-cols-lg-4 row-cols-xl-5',      //-lat9: Added for 3/9/0 configuration
                    '8' => 'row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
                    '6' => 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3',
                ];
                // determine classes to use based on number of grid-columns used by "center" column
                if (isset($center_column_width)) {
                    foreach ($grid_classes_matrix as $width => $classes) {
                        if ($center_column_width >= $width) {
                            $grid_cards_classes = $classes;
                            break;
                        }
                    }
                }
                $list_box_contents[$rows]['params'] = 'class="row ' . $grid_cards_classes . ' text-center"';
            }
    ... and edit that grid_classes_matrix for your customizations.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Beautiful! Thank you.
    That Software Guy. My Store: Zen Cart Support
    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.

  6. #6
    Join Date
    Jun 2021
    Posts
    42
    Plugin Contributions
    2

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    First of all, thank you lat9 for this incredible work, such a useful and well done template!

    I am scratching my head about the specials, all products, etc. pages.

    Let's take the specials page for example. Both header_php.php and header_php_special_zca_bootstrap.php are loaded.

    The first one (actually it's the main_template_vars.php in this case, but it's not that important) runs the query, calls splitPageResults (the "original" one), etc. and saves the results into $list_box_contents.

    Then header_php_special_zca_bootstrap.php does some similar stuff, but with some adjustments for the bootstrap template, and saves to $listing_sql and $column_list variable.

    If I'm not mistaken (please correct me if I'm wrong) the data extracted from header_php.php is not used at all, as tpl_modules_product_listing.php is called in the template, which only considers the data from header_php_special_zca_bootstrap.php ($listing_sql and $column_list variable) and produces its "own" $list_box_contents, which is the only one that will be used in the final page.

    I guess header_php.php has been left as it is - despite the overhead - so as not to override too many core files, right? And because right now there's no way to tell ZC "for this page just load this header file and not that", without making some changes to the header files themselves (or to some other core files).
    Or is it because the data extracted in header_php.php for these pages is/may be used somewhere else too?
    Last edited by marcopm; 15 Jul 2021 at 04:40 PM.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Curious if anyone has adopted Instant Search for this template:
    https://www.zen-cart.com/downloads.php?do=file&id=1336
    That Software Guy. My Store: Zen Cart Support
    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.

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by marcopm View Post
    First of all, thank you lat9 for this incredible work, such a useful and well done template!

    I am scratching my head about the specials, all products, etc. pages.

    Let's take the specials page for example. Both header_php.php and header_php_special_zca_bootstrap.php are loaded.

    The first one (actually it's the main_template_vars.php in this case, but it's not that important) runs the query, calls splitPageResults (the "original" one), etc. and saves the results into $list_box_contents.

    Then header_php_special_zca_bootstrap.php does some similar stuff, but with some adjustments for the bootstrap template, and saves to $listing_sql and $column_list variable.

    If I'm not mistaken (please correct me if I'm wrong) the data extracted from header_php.php is not used at all, as tpl_modules_product_listing.php is called in the template, which only considers the data from header_php_special_zca_bootstrap.php ($listing_sql and $column_list variable) and produces its "own" $list_box_contents, which is the only one that will be used in the final page.

    I guess header_php.php has been left as it is - despite the overhead - so as not to override too many core files, right? And because right now there's no way to tell ZC "for this page just load this header file and not that", without making some changes to the header files themselves (or to some other core files).
    Or is it because the data extracted in header_php.php for these pages is/may be used somewhere else too?
    No correction necessary. You've captured what's going on. While the queries are redundant, there's no way to tell the 'core' header_php.php to not generate that query and I'm not a big fan of core-file overwrites, so there's a bit of overhead in the generation of those product listings.

 

 

Similar Threads

  1. v155 Clone a Template [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 107
    Last Post: 11 Nov 2024, 08:28 PM
  2. v150 aBagon Template Support Thread
    By VJef in forum Addon Templates
    Replies: 54
    Last Post: 5 Sep 2020, 08:44 PM
  3. v155 ZCA Bootstrap Template 1.0 (BETA)
    By rbarbour in forum Addon Templates
    Replies: 74
    Last Post: 25 Apr 2018, 07:05 PM
  4. TB Sempre Template Support Thread
    By brandonturpin in forum Addon Templates
    Replies: 48
    Last Post: 19 Mar 2015, 06:33 PM
  5. Wallet Template - Support Thread
    By zami in forum Addon Templates
    Replies: 45
    Last Post: 25 Mar 2010, 10:15 PM

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