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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,567

Results 921 to 940 of 1,686
9 Feb 2023, 5:11 PM
#921
lat9 avatar

lat9

Administrator

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

ZCA Bootstrap 4 Template [Support Thread]

v3.5.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:

#188: Remove redundant code from the products_listing module.
#190: Legacy checkout, customer's existing addresses not displayed when changing shipping/billing address.
#192: Use FA glyph instead of image-icon for the update-icon on the shopping_cart page.
#193: Correct non-display of product-delete checkboxes on the shopping_cart page.
#194: Correct display position of product-delete icons/checkboxes on small viewports.
#195: Correct HTML validation error on the shipping-estimator display.
#196: Correct 'sold-outimages displaying as images instead of buttons on zc158. #198: Use zc158 method to ensure T&C checkbox is ticked oncheckout_payment` page.
#200: Correct location of 'Header Position 1' banners, they were overlaid by the navbar.
#201: Correct display of carousel banners' previous/next icons and indicators.

10 Feb 2023, 2:00 AM
#922
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

gsh68:

Is there a way to get a sidebox to show in mobile view?
When using a sidebox for banners for announcements (away/shipping delays etc) it's all fine in desktop view but missing in mobile view.

Thanks.

Apparently not yet. I asked a similar question last December about converting a sidebox into a centrebox and viceversa and was advised that such a thing had to be developed. Since then I have not had the time to follow up.

https://www.zen-cart.com/showthread.php?229207-convert-side-box-to-centre-box-option&p=1392261#post1392261

10 Feb 2023, 2:07 AM
#923
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]

1.5.8 from git
PHP 8.0
Latest bootstrap from git
Partial blank page

[10-Feb-2023 01:53:46 UTC] Request URI: /index.php?main_page=index, IP address: 177.216.199.186, Language id 1#1 require(/includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php) called at [/includes/modules/sideboxes/best_sellers.php:55]
#2 include(/includes/modules/sideboxes/best_sellers.php) called at [/includes/modules/column_right.php:30]
#3 require(/includes/modules/column_right.php) called at [/includes/templates/frammerdibble/common/tpl_main_page.php:250]
#4 require(/includes/templates/frammerdibble/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $bestsellers_list in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php on line 14.


[10-Feb-2023 01:53:46 UTC] PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php:14
Stack trace:
#0 /includes/modules/sideboxes/best_sellers.php(55): require()
#1 /includes/modules/column_right.php(30): include('/home/frammer...')
#2 /includes/templates/frammerdibble/common/tpl_main_page.php(250): require('/home/frammer...')
#3 /index.php(94): require('/home/frammer...')
#4 {main}
thrown in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php on line 14


[10-Feb-2023 01:53:46 UTC] Request URI: /index.php?main_page=index, IP address: 216.177.186.199
--> PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php:14
Stack trace:
#0 /includes/modules/sideboxes/best_sellers.php(55): require()
#1 /includes/modules/column_right.php(30): include('/home/frammer...')
#2 /includes/templates/frammerdibble/common/tpl_main_page.php(250): require('/home/frammer...')
#3 /index.php(94): require('/home/frammer...')
#4 {main}
thrown in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php on line 14.
10 Feb 2023, 11:33 AM
#924
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

gsh68:

Is there a way to get a sidebox to show in mobile view?
When using a sidebox for banners for announcements (away/shipping delays etc) it's all fine in desktop view but missing in mobile view.

If not possible is there a way for a wide-banner at the top of the page to not be hidden by the navigation bar? It displays under the footer fine in both desktop and mobile view but is hidden at the top.

Thanks.
v3.5.1 of the template no longer covers the top (Header Position 1) banner by the navigation bar.

10 Feb 2023, 11:45 AM
#925
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

dbltoe:

1.5.8 from git
PHP 8.0
Latest bootstrap from git
Partial blank page

[10-Feb-2023 01:53:46 UTC] Request URI: /index.php?main_page=index, IP address: 177.216.199.186, Language id 1#1 require(/includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php) called at [/includes/modules/sideboxes/best_sellers.php:55]
#2 include(/includes/modules/sideboxes/best_sellers.php) called at [/includes/modules/column_right.php:30]
#3 require(/includes/modules/column_right.php) called at [/includes/templates/frammerdibble/common/tpl_main_page.php:250]
#4 require(/includes/templates/frammerdibble/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $bestsellers_list in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php on line 14.

[10-Feb-2023 01:53:46 UTC] PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php:14
Stack trace:
#0 /includes/modules/sideboxes/best_sellers.php(55): require()
#1 /includes/modules/column_right.php(30): include('/home/frammer...')
#2 /includes/templates/frammerdibble/common/tpl_main_page.php(250): require('/home/frammer...')
#3 /index.php(94): require('/home/frammer...')
#4 {main}
thrown in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php on line 14

[10-Feb-2023 01:53:46 UTC] Request URI: /index.php?main_page=index, IP address: 216.177.186.199
--> PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php:14
Stack trace:
#0 /includes/modules/sideboxes/best_sellers.php(55): require()
#1 /includes/modules/column_right.php(30): include('/home/frammer...')
#2 /includes/templates/frammerdibble/common/tpl_main_page.php(250): require('/home/frammer...')
#3 /index.php(94): require('/home/frammer...')
#4 {main}
thrown in /includes/templates/frammerdibble/sideboxes/tpl_best_sellers.php on line 14.

What's the site's setting for ***Minimum Values :: Best Sellers*** and ***Maximum Values :: Best Sellers for Box***?

FWIW, I'm guessing that the *Responsive Classic* template's going to do the same thing.
10 Feb 2023, 12:01 PM
#926
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

dw08gm:

Apparently not yet. I asked a similar question last December about converting a sidebox into a centrebox and viceversa and was advised that such a thing had to be developed. Since then I have not had the time to follow up.

https://www.zen-cart.com/showthread.php?229207-convert-side-box-to-centre-box-option&p=1392261#post1392261
The thing with converting a sidebox to a centrebox is that a centrebox-rendering script (/includes/templates/bootstrap/centerboxes) would need to be supplied. That's why @swguy indicated that custom-coding would be needed.

What *could *be done by the base template is to include **all **active sideboxes in the mobile dropdown menu.

I'm thinking that two new headings' texts (one for the left-sidebox and one for the right-sidebox) would be supplied in the base Bootstrap language file. All active sideboxes in each (other than the information and more_information ones, which stand on their own) would be displayed in a drop-down menu under the associated heading.

If a site didn't want the sidebox to display on mobile, site-specific CSS could be used to hide the information (it'd still be there for Google/Bing to scrape, though).

Would that work as a partial solution?

11 Feb 2023, 1:28 AM
#927
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

The thing with converting a sidebox to a centrebox is that a centrebox-rendering script (/includes/templates/bootstrap/centerboxes) would need to be supplied. That's why @swguy indicated that custom-coding would be needed.

What *could *be done by the base template is to include **all **active sideboxes in the mobile dropdown menu.

I'm thinking that two new headings' texts (one for the left-sidebox and one for the right-sidebox) would be supplied in the base Bootstrap language file. All active sideboxes in each (other than the information and more_information ones, which stand on their own) would be displayed in a drop-down menu under the associated heading.

If a site didn't want the sidebox to display on mobile, site-specific CSS could be used to hide the information (it'd still be there for Google/Bing to scrape, though).

Would that work as a partial solution?

I would like to see that, but am so tied up at the moment that I can do little more than read and occasionally comment on this matter. So from my side there is no hurry to begin any of this.

I was thinking of a CSS solution using display:none with screen width or other media parameters, but irked at the possibility that perhaps two boxes or the same information could be sent when only one lot should.

Cheers

11 Feb 2023, 2:07 AM
#928
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]

lat9:

What's the site's setting for Minimum Values :: Best Sellers and Maximum Values :: Best Sellers for Box?

FWIW, I'm guessing that the Responsive Classic template's going to do the same thing.

Yes on the Responsive Classic

Settings are 0 and 10 respectively.

11 Feb 2023, 5:33 PM
#929
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

dbltoe:

Yes on the Responsive Classic

Settings are 0 and 10 respectively.
It's a base Zen Cart issue; see https://github.com/zencart/zencart/issues/5596 for details.

11 Feb 2023, 6:35 PM
#930
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]

Setting the minimum to 1 makes it all better.:yes:

11 Feb 2023, 9:08 PM
#931
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

dbltoe:

Setting the minimum to 1 makes it all better.:yes:
Setting the minimum value to 1 is a work-around.

11 Feb 2023, 10:31 PM
#932
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]

tru dat

Still trying to find what overrides the initial database setting of 1.

14 Feb 2023, 4:36 AM
#933
todoonada avatar

todoonada

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Bootstrap 3.5.1
In shopping cart the checkboxes for deleting products are not well aligned.
Attachment 20209

If ```
position:absolute;

This is a file loaded from bootstrap. So I am looking for a method to display the checkbox correctly and not messing up any other elements.
14 Feb 2023, 12:07 PM
#934
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

Bootstrap 3.5.1
In shopping cart the checkboxes for deleting products are not well aligned.
Attachment 20209

If ```
position:absolute;

> This is a file loaded from bootstrap. So I am looking for a method to display the checkbox correctly and not messing up any other elements.
Darn it.  I had an additional plugin installed when testing that expanded the height of the shopping-cart table's rows.

GitHub tracking issue: <https://github.com/lat9/ZCA-Bootstrap-Template/issues/203>
15 Feb 2023, 3:05 PM
#937
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

Thank you!
Looks good now.
And thank you for the confirmation that the update corrected the issue!

27 Feb 2023, 7:59 AM
#938
jtlswan avatar

jtlswan

New Zenner

Join Date:
May 2006
Location:
Orangeburg, SC
Posts:
72
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Can't seem to remove the NOTIFICATIONS box on the product page. I've removed it everywhere else but there...ideas?

Attachment 20219

Fresh install: 1.5.8
Latest ZCA Bootstrap Template

27 Feb 2023, 11:59 AM
#939
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

jtlswan:

Can't seem to remove the NOTIFICATIONS box on the product page. I've removed it everywhere else but there...ideas?

Attachment 20219

Fresh install: 1.5.8
Latest ZCA Bootstrap Template
That setting's in Configuration :: Bootstrap Template Settings :: Display the Notifications Box on Product Pages; set it to 0.

1 Mar 2023, 5:31 PM
#940
diamond1 avatar

diamond1

Zen Follower

Join Date:
Jan 2010
Location:
France
Posts:
295
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi Lat, I think tpl_header.php is missing a <br> on line 165?

<?php /** * Common Template - tpl_header.php * * BOOTSTRAP v3.5.1 * * * @copyright Copyright 2003-2020 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: DrByte 2020 May 19 Modified in v1.5.7 $ */ ?> <!--bof-header logo and navigation display--> <?php // ----- // Quick return if the header's been disabled. // if (!empty($flag_disable_header)) { return; } ?> <div id="headerWrapper" class="mt-5"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <nav class="navbar fixed-top mx-3 navbar-expand-lg rounded-bottom" aria-label="<?php echo TEXT_HEADER_ARIA_LABEL_NAVBAR; ?>"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <i class="fas fa-bars"></i> </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav mr-auto">
<?php if (!$this_is_home_page) { ?>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>">
                            <i class="fas fa-home"></i> <?php echo HEADER_TITLE_CATALOG; ?>
                        </a>
                    </li>
<?php } if (zen_is_logged_in() && !zen_in_guest_checkout()) { ?>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
                    </li>
<?php } else { if (STORE_STATUS === '0') { ?>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>">
                            <i class="fas fa-sign-in-alt"></i> <?php echo HEADER_TITLE_LOGIN; ?>
                        </a>
                    </li>
<?php } } if ($_SESSION['cart']->count_contents() > 0) { ?>
                    <li class="nav-item">
                        <!--<a class="nav-link" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
                        <!--aggiunge icona carrello su header con quantita-->
                        <a class="nav-link" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<i class="fas fa-shopping-cart"></i> ' ?><?php echo $_SESSION['cart']->count_contents(); ?> <?php echo HEADER_TITLE_CART_CONTENTS; ?></a>

                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
                    </li>
<?php } require $template->get_template_dir('tpl_offcanvas_menu.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_offcanvas_menu.php'; ?>
                </ul>
<?php require DIR_WS_MODULES . zen_get_module_sidebox_directory('search_header.php'); ?>
            </div>
        </nav>
    </div>
</div>
<!--eof-navigation display--> <?php // ----- // Output the div that provides spacing under the navbar. It's set by // tpl_main_page.php and might be an empty string if it's already been // output in an active 'Header Position 1' banner. // echo $navbar_spacer; ?> <!--bof-branding display-->
<div id="logoWrapper">
     <div id="logo" class="row align-items-center px-3 pb-3">
<?php $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; ?>">
                <?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base, 'images') . '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT); ?>
            </a><br>
        </div>
<?php if ((SHOW_BANNERS_GROUP_SET2 !== '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) || HEADER_SALES_TEXT !== '') { ?>
        <div id="taglineWrapper" class="col-sm-6 text-center"> <!--col-sm-6 invece di col-sm-12-->
<?php if (HEADER_SALES_TEXT !== '') { ?>
            <div id="tagline" class="text-center"><?php echo HEADER_SALES_TEXT;?></div>
<?php } if (SHOW_BANNERS_GROUP_SET2 !== '' && $banner !== false) { // ----- // Set variables used by the banner-carousel. // $find_banners = zen_build_banners_group(SHOW_BANNERS_GROUP_SET2); $banner_group = 2; ?>
            <div class="zca-banner bannerTwo rounded">
<?php if (ZCA_ACTIVATE_BANNER_TWO_CAROUSEL === 'true') { require $template->get_template_dir('tpl_zca_banner_carousel.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_zca_banner_carousel.php'; } else { echo zen_display_banner('static', $banner); } ?>
            </div>
<?php } ?>
        </div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
</div>
<!--eof-branding display--> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo zen_output_string_protected(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo zen_output_string_protected($_GET['info_message']); } ?> <!--eof-header logo and navigation display--> <!--bof-optional categories tabs navigation display--> <?php require $template->get_template_dir('tpl_modules_categories_tabs.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_categories_tabs.php'; ?> <!--eof-optional categories tabs navigation display-->

<br>

<!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER === '1' || (EZPAGES_STATUS_HEADER === '2' && zen_is_whitelisted_admin_ip())) { require $template->get_template_dir('tpl_ezpages_bar_header.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_ezpages_bar_header.php'; } ?> <!--eof-header ezpage links--> </div>