Zen Cart Logo
Forums / Addon Templates / ZCA Bootstrap 4 Template [Support Thread]

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,580

Results 1,081 to 1,100 of 1,686
23 Aug 2023, 4:54 PM
#1081
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

ZCA Bootstrap 4 Template [Support Thread]

Is there anything logged in your LOGS directory?

Also, I doubt this would make a difference, but make sure that your "sideboxes/bootstrap/search_header.php" has a unique Sort Order variable, just in case there's some weird conflict there.

I did a test and turned off my "sideboxes/bootstrap/search.php" but I am still able to see my "sideboxes/bootstrap/search_header.php" load just fine.

23 Aug 2023, 5:15 PM
#1082
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

cubmanky:

So in Admin >Tools> layout boxes I have the bootstrap header search turned on but I do not see any box until I turn the normal search on. Any suggestions?

So i misunderstand on me. I have it fixed now had to turn it off from the sideboxes

29 Aug 2023, 6:39 AM
#1083
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I would like to add the language selection and other links to the burger menu (three horizontal lines on top left) of the mobile display. If I configure tpl_offcanvas_menu.php, the changes are displayed in mobile and desktop display. How can I add links, etc exclusively to the menu of the mobile display?

29 Aug 2023, 7:30 AM
#1084
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

I would like to add the language selection and other links to the burger menu (three horizontal lines on top left) of the mobile display. If I configure tpl_offcanvas_menu.php, the changes are displayed in mobile and desktop display. How can I add links, etc exclusively to the menu of the mobile display?

Ahhh, it is a Bootstrap thing and not controlled by files in Zen Cart. Add class="d-lg-none" to the links in the menu, so they do not show up at bigger displays. More here: https://getbootstrap.com/docs/4.0/utilities/display/

17 Sep 2023, 3:00 AM
#1085
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

bootstrap/search_header single colum status
I couldn't see the search header. Digging through the forum you had fixed this in 3.4.1 "BUGFIX: Enable (for zc158a and later) the admin "Layout Controller" to display single-column settings for the template."
This seems to have been lost in 3.6.0? I changed its layout_box_status_single from 0 to 1 and it works fine now, but thought you might want to relook at this. I'm guessing you had added additional columns in Layout Boxes Controller for single column sort order and single column status. My prod site has this from god only knows what plugin, but my dev site with zc 1.5.8a and ZCAB 3.6.0 does not.

17 Sep 2023, 5:00 AM
#1086
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Nope, scratch that. Template is fine. Clone a template plugin ignores the single column line in template info. Lol, which I see is still lat9.

24 Oct 2023, 9:29 PM
#1087
zamzom avatar

zamzom

New Zenner

Join Date:
Jun 2009
Location:
Europe
Posts:
60
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Is there a way to add currency selection and language selection on mobile devices in this template system?

24 Oct 2023, 9:44 PM
#1088
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

gothstone:

Nope, scratch that. Template is fine. Clone a template plugin ignores the single column line in template info. Lol, which I see is still lat9.
FWIW, v2.0.0 of "Clone a Template" now retains a template's soft configuration settings, too.

24 Oct 2023, 9:46 PM
#1089
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

zamzom:

Is there a way to add currency selection and language selection on mobile devices in this template system?
It'll take some code fiddling, but I'm pretty sure that the Currency/Language Dropdowns in Header add-on can be modified to do that.

25 Oct 2023, 11:17 AM
#1090
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
365
Plugin Contributions:
6

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

It'll take some code fiddling, but I'm pretty sure that the Currency/Language Dropdowns in Header add-on can be modified to do that.

I added files for bootstrap template in version 4.0.2 of the plugin release:
https://www.zen-cart.com/downloads.php?do=file&id=30

25 Oct 2023, 11:37 AM
#1091
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

pilou2:

I added files for bootstrap template in version 4.0.2 of the plugin release:
https://www.zen-cart.com/downloads.php?do=file&id=30
Thanks for the update, @pilou2!

10 Nov 2023, 8:33 PM
#1092
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi,
How does one go about centering the ez pages text for the top and bottom bar? I'm on zencart 158a.
I've tried adding ```
#navEZPagesTop ul{text-align:center;}



Also, just out of curiousity, is there a more simple way to center the logo header image through site_specific_styles.php rather then going to /includes/templates/clone/common/tpl_header.php and changing

from:

$sales_text_class = (HEADER_SALES_TEXT !== '') ? 'col-sm-4' : 'col-sm-12';
?>
<div class="<?php echo $sales_text_class; ?>">
<a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_LOGO; ?>">



to:

$sales_text_class = (HEADER_SALES_TEXT !== '') ? 'text-center w-100' : 'col-sm-12';
?>
<div class="<?php echo $sales_text_class; ?>">
<a class="d-block" href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_LOGO; ?>">

10 Nov 2023, 9:01 PM
#1093
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Mystery??:

Hi,
How does one go about centering the ez pages text for the top and bottom bar? I'm on zencart 158a.
I've tried adding ```
#navEZPagesTop ul{text-align:center;}

> 
> 
> Also, just out of curiousity, is there a more simple way to center the logo header image through site_specific_styles.php rather then going to /includes/templates/clone/common/tpl_header.php and changing
> 
> from:
> ```
$sales_text_class = (HEADER_SALES_TEXT !== '') ? 'col-sm-4' : 'col-sm-12';
?>
            <div class="<?php echo $sales_text_class; ?>">
                <a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_LOGO; ?>">

to:

$sales_text_class = (HEADER_SALES_TEXT !== '') ? 'text-center w-100' : 'col-sm-12';
?>
<div class="<?php echo $sales_text_class; ?>">
<a class="d-block" href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_LOGO; ?>">

I don't see an id="navEZPagesTop" element, but I do see id="ezpagesBarHeader" and id="ezpagesBarFooter".  To center the links in those navigation elements, try the following CSS:

#ezpagesBarHeader > ul, #ezpagesBarFooter > ul {
justify-content: center;
}


For aligning the logo image, the issue (I think) is that the id="taglineWrapper" should be a col-sm-8 when there's a tagline.  It's currently col-sm-12, which causes it to be not aligned with the image since 4 + 12 > 12.  I agree with the use of class="d-block" on the anchor tag that holds the image, that makes it easier for sites that want the image centered.
11 Nov 2023, 2:39 AM
#1095
mystery_1 avatar

mystery_1

New Zenner

Join Date:
Jan 2018
Location:
PA
Posts:
14
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

#ezpagesBarHeader > ul, #ezpagesBarFooter > ul {
    justify-content: center;
}

That works great! Thank you :D

11 Nov 2023, 9:39 AM
#1096
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi All,

Just wanted to know if the bootstrap template (latest one just installed not long ago) has the length, width and Height (Products category section) included in it and if not what file do I need to edit and location please in order to add.

11 Nov 2023, 12:09 PM
#1097
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Bruce1952:

Hi All,

Just wanted to know if the bootstrap template (latest one just installed not long ago) has the length, width and Height (Products category section) included in it and if not what file do I need to edit and location please in order to add.
Those non-standard product fields aren't included in the base template's product display. To add them to your template-clone, you'll edit (assuming that your products are of Product - General type) /includes/templates/your_clone/templates/tpl_product_info_display.php, finding this section

<!--bof Product details list  -->
<?php
$display_product_model = ($flag_show_product_info_model === '1' && $products_model !== '');
$display_product_weight = ($flag_show_product_info_weight === '1' && $products_weight != 0);
$display_product_quantity = ($flag_show_product_info_quantity === '1');
$display_product_manufacturer = ($flag_show_product_info_manufacturer === '1' && !empty($manufacturers_name));
if ($display_product_model === true || $display_product_weight === true || $display_product_quantity === true || $display_product_manufacturer === true) { ?>

<ul id="productInfo-productDetailsList" class="productDetailsList list-group mb-3">
  <?php echo (($display_product_model === true) ? '<li class="list-group-item">' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li class="list-group-item">' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1) ? '<li class="list-group-item">' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li class="list-group-item">' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<?php
  }
?>
<!--eof Product details list -->

If you're running on zc158, those fields will be present in variables $product_info->fields['products_weight'], $product_info->fields['products_height'] and $product_info->fields['products_length'] ... or whatever product-table field name you've chosen to use!

12 Nov 2023, 1:13 AM
#1098
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi lat9,

And thank you for the help greatly appreciated. It is now looking as it should.

12 Nov 2023, 2:54 PM
#1099
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Bruce1952:

Hi lat9,

And thank you for the help greatly appreciated. It is now looking as it should.

:smile:

13 Nov 2023, 11:25 PM
#1100
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

v3.6.1 of the ZCA Bootstrap Template is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191

This release contains changes associated with the following GitHub issues:

#271: Correct accessibility issue when <h1> text is an empty string.
#276: Correct misspelled CSS property name: cursor, not curser.
#278: Add titles for accessibility on Navigation Previous/Next buttons.
#279: "Fit" content on shipping-estimator form fields so that they're not 100% wide.
#280: Add spaces between text values on shopping-cart display page.
#281: Ensure that the quantity-update icon is an FA icon, regardless of the Update button's title's character length.
#284: Refactor shopping-cart page layout, especially for small screens.
#286: Correct shopping-cart delete icon/checkbox formatting when a product has a fixed-quantity display.
#288: Update jQuery to 3.7.1.
#289: Correct header/logo area layout.