Did you also go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True?
Did you also go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True?
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?
![]()
Giovanni,
Zen Cart V2.1
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:
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.Code:WHERE (layout_box_status = 1 OR layout_box_status_single = 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.
With the Lat9 update everything works now,
Giovanni,
Zen Cart V2.1
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.
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.
Code:[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.
Last edited by dbltoe; 29 Nov 2022 at 10:19 PM.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
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
Look at the comment block in includes/modules/bootstrap/product_listing.php around line 182. It shows you how to do it.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks