Page 49 of 118 FirstFirst ... 3947484950515999 ... LastLast
Results 481 to 490 of 1175
  1. #481
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,309
    Plugin Contributions
    87

    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.

  2. #482
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,570
    Plugin Contributions
    122

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Beautiful! Thank you.
    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.

  3. #483
    Join Date
    Jun 2021
    Posts
    41
    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.

  4. #484
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,570
    Plugin Contributions
    122

    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 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. #485
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,309
    Plugin Contributions
    87

    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.

  6. #486
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,309
    Plugin Contributions
    87

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by swguy View Post
    Curious if anyone has adopted Instant Search for this template:
    https://www.zen-cart.com/downloads.php?do=file&id=1336
    I'm working on one ...

  7. #487
    Join Date
    Jun 2021
    Posts
    41
    Plugin Contributions
    2

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by swguy View Post
    Curious if anyone has adopted Instant Search for this template:
    https://www.zen-cart.com/downloads.php?do=file&id=1336
    Yes I'm using it, with various changes/customizations (ajax call, better db search and results sorting for my needs, etc) since the plugin is a bit basic/clunky/outdated in some parts - but still an excellent starting point!
    No need to use the provided css file, styling the results container and the single results is quite easy with bootstrap classes (I'm using the media object for the single results because I'm showing the product image as well)

    Tbh this (instant search) is one of those many things that ZC should absolutely provide out of the box nowadays. I don't know if it's already in the works for v 1.5.8.

  8. #488
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I just added this template to a site using 1.5.7b and selected the template in Tools > Template selection. However, after changing the template to bootstrap, I'm seeing the stylesheets and layout for my old template. Is there another step I missed in activating the template?
    Ellie Armsby

  9. #489
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    Quote Originally Posted by earmsby View Post
    I just added this template to a site using 1.5.7b and selected the template in Tools > Template selection. However, after changing the template to bootstrap, I'm seeing the stylesheets and layout for my old template. Is there another step I missed in activating the template?
    Hmm... never mind. I can't get my old template to change to any other template either, so it's obviously not an issue with this template specifically.
    Ellie Armsby

  10. #490
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,570
    Plugin Contributions
    122

    Default Re: ZCA Bootstrap 4 Template [Support Thread]

    I think it would be fun to add the Font Awesome icon to the button.
    In zen_image_button, you could modify the notifier to pass the image and alt text, then update the alt text appropriately.

    // Add icons from Font Awesome
    switch ($image) {
    case BUTTON_IMAGE_ASK_A_QUESTION:
    $alt = '<span class="fas fa-envelope"></span> ' . $alt;
    break;
    ... etc.
    }

    Name:  Screen Shot 2021-07-17 at 2.26.58 PM.jpg
Views: 176
Size:  11.8 KB
    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.

 

 
Page 49 of 118 FirstFirst ... 3947484950515999 ... LastLast

Similar Threads

  1. v155 Clone a Template [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 90
    Last Post: 3 Oct 2023, 01:23 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

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