Or you could base the check on zen_get_zcversion().
if (function_exists('zen_get_zcversion') && zen_get_zcversion() >= '1.5.8') {
check flags
} else {
check defines
}
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.
I'll most likely simply repeat the code present in the zc158 /includes/init_includes/init_common_elements.php, with a note that the processing can be removed once support for zc157 is dropped.
A non product page like contact_us.
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.
This might have been some oddball page where they turned off header/footer/sideboxes so it could easily be printed - I can't remember. No worries if it's hard to repro; could be just an edge case that only applies to a few sites.
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.
Hello, I can't turn off the search box on the sideboxes when the Box: search_header.php is active. Indeed I have two search boxes, one on the header and one on the right/left box. And if I disable Box: search_header.php and I use Box: search.php I have no search box when I am in tablet mode.
Do you have an idea of how to disable the search box on the sideboxes while keeping the header on, or where to use the search.php box and have a search box on the tablet?
Thanks in advance
Giovanni,
Zen Cart V2.1
@diamond1,
What I do is to turn off both the sideboxes/YOUR_TEMPLATE search_header.php and the sideboxes/search.php in the Layout Boxes Controller. NOTE: the YOUR_TEMPLATE will be bootstrap unless you have done as I did and cloned the bootstrap template.
After turning those two off, I go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True.
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.
Bookmarks