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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,393

Results 281 to 300 of 1,686
20 Dec 2020, 10:27 PM
#281
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

ZCA Bootstrap 4 Template [Support Thread]

Ive downloaded and installed this most recent version dated 12/17/20

running 1/5/7b and php7.3

Love the template, easily customizable.

I have a lengthy list of Categories and EZ Pages. Is it possible in the mobile version for either list to scroll?

PROBLEM: if I have more than 20 links in either list, it is not possible to view the entirety of either list.

Suggestions?

21 Dec 2020, 1:50 AM
#282
dennisns7d avatar

dennisns7d

New Zenner

Join Date:
Jan 2010
Posts:
55
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I added the following to stylesheet.css to allow the hamburger menu to scroll.

div#navbarSupportedContent {
	max-height:300px;
	overflow-y:auto;
}
21 Dec 2020, 2:33 PM
#283
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

dennisns7d:

I added the following to stylesheet.css to allow the hamburger menu to scroll.

div#navbarSupportedContent {
max-height:300px;
overflow-y:auto;
}



A simple thing of beauty that is EXACTLY what I needed!
Thank You!
23 Dec 2020, 7:01 AM
#284
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Im trying to Center the EZ header bars contents. The links currently show up aligned left.

I added this to the stylesheet on ZCA4, but no effect.... thoughts?

  /* header ezpage bar */
        div#ezpagesBarHeader {
            text-align:center;
        }
#ezpagesBarHeader {
    background-color: <?php echo ZCA_HEADER_EZPAGE_BACKGROUND_COLOR; ?>;
    }
#ezpagesBarHeader a.nav-link  {
    color: <?php echo ZCA_HEADER_EZPAGE_LINK_COLOR; ?>;
    }
#ezpagesBarHeader a.nav-link:hover  {
    color: <?php echo ZCA_HEADER_EZPAGE_LINK_COLOR_HOVER; ?>;
    }
23 Dec 2020, 9:23 AM
#285
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: ZCA Bootstrap 4 Template [Support Thread]

Is the header currently turned on or on a different site from your sig? Would help to see.

I do see that your site comes up insecure from your sig. That tells me there's no 301 redirect to send all to HTTPS.

It also results in your sign-in possibly being sent insecure.

Your SSL states www. So, you might want to add the following to the root .htaccess```

Needed before any rewritingRewriteEngine On

Built using the .htaccess 301 Redirect Generator from Web Site Advantage

https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator

Place after 'RewriteEngine On' and before any CMS specific rewrite rules

Redirect HTTP with www to HTTPS with www

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Redirect HTTP without www to HTTPS with www

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Redirect HTTPS without www to HTTPS with www

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

301 Redirects

23 Dec 2020, 12:47 PM
#286
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Carbonless:

Im trying to Center the EZ header bars contents. The links currently show up aligned left.

I added this to the stylesheet on ZCA4, but no effect.... thoughts?

/* header ezpage bar */
div#ezpagesBarHeader {
text-align:center;
}
#ezpagesBarHeader {
background-color: <?php echo ZCA_HEADER_EZPAGE_BACKGROUND_COLOR; ?>;
}
#ezpagesBarHeader a.nav-link {
color: <?php echo ZCA_HEADER_EZPAGE_LINK_COLOR; ?>;
}
#ezpagesBarHeader a.nav-link:hover {
color: <?php echo ZCA_HEADER_EZPAGE_LINK_COLOR_HOVER; ?>;
}

To get those centered, you'll need to edit your bootstrap clone's /templates/tpl_ezpages_bar_header.php, adding another class to the 'nav-pills' list:

?>

<?php if (!empty($var_linksList)) { ?> <div id="ezpagesBarHeader" class="ezpagesBar rounded"> <ul class="nav nav-pills [B]nav-justified[/B]"> <?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?> <li class="nav-item"><a class="nav-link" href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a></li> <?php } // end FOR loop ?> </ul> </div> <?php } ?> ```
23 Dec 2020, 2:37 PM
#287
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

dbltoe:

Is the header currently turned on or on a different site from your sig? Would help to see.

its a client site www.psdinnersready.com

23 Dec 2020, 2:40 PM
#288
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

To get those centered, you'll need to edit your bootstrap clone's /templates/tpl_ezpages_bar_header.php, adding another class to the 'nav-pills' list:

?>

<?php if (!empty($var_linksList)) { ?> <div id="ezpagesBarHeader" class="ezpagesBar rounded"> <ul class="nav nav-pills [B]nav-justified[/B]"> <?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?> <li class="nav-item"><a class="nav-link" href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a></li> <?php } // end FOR loop ?> </ul> </div> <?php } ?> ```

PERFECT! I appreciate the quick response and that worked beautifully!

23 Dec 2020, 2:44 PM
#289
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Carbonless:

PERFECT! I appreciate the quick response and that worked beautifully!
That's the beauty of using a standards-based template!
There's documentation that identifies the various Bootstrap 4 styles (https://hackerthemes.com/bootstrap-cheatsheet/)
and there's also documentation (https://www.w3schools.com/bootstrap4/default.asp) that includes some "Try It" links
and the official Bootstrap docs (https://getbootstrap.com/docs/4.5/components/alerts/).

23 Dec 2020, 3:07 PM
#290
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: ZCA Bootstrap 4 Template [Support Thread]

dennisns7d:

I added the following to stylesheet.css to allow the hamburger menu to scroll.

div#navbarSupportedContent {
max-height:300px;
overflow-y:auto;
}


> **Carbonless:**
>
> A simple thing of beauty that is EXACTLY what I needed!
> Thank You!
FYI as pointed out elsewhere by dennisns7d there may be issues for landscape.
Changing max-height to 90vh helps the "one" change work better for both portrait and landscape: See: <https://github.com/lat9/ZCA-Bootstrap-Template/pull/15/files>
30 Dec 2020, 10:05 AM
#291
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

After updating to 1.5.7 and Bootstrap 4.3.1, I noticed that the checkboxes and radio buttons were doubled - see image below.

To disable this behavior I added

.custom-control-label::before {
display: none;
}

to my stylesheet.

30 Dec 2020, 12:59 PM
#292
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

After updating to 1.5.7 and Bootstrap 4.3.1, I noticed that the checkboxes and radio buttons were doubled - see image below.

To disable this behavior I added

.custom-control-label::before {
display: none;
}

to my stylesheet.
Er, the current Bootstrap template version is 3.0.0 (with 3.1.0 currently in development).

30 Dec 2020, 2:01 PM
#293
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Er, the current Bootstrap template version is 3.0.0 (with 3.1.0 currently in development).
Did you mean, perhaps, that you're using the Bootstrap template with Bootstrap v4.3.1? I'll note that the Bootstrap v3.0.0+ was designed using Bootstrap v4.3.5 as its base.

30 Dec 2020, 3:56 PM
#294
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Yes - Bootstrap template with Bootstrap 4.3.1.

30 Dec 2020, 4:14 PM
#295
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

This issue appears to be fixed in the new Bootstrap template (v3) - I was based off V2.

30 Dec 2020, 4:16 PM
#296
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Did you mean, perhaps, that you're using the Bootstrap template with Bootstrap v4.3.1? I'll note that the Bootstrap v3.0.0+ was designed using Bootstrap v4.3.5 as its base.

Your V3 template was designed using Bootstrap 4.5.3 as a base; there is no 4.3.5.

30 Dec 2020, 4:20 PM
#297
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Your V3 template was designed using Bootstrap 4.5.3 as a base; there is no 4.3.5.
Ah, numeric dyslexia!

30 Dec 2020, 4:37 PM
#298
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

The whole thing was quite confusing! But the good news is, your improvements solve this problem, so I'll get cracking on upgrading my template right away. Thanks for your hard work on making this great template even better.

30 Dec 2020, 6:06 PM
#299
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

In includes/modules/bootstrap/centerboxes/also_purchased_products.php

if $productsInCategory is not set, a PHP notice is issued. Easily fixed by adding

if (!isset($productsInCategory)) $productsInCategory = array();

around line 15.

31 Dec 2020, 7:13 PM
#300
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I'm working on adding responsive multilevel dropdown menus on the navigation bar to the ZCA Bootstrap template. I've added a dropdown button to the bar that when clicked, opens the first level dropdown. An item in this dropdown opens up a second level dropdown, but an item in the second dropdown will not open to the third level. The html follows the pattern for multilevel dropdown menu examples I can find for bootstrap 4. I'm a Bootstrap novice and would appreciate any suggestions. A sample of the relevant code follows.

<!--bof-navigation display-->
	   <div id="navMainWrapper">
	      <div id="navMain">
		 <nav class="navbar fixed-top mx-3 navbar-expand-lg rounded-bottom">
	            <div class="collapse navbar-collapse" id="navbarSupportedContent">
		       <ul class="navbar-nav ml-auto">
			  <li class="nav-item dropdown">
			     <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown">Button</a>
			     <ul class="dropdown-menu">
				 <li>
				    <a class="dropdown-item" href="https://blah...blah"><i class="fas fa-caret-left"></i> Level 1 Item 1</a>
				    <ul class="submenu dropdown-menu">
			               <li>
				          <a class="dropdown-item" href="https://blah...blah"><i class="fas fa-caret-left"></i>Level 2 Item 1" </a>
                                          <ul class="submenu dropdown-menu">
					     <li>
					        <a class="dropdown-item" href="https://blah...blah">Level 3 Item 1</a>
                                             </li>
                                          </ul>
                                       </li>
                                    </ul>
                                 </li>
                             </ul>
                          </li>
                       </ul>
                    </div>
                 </nav>
              </div>
           </div>