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?
Views: 542,536
Administrator
Did you also go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True?
Zen Follower
New Zenner
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.
Zen Follower
With the Lat9 update everything works now,
Administrator
diamond1:
With the Lat9 update everything works now,
Thanks for the update, @diamond1. That change is currently 'booked' for the next Zen Cart release.
Administrator
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.
Totally Zenned
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.
Zen Follower
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
Administrator
Look at the comment block in includes/modules/bootstrap/product_listing.php around line 182. It shows you how to do it.
Zen Follower
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:
Administrator
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.
Administrator
Great news! Merry Christmas, @lat9!
Administrator
swguy:
Great news! Merry Christmas, @lat9!
Not my holiday, but I appreciate the sentiment.
New Zenner
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 ?
Zen Follower
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.
Administrator
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:73This 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.
Zen Follower
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:73This 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".
Zen Follower
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.
Zen Follower
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.
Administrator
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?
Fields marked required must be completed.
Tell staff why this post should be reviewed.