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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,622

Results 1,121 to 1,140 of 1,686
7 Feb 2024, 9:40 PM
#1121
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

ZCA Bootstrap 4 Template [Support Thread]

So I have this installed for years I suppose. Two environments which I thought were identical.

However 1 config shows right column and under that is enable ajax search

Config 2 has 11 fields between here which includes turning on and off the manufacturers box and more

This lack of those fields is causing an error on the system without those fields. Perhaps I missed a step on one of these which was pretty important because I can throw 1,000 error logs a day with this.

Also the one missing the fields says date added as 1/9/23 not today (day of install of latest version) the actual init file generating the error is in fact from 3.6.2 and yet those fields do not show in admin.

7 Feb 2024, 10:06 PM
#1122
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

In the two site's Bootstrap configuration display, do both sites display the same Bootstrap version? Is the same version of Zen Cart (and PHP) being used on both ... and what are those versions?

7 Feb 2024, 10:30 PM
#1123
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

both say 3.6.0 on the template selector both have the entire packet added into the various locations checked twice the dates of each the new files from the github same php 7.4.xx (yes I know moving servers) and zen 1.5.7c. one was done yesterday.

Now to be clear the error messages predate the template upgrade I upgraded the template to remove the error message as it's a bootstrap file error as shown here

--> PHP Warning: Use of undefined constant PRODUCT_INFO_SHOW_BOOTSTRAP_MODAL_SLIDE - assumed 'PRODUCT_INFO_SHOW_BOOTSTRAP_MODAL_SLIDE' (this will throw an Error in a future version of PHP) in /var/www/vhosts/.com/httpdocs/shop/includes/templates/bootstrap/templates/tpl_product_info_display.php on line 80.
--> PHP Warning: Use of undefined constant PRODUCT_INFO_SHOW_NOTIFICATIONS_BOX - assumed 'PRODUCT_INFO_SHOW_NOTIFICATIONS_BOX' (this will throw an Error in a future version of PHP) in /var/www/vhosts/.com/httpdocs/shop/includes/templates/bootstrap/templates/tpl_product_info_display.php on line 300.
--> PHP Warning: Use of undefined constant PRODUCT_INFO_SHOW_MANUFACTURER_BOX - assumed 'PRODUCT_INFO_SHOW_MANUFACTURER_BOX' (this will throw an Error in a future version of PHP) in /var/www/vhosts/.com/httpdocs/shop/includes/templates/bootstrap/templates/tpl_product_info_display.php on line 306.

So based on this which traces to those specific settings not having them is causing an issue.

8 Feb 2024, 1:43 PM
#1124
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi there,

Once again, loving the template.
I would like to know if anyone here can help me with the following.

I am looking for an easy way to swap the normal price and the special price, perhaps move them to separate lines.

I will attach two images, first is how it is now and the second is what I am trying to achieve.

Attachment 20477 Attachment 20478

Thanks in advance for any help/suggestions

*edit: Without having to fiddle to much in ZcaBootstrapObserver.php

8 Feb 2024, 2:01 PM
#1125
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

@JimmyV, that feels like a failed template upgrade from an older (pre-v3.2.0) version. I'll send you a PM with the correction, but I need you to navigate to your admins' Configuration :: Bootstrap Template Settings and tell me what displays in the browser's address bar (the value might be different on the two sites). That'll look something like

https://yoursite.com/admin/index.php?cmd=configuration&gID=49

What I'm really interested in is the value after &gID.

8 Feb 2024, 2:06 PM
#1126
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Shifty_J:

Hi there,

Once again, loving the template.
I would like to know if anyone here can help me with the following.

I am looking for an easy way to swap the normal price and the special price, perhaps move them to separate lines.

I will attach two images, first is how it is now and the second is what I am trying to achieve.

Attachment 20477 Attachment 20478

Thanks in advance for any help/suggestions

*edit: Without having to fiddle to much in ZcaBootstrapObserver.php
Looks like a small addition to the site's /includes/templates/your-bootstrap/css/site_specific_styles.php will do the trick, adding:

.normalprice { float: right; }
8 Feb 2024, 2:17 PM
#1127
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Looks like a small addition to the site's /includes/templates/your-bootstrap/css/site_specific_styles.php will do the trick, adding:

.normalprice { float: right; }


HAHAHAHAHAHA you can tell it has been a long day when you miss something as simple as that.
Thank you lat9, worked like a charm.
8 Feb 2024, 2:35 PM
#1128
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

All these work flawlessly however the one has error logs on every page nav so an annoyance.

One with the added fields like banner and modal etc between in menu
index.php?cmd=configuration&gID=40

One without
index.php?cmd=configuration&gID=39

Another system I have running this template working
index.php?cmd=configuration&gID=55

The top two have far less customization to them which perhaps explains the lower number?

One thing that is different is this the two working have identical upgrade dates listed to right in config the non working one has this

Displays the template's current version.

Date Added: 01/09/2023
Last Modified: 02/07/2024

So different dates. Now of course this being a later upgrade I didn't note version of template I replaced but I an nearly certain it was 3.2.0 installed in January 23 which probably was when that version 3.2.0 was released about.

The fields are in the init file so why they don't show is odd regardless and I was thinking the fields are not in the db but looking back I don't really see having done any db scripts to use this template back then and certainly not lately.

8 Feb 2024, 3:24 PM
#1129
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

OK, so for the site that shows gID=39, copy/paste the following SQL statements into the admin's Tools :: Install SQL Patches and run it:

    INSERT IGNORE INTO configuration
        (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added, sort_order, use_function, set_function)
     VALUES
         ('Use Bootstrap Additional Image Carousel', 'PRODUCT_INFO_SHOW_BOOTSTRAP_MODAL_SLIDE', '0', 'Default is <b>0</b>, Opens images in an individual modal, <b>1</b> opens images in a single modal with carousel.', 39, now(), 301, NULL, 'zen_cfg_select_option([\'0\', \'1\'],'),

        ('Display the Manufacturer Box on Product Pages', 'PRODUCT_INFO_SHOW_MANUFACTURER_BOX', '1', 'Used by the ZCA Bootstrap template.  Default is <b>1</b>, Displays on Info Page, <b>0</b> Does not Display.', 39, now(), 302, NULL, 'zen_cfg_select_option([\'0\', \'1\'],'),

        ('Display the Notifications Box on Product Pages', 'PRODUCT_INFO_SHOW_NOTIFICATIONS_BOX', '1', 'Used by the ZCA Bootstrap template. Default is <b>1</b>, Displays on Info Page, <b>0</b> Does not Display.', 39, now(), 303, NULL, 'zen_cfg_select_option([\'0\', \'1\'],');

For the other site (with gID=40), use:

    INSERT IGNORE INTO configuration
        (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added, sort_order, use_function, set_function)
     VALUES
         ('Use Bootstrap Additional Image Carousel', 'PRODUCT_INFO_SHOW_BOOTSTRAP_MODAL_SLIDE', '0', 'Default is <b>0</b>, Opens images in an individual modal, <b>1</b> opens images in a single modal with carousel.', 40, now(), 301, NULL, 'zen_cfg_select_option([\'0\', \'1\'],'),

        ('Display the Manufacturer Box on Product Pages', 'PRODUCT_INFO_SHOW_MANUFACTURER_BOX', '1', 'Used by the ZCA Bootstrap template.  Default is <b>1</b>, Displays on Info Page, <b>0</b> Does not Display.', 40, now(), 302, NULL, 'zen_cfg_select_option([\'0\', \'1\'],'),

        ('Display the Notifications Box on Product Pages', 'PRODUCT_INFO_SHOW_NOTIFICATIONS_BOX', '1', 'Used by the ZCA Bootstrap template. Default is <b>1</b>, Displays on Info Page, <b>0</b> Does not Display.', 40, now(), 303, NULL, 'zen_cfg_select_option([\'0\', \'1\'],');

FWIW, this GitHub issue has been created to track; the changes will be in v3.6.3: https://github.com/lat9/ZCA-Bootstrap-Template/issues/314

8 Feb 2024, 7:05 PM
#1130
jimmyv avatar

jimmyv

Zen Follower

Join Date:
Feb 2008
Location:
Philadelphia
Posts:
292
Plugin Contributions:
2

Re: ZCA Bootstrap 4 Template [Support Thread]

This worked on those 3 items TYVM fantastic !!!

However the 6 banner bootstraps in middle are still not listed they are not throwing errors but none the less they are not installed.
Bootstrap... Header 1 2 3
Bootstrap... Footer 1 2 3
Since I have carousels turned off that would explain no error but if someone came across they might well need that snippet as well.

FWIW that system that it was missing on was most likely my test site back when I tried this template a few years ago as you took it over. So I could easily be a rare case as a super early adopter who know.

Regardless thanks very much thing is awesome.

One thing might I suggest you monkey with I find about 65-70% of access is mobile tablet or phonelike device. So not for years I have been swapping position so price and add to cart is under the image and description is under that. So in my case the description could be a paragraph or two and might be much longer so as a result having it lower reduced sales. Obv I just mod mine but it's a setting I absolutely dont understand out of the box so to speak.

Again thanks very much on this issue and my comment is not meant in any way as a critique but is solely my sales results being expressed for thought.

9 Feb 2024, 4:43 PM
#1131
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

v3.6.3 of the ZCA Bootstrap 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:

#302: Correct template's template_info.php to report the current version.
#303: Update to support zc200's "Wholesale Pricing".
#304: Two trashcan icons were being displayed on the shopping_cart page when viewing on a 'small' screen.
#305: Enabling a fluid display on category listings.
#306: Updates to SNAF pages' header_php*.php files in support of zc200.
#307: Correct PHP Warnings on products' listing display order if no matching product is found.
#310: Correct display on Chrome browser's device-toolbar (used to test various devices' display).
#311: Use page-specific maximums for SNAF listings' display.
#312: Correct PHP Warning on index listing when no sort is selected.
#313: Add alpha-filter to products_all page, if enabled.
#314: Upgrade from very old version winds up missing configuration settings.

9 Feb 2024, 5:06 PM
#1132
swguy avatar

swguy

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

Fantastic news! Thank you.

I will get the documentation around #305 done asap.

11 Feb 2024, 1:16 PM
#1133
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

In a new fresh installation of zc1.5.8a I want to install v3.6.3 of the ZCA Bootstrap Template and OPC v2.4.6.
Which order would be preferable: Bootstrap first and then OPC or the other way around?

TIA,

jpda

11 Feb 2024, 2:43 PM
#1134
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

jpda:

In a new fresh installation of zc1.5.8a I want to install v3.6.3 of the ZCA Bootstrap Template and OPC v2.4.6.
Which order would be preferable: Bootstrap first and then OPC or the other way around?

TIA,

jpda
Probably OPC first, then Bootstrap. My reasoning is that the Bootstrap template has its own, modified version of various OPC templates, so doing OPC first helps to ensure that the Bootstrap version of those template files isn't overwritten.

11 Feb 2024, 2:55 PM
#1135
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Thanks Cindy for your quick answer, I will install in that order. :smile:

12 Feb 2024, 10:09 AM
#1136
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Working in ZenCart v1.5.8a, PHP v8

Question:
Installing Bootstrap 3.6.3
In the install files I see 2 folders:
ZCA-Bootstrap-Template-3.6.3/includes/languages/english/bootstrap
ZCA-Bootstrap-Template-3.6.3/includes/languages/english/extra_definitions

I would expect also ZCA-Bootstrap-Template-3.6.3/includes/languages/english/html_includes
containing /bootstrap/html_includes/bootstrap
to override the defines as in ZenCart v1.5.8a includes/languages/english/html_includes/responsive_classic/

Is that correct?

12 Feb 2024, 10:33 AM
#1137
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

jpda:

Working in ZenCart v1.5.8a, PHP v8

Question:
Installing Bootstrap 3.6.3
In the install files I see 2 folders:
ZCA-Bootstrap-Template-3.6.3/includes/languages/english/bootstrap
ZCA-Bootstrap-Template-3.6.3/includes/languages/english/extra_definitions

I would expect also ZCA-Bootstrap-Template-3.6.3/includes/languages/english/html_includes
containing /bootstrap/html_includes/bootstrap
to override the defines as in ZenCart v1.5.8a includes/languages/english/html_includes/responsive_classic/

Is that correct?

I'm not sure how others have done it but I just created my own bootstrap folder in html_includes and have my own define_main_page.php file in there, or any other files I don't want overridden when updating.

so:
includes/languages/english/html_includes/bootstrap/

12 Feb 2024, 10:35 AM
#1138
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

jpda:

Working in ZenCart v1.5.8a, PHP v8

Question:
Installing Bootstrap 3.6.3
In the install files I see 2 folders:
ZCA-Bootstrap-Template-3.6.3/includes/languages/english/bootstrap
ZCA-Bootstrap-Template-3.6.3/includes/languages/english/extra_definitions

I would expect also ZCA-Bootstrap-Template-3.6.3/includes/languages/english/html_includes
containing /bootstrap/html_includes/bootstrap
to override the defines as in ZenCart v1.5.8a includes/languages/english/html_includes/responsive_classic/

Is that correct?

Not sure how others have done it, but I created my own bootstrap folder inside html_includes that contains define_main_page.php (or any of those files). That way it doesn't get overridden when updating.

includes/languages/english/html_includes/bootstrap/

12 Feb 2024, 10:40 AM
#1139
shifty_j avatar

shifty_j

New Zenner

Join Date:
May 2020
Posts:
16
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

v3.6.3 of the ZCA Bootstrap 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:

#302: Correct template's template_info.php to report the current version.
#303: Update to support zc200's "Wholesale Pricing".
#304: Two trashcan icons were being displayed on the shopping_cart page when viewing on a 'small' screen.
#305: Enabling a fluid display on category listings.
#306: Updates to SNAF pages' header_php*.php files in support of zc200.
#307: Correct PHP Warnings on products' listing display order if no matching product is found.
#310: Correct display on Chrome browser's device-toolbar (used to test various devices' display).
#311: Use page-specific maximums for SNAF listings' display.
#312: Correct PHP Warning on index listing when no sort is selected.
#313: Add alpha-filter to products_all page, if enabled.
#314: Upgrade from very old version winds up missing configuration settings.

thank you for the update. I have updated it but now I get a fatal error on the Products All page.

--> PHP Fatal error: Uncaught Error: Undefined constant "TEXT_SHOW" in C:\xampp\htdocs\ZEN\zen_158a\includes\templates\bootstrap\templates\tpl_products_all_default.php:23
Stack trace:
#0 C:\xampp\htdocs\ZEN\zen_158a\includes\templates\bootstrap\common\tpl_main_page.php(217): require()
#1 C:\xampp\htdocs\ZEN\zen_158a\index.php(94): require('C:\\xampp\\htdocs...')
#2 {main}
thrown in C:\xampp\htdocs\ZEN\zen_158a\includes\templates\bootstrap\templates\tpl_products_all_default.php on line 23.

Upon checking it seems that I use to use BOOTSTRAP v1.0.BETA for tpl_products_all_default.php. I am not sure why it never updated previously.

Using zen cart version 1.5.8a , PHP 8.2

12 Feb 2024, 12:40 PM
#1140
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Thanks @Shifty_J, that's exactly what I did myself. :smile:
But I wanted to point out that IMHO it should be in the distribution of ZCA-Bootstrap-Template.

jpda