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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,536

Results 881 to 900 of 1,686
27 Nov 2022, 3:49 PM
#881
lat9 avatar

lat9

Administrator

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

ZCA Bootstrap 4 Template [Support Thread]

Did you also go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True?

27 Nov 2022, 4:22 PM
#882
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

By activating Enable AJAX Search I have instead of 2 boxes 2 search icons, I want a single icon or search box either in the header or in a column. Why when I activate sideboxes/bootstrap/search_header.php I have two search icon boxes and not just one?

Attachment 20166

27 Nov 2022, 6:49 PM
#883
dennisns7d avatar

dennisns7d

New Zenner

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

Re: ZCA Bootstrap 4 Template [Support Thread]

I believe that the observed behavior of the search_header is a possible bug in 1.5.8. The gating logic can be found in line 20 of includes/modules/sideboxes/bootstrap/search_header.php:

      WHERE (layout_box_status = 1 OR layout_box_status_single = 1)

If layout_box_status is 1, then the search box is displayed in BOTH the header and a column. To display in only the header, layout_box_status must be 0 and layout_box_status_single must be 1.
The 1.5.8 Layout Boxes Controller doesn't control layout_box_status_single by default. I couldn't find any way to override this default behavior. It is controlled by the $include_single_column_settings variable in admin/layout_controller.php. This variable depends on the value of $available_templates[$selected_template]['uses_single_column_layout_settings'] which appears to never be set. The place that I expected this to be set (includes/functions/functions_templates.php) does not set this.
The search_header sidebox appears to be the only sidebox that uses layout_box_status_single. The only workaround that I can think of is to manually manipulate this value in the database such as using phpMyAdmin or constructing the appropriate SQL.

28 Nov 2022, 1:32 PM
#884
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

With the Lat9 update everything works now,

28 Nov 2022, 5:17 PM
#885
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

diamond1:

With the Lat9 update everything works now,
Thanks for the update, @diamond1. That change is currently 'booked' for the next Zen Cart release.

29 Nov 2022, 6:00 PM
#886
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

The ZCA Bootstrap 4 template, v4.3.1, 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:

#152: Main page's define-page shows on top-level categories' listings.
#153: Use isset instead of ?? for null-coalesce type comparisons as zc157 supports PHP 5.6.
#154: Information sidebox, enabling quick overrides for about-us/brands inclusion (zc158).
#156: Correct product-page display when both onetime charge and price-by-attributes apply.
#158: PHP 8.2+: Address "dynamic properties" in zca_split_page_results.php class.
#161: Correct PHP warning when product has quantity discounts.
#162: zc158: Enable single-column layout settings to be used.

29 Nov 2022, 9:17 PM
#887
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]

Placed this on GitHub but wanted to put it here for those not on GitHub.

Bootstrap 4.3.1 latest version (tried both plain load and our clone)
Zen Cart 158
PHP 7.4 thru 8.1 (no difference with any PHP)
Error does not occur with plain Responsive_Classic

Created Category "DVD"

Restricted Category to Document General and saved without subdirectories

Added Document - General item "DVD"

DVD is now displayed in the Documents sidebox on the main page.

Clicking on "DVD" in the Documents sidebox throws a warning.

[29-Nov-2022 13:11:39 America/Denver] Request URI: /index.php?main_page=document_product_info&cPath=301&products_id=642, IP address: 225.225.225.225, Language id 1
#1 require(/includes/templates/boot_horn/templates/tpl_document_product_info_display.php) called at [/includes/modules/pages/document_product_info/main_template_vars.php:153]
#2 require(/includes/modules/pages/document_product_info/main_template_vars.php) called at [/includes/templates/boot_horn/common/tpl_main_page.php:202]
#3 require(/includes/templates/boot_horn/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $one_time in /includes/templates/boot_horn/templates/tpl_document_product_info_display.php on line 241.
7 Dec 2022, 4:10 PM
#888
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

I have Zen cart 1.5.8 running Bootstrap - Left column set to 3 Center Column set to 9 right column set to 0.
In Admin Product Listing - Columns per row set to 0
So when you view listed products you get 4 columns but they are narrow is it possible to have 3 columns there by allowing the boxes to be wider ?
Thanks

7 Dec 2022, 4:57 PM
#889
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Look at the comment block in includes/modules/bootstrap/product_listing.php around line 182. It shows you how to do it.

7 Dec 2022, 7:17 PM
#890
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Look at the comment block in includes/modules/bootstrap/product_listing.php around line 182. It shows you how to do it.
Thanks Brilliant worked a treat :smile:

25 Dec 2022, 2:17 PM
#891
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.5.0 of the 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:

#155: Add .activeLink to active EZ-page TOC link.
#163: Correct PHP warning on various product_info templates.
#165: Display search in header only when it's enabled for single-box status.
#167: Add ARIA labels for centerboxes and common header.
#168: Remove /jscript/jquery.min.js from the distribution.
#169: Update "Bootstrap" base to v4.6.2; Font Awesome to v5.15.4.
#171: Add notification just after the <head> is rendered, enabling plugins to insert very-early scripts.
#172: Correct off_canvas_menu, it was overwriting a variable used by EZ-pages.
#178: Various refinements and refactorings.
#181: Refactoring and simplification of a product's additional images' display.
#182: Remove trailing slashes on void HTML elements, e.g. <br /> becomes <br>.
#183: Correcting button-related HTML validation; <button> cannot be a descendent of an anchor tag.
#184: Correcting HTML validation issues for 3-page checkout when the "Tax" column is not displayed.
#185: Correcting other HTML validation issues.

25 Dec 2022, 2:41 PM
#892
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Great news! Merry Christmas, @lat9!

25 Dec 2022, 4:13 PM
#893
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

swguy:

Great news! Merry Christmas, @lat9!
Not my holiday, but I appreciate the sentiment.

26 Dec 2022, 3:20 AM
#894
gtgeorge avatar

gtgeorge

New Zenner

Join Date:
Mar 2005
Posts:
53
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Thanks for the updated version. In the instructions I believe there is an error in the changed files though.

line 14 of the changed and removed files for 3.5.0 : /includes/modules/bootstrap/sideboxes/search_header.php should be /includes/modules/sideboxes/bootstrap/search_header.php ?

26 Dec 2022, 7:55 AM
#895
todoonada avatar

todoonada

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

When I want to switch on the sideboxes/information.php in the Layout Boxes Controller I get the following error and almost blank shop page.
PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/bootstrap/common/' (include_path='.:/opt/lampp/lib/php') in zencart-1.5.8/includes/modules/sideboxes/information.php:73

This error does not happen when I use the Responsive Classic Template. All other sideboxes also seem to work. I can not find any error in includes/modules/sideboxes/information.php line 73.

I use Bootstrap v3.5.0 and Zen Cart 1.5.8.

Does anybody have any idea, waht the error might be.

26 Dec 2022, 10:24 AM
#896
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:

When I want to switch on the sideboxes/information.php in the Layout Boxes Controller I get the following error and almost blank shop page.
PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/bootstrap/common/' (include_path='.:/opt/lampp/lib/php') in zencart-1.5.8/includes/modules/sideboxes/information.php:73

This error does not happen when I use the Responsive Classic Template. All other sideboxes also seem to work. I can not find any error in includes/modules/sideboxes/information.php line 73.

I use Bootstrap v3.5.0 and Zen Cart 1.5.8.

Does anybody have any idea, waht the error might be.
That makes no sense to me. Just so I'm clear, are you trying to switch on sideboxes/information.php or sideboxes/bootstrap/information.php? FWIW, I tried the same operation, albeit on a version of zc158 that has all the latest patches, without issue.

27 Dec 2022, 3:36 AM
#897
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

When I want to switch on the sideboxes/information.php in the Layout Boxes Controller I get the following error and almost blank shop page.
PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/bootstrap/common/' (include_path='.:/opt/lampp/lib/php') in zencart-1.5.8/includes/modules/sideboxes/information.php:73

This error does not happen when I use the Responsive Classic Template. All other sideboxes also seem to work. I can not find any error in includes/modules/sideboxes/information.php line 73.

I use Bootstrap v3.5.0 and Zen Cart 1.5.8.

Does anybody have any idea, waht the error might be.

This is because the "information.php" file in \includes\modules\sideboxes\bootstrap [or your template copy] is not the bootstrap version and / or the file being loaded is located in \includes\modules\sideboxes.

If using the bootstrap template, this is easily reproduced by changing the name of \includes\modules\sideboxes\bootstrap\information.php to "information .php2".

27 Dec 2022, 3:40 AM
#898
todoonada avatar

todoonada

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

That makes no sense to me. Just so I'm clear, are you trying to switch on sideboxes/information.php or sideboxes/bootstrap/information.php? FWIW, I tried the same operation, albeit on a version of zc158 that has all the latest patches, without issue.

I can not make sense of it, too.
I have the Bootstrap template active. In the Tools -> Layout Boxes Controller I do not have any sideboxes/bootstrap/boxname listed. Only*sideboxes/boxname.
*The "Currently Viewing" selector on Layout Boxes Controller page is set to ZCA Bootstrap of course.

It seems like $box_id is not set in *zencart-1.5.8/includes/templates/bootstrap/sideboxes/tpl_information.php.
*Same with $column_box_default in zencart-1.5.8/includes/modules/sideboxes/information.php.

27 Dec 2022, 5:31 AM
#899
todoonada avatar

todoonada

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

OldNGrey:

This is because the "information.php" file in \includes\modules\sideboxes\bootstrap [or your template copy] is not the bootstrap version and / or the file being loaded is located in \includes\modules\sideboxes.

If using the bootstrap template, this is easily reproduced by changing the name of \includes\modules\sideboxes\bootstrap\information.php to "information .php2".

I downloaded ZCA-Bootstrap-Template-3.5.0 and copied the files. I copied again to verify that all files are there and it is still the same error. All the other sideboxes work. It is only the information-sidebox causing the problem.

27 Dec 2022, 11:54 AM
#900
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:

I can not make sense of it, too.
I have the Bootstrap template active. In the Tools -> Layout Boxes Controller I do not have any sideboxes/bootstrap/boxname listed. Only*sideboxes/boxname.
*The "Currently Viewing" selector on Layout Boxes Controller page is set to ZCA Bootstrap of course.

It seems like $box_id is not set in *zencart-1.5.8/includes/templates/bootstrap/sideboxes/tpl_information.php.
*Same with $column_box_default in zencart-1.5.8/includes/modules/sideboxes/information.php.
@todoonada, was this a fresh install of the template on zc158? Since you aren't seeing any bootstrap-based sideboxes indicated, perhaps a click of the "Reset Settings" button, at the bottom of the admin's Layout Controller page?