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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,536

Results 861 to 880 of 1,686
21 Nov 2022, 9:26 PM
#861
lat9 avatar

lat9

Administrator

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

ZCA Bootstrap 4 Template [Support Thread]

ianhg:

Thank you for this I realised that I had missed adding the header_php_specials_zca_bootstrap.php to Pages/specials.. feel a bit stupid now.. many thanks
Appreciate the update; it's always the little bits that bite you in the ar*e.

22 Nov 2022, 11:55 AM
#862
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:

Small bug in version 3.4.0 of the bootstrap template:
includes/modules/sideboxes/bootstrap/information.php
references FILENAME_ABOUT_US and FILENAME_BRANDS for checks as to whether to add these links to the sidebox; should follow the 1.5.8 release standard of checking the flags $flag_show_about_us_sidebox_link and $flag_show_brand_sidebox_link instead.
That's something to be done when the template no longer supports zc157!

22 Nov 2022, 12:01 PM
#863
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]

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
}

22 Nov 2022, 12:07 PM
#864
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

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.

24 Nov 2022, 1:38 PM
#865
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:

File includes/templates/bootstrap/jscript/jscript_zca_bootstrap.js

starts with

$('a.imageModal').on('click', function() {

might need to be wrapped in

if ($('a.imageModal')) {

without this you can get

Uncaught TypeError: $(...) is null

if the page has no images.
Could you identify an example, preferably using the demo products, of a page that has no images?

24 Nov 2022, 2:02 PM
#866
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]

A non product page like contact_us.

24 Nov 2022, 6:49 PM
#867
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:

A non product page like contact_us.
Tried the login page, which disables the left/right sideboxes. I'll note that there's an image in the footer banner, as well as the site's header image, but I'm not seeing any console logs.

24 Nov 2022, 7:36 PM
#868
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]

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.

26 Nov 2022, 8:59 AM
#869
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

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

26 Nov 2022, 12:29 PM
#870
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]

@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.

26 Nov 2022, 12:39 PM
#871
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:

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
Are you *really *still using zc156c? What version of the Bootstrap template?

26 Nov 2022, 12:46 PM
#872
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Hello, first of all thank you Lat9 and Dbltoe for the speed and what you do for all of us, No Dbltoe by doing as you say I no longer have the search box, no Lat19 I use 1.5.8

26 Nov 2022, 12:49 PM
#873
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Thank you Lat9, I edited my signature

26 Nov 2022, 9:08 PM
#874
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Test site loaded _test in the root folder
zencart 1.5.8 initial install
new DB
PHP Version: 7.4.33 (Zend: 3.4.0)

Mods loaded:
Edit Orders
OPC
Sitemap XML4
Clone a Template
Bootstrap and Colors
Display Log Files
Mod List

Website loads perfect in responsive classic
Switched to ZCA-Bootstrap4 and get the following 2 debug file errors

 [26-Nov-2022 18:31:18 UTC] Request URI: /index.php?main_page=index, IP address: 216.177.186.199, Language id 1
#1  require() called at [/includes/modules/sideboxes/bootstrap/information.php:61]
#2  require(/includes/modules/sideboxes/bootstrap/information.php)  called at  [/includes/templates/bootstrap/common/tpl_offcanvas_menu.php:97]
#3  require(/includes/templates/bootstrap/common/tpl_offcanvas_menu.php)  called at [/includes/templates/bootstrap/common/tpl_header.php:61]
#4  require(/includes/templates/bootstrap/common/tpl_header.php) called  at [/includes/templates/bootstrap/common/tpl_main_page.php:124]
#5  require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: require(/includes/templates/bootstrap/common):  failed to open stream: No such device in  /includes/modules/sideboxes/bootstrap/information.php on line 61.

[26-Nov-2022 18:31:18 UTC] PHP Fatal error:  require(): Failed opening  required 'includes/templates/bootstrap/common/'  (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in  /includes/modules/sideboxes/bootstrap/information.php on line 61                                                                                                                                                                                                                                                                                                                                                            
 26-Nov-2022  18:31:18 UTC] PHP Notice:  Undefined variable: box_id in  /includes/templates/bootstrap/sideboxes/tpl_information.php on line 12
[26-Nov-2022 18:31:18 UTC] PHP Notice:  Undefined variable:  column_box_default in  /includes/modules/sideboxes/bootstrap/information.php on line 61
[26-Nov-2022 18:31:18 UTC] PHP Notice:  Undefined variable:  column_box_default in  /includes/modules/sideboxes/bootstrap/information.php on line 61                                                                                                                                                                                                                                                                                                                                                            
26 Nov 2022, 9:59 PM
#875
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

@haredo, what version of the Bootstrap template?

26 Nov 2022, 10:19 PM
#876
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Bootstrap 3.4.0 for zencart 157 and 158
latest from github

26 Nov 2022, 10:59 PM
#877
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]

Cindy,

It's my mea culpa on this one.

The goal was to get both responsive_classic and bootstrap loaded, put in OPC for both, and then clone both for testing backups.

I didn't check throroughly or I would have realized bootstrap had the files that needed to replace various OPC files for proper operation.

We loaded:
mod list
clone
EO
bootstrap
OPC

Should have been reversed on the last two.

It is working well now.

THANX for all you do and for the great work. We'll try not to munge it up too often.

:bigups:

27 Nov 2022, 1:09 PM
#878
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Still no solution to eliminate the search box on the left column?

Attachment 20165

27 Nov 2022, 1:13 PM
#879
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:

@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.

diamond1:

Still no solution to eliminate the search box on the left column?

Attachment 20165
Did you see @dbltoe's posting? That's the answer.

27 Nov 2022, 1:28 PM
#880
diamond1 avatar

diamond1

Zen Follower

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Yes, I answered above, it didn't work for me, if I don't have a layout box activated I don't have the search box. and if I only activate sideboxes/bootstrap/search_header.php I get two search boxes. if I disable sideboxes/bootstrap/search_header.php and I only enable sideboxes/search.php I have only one search box but not on tablet.