-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
nicksab
Zc -1.5.7
Bootstrap 3.3.0 with OPC
http://www.royal-fleurdotcom
Is there away to keep the "buy now" button align? ( see screenshot)
Attachment 20129
On my example, pictures are the same size. However, the "buy now" button is being push down because of the name of the product (4 line vs 3 line ).
Can the "buynow" be kept align no matter what s between the picture and button ( ie name, price, call for price...)?
Thank you
Reviving my post as I still cannot figure out how to get my "buy now" to align.
It does the exact same thing when product are on sale or call for price. Buy Now ( moreinfo link) get s push down. I tried to play with margin top and bottom but out of luck.
Any ideas please?
Thank you
-
Re: ZCA Bootstrap 4 Template [Support Thread]
In FA5, "fa-facebook" needs "fab", not "fas".
Bootstrap uses "fas" in several places. I'm not sure how well this works if using FA4.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
> Bootstrap 4 comes with a file in includes/templates/YOUR_TEMPLATE/css/dist-site_specific_styles.php.
Small correction - the template is already set to 'bootstrap'. So it's
includes/templates/bootstrap/css/dist-site_specific_styles.php
so just copy that file to
includes/templates/bootstrap/css/site_specific_styles.php
Have just gone to do this but there is no site_specific_styles.php
By the sound of it there should be but there isnt so am a bit lost as what to do.
Think will try and centre those links as Simon says for now untl can figure out how to list them the way I want.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dennisns7d
In FA5, "fa-facebook" needs "fab", not "fas".
Bootstrap uses "fas" in several places. I'm not sure how well this works if using FA4.
Thank you for some reasons replies are not showing up to me even though I have just come onto t he forum this morning.
Will Take a look
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dennisns7d
In FA5, "fa-facebook" needs "fab", not "fas".
Sure enough, that was the fix. Thanks!
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Just need a quick nudge in the right direction...
I am busy with an upgrade to Zencart v157 and decided to install ZCA Bootstrap 4 v330 (Upgraded version of my previous template not available).
Then I saw a few days ago that v340 was released and now includes the following change:
CHANGE: Include Bootstrap-formatted templates for "One-Page Checkout". (OPC is a function that I really wanted to try out).
So I followed the upgrade instructions (from v330 to v340) shown in the readme file.
Question: Do I also need to install the full One Page Checkout plugin to get the functionality?
(I could not find any admin setting to activate OPC after only upgrading to v340).
Question
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi @Francois
I'm not sure but have seen it in my sites cpanel but not in zencarts admin panel sorry couldn't be more help
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Will the flexible footer as can see three different ones work in Zencart with the bootstrap template does anyone know please? as they should do what I want.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Francois
Just need a quick nudge in the right direction...
I am busy with an upgrade to Zencart v157 and decided to install ZCA Bootstrap 4 v330 (Upgraded version of my previous template not available).
Then I saw a few days ago that v340 was released and now includes the following change:
CHANGE: Include Bootstrap-formatted templates for "One-Page Checkout". (OPC is a function that I really wanted to try out).
So I followed the upgrade instructions (from v330 to v340) shown in the readme file.
Question: Do I also need to install the full One Page Checkout plugin to get the functionality?
(I could not find any admin setting to activate OPC after only upgrading to v340).
Question
The current Bootstrap template contains the template-related changes for integration with OPC. You still need to install and activate the OPC plugin to get that functionality.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
The current Bootstrap template contains the template-related changes for integration with OPC. You still need to install and activate the OPC plugin to get that functionality.
Thanks lat9, will do so now...
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v3.2.0 of the Bootstrap-4 Template for the Zen Cart moderators' review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#87: Include "More Information" sidebox in mobile-menu, if enabled.
#93: Use loading="lazy" to lazy-load images.
#96: Screen-reader updates for reviews' rating stars.
#97: Correct javascript/jQuery error on address-gathering pages; missing #stBreak.
#98: Correct missplaced </div> in products' listing template module.
#99: Adding an AJAX search; template settings are now in their own configuration 'group'.
#100: Add product-listing default grids for 12-column and 9-column center sections; enable the listing's 'grid' layout to be overridden.
Apologies if I appear too pedantic but I just noticed that the title of this thread was changed on 26 February 2022 at post #630 to:
Re: ZCA Bootstrap 4 Template [Support Thread] - Ajax search
https://www.zen-cart.com/showthread....09#post1386809
whereas the previous title of this thread was simply:
Re: ZCA Bootstrap 4 Template [Support Thread]
even though AJAX search was announced as having been added to the mod (Version: v3.2.0) on 5 December 2021 at post #562
https://www.zen-cart.com/showthread....79#post1385379.
However the earliest discussion of the AJAX search function in this thread does not really occur until on 20 April 2022 at post #674
https://www.zen-cart.com/showthread....71#post1387871.
What this means is that it is exceedingly cumbersome to find relevant discussions of the exceedingly useful AJAX search function without having to wade through every post since 26 February 2022.
What would be nice if not better would be to amend the thread titles to reflect the date of the mod upgrades, thus
from 5 December 2021 after the original title adding the term " - Version: v3.2.0"
from 26 February 2022 replacing the words "AJAX search" with "Version: v3.2.0"
from 14 Apr 2022 replacing the words "AJAX search" with "Version: v3.3.0"
from 15 Oct 2022 replacing the words "AJAX search" with "Version: v3.4.0"
Is it possible that such changes could be automated by using a batch renaming process.
Thanks
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Correction:
The earliest discussion of the AJAX search function in this thread does not really occur until 9 February 2022 at post #602
https://www.zen-cart.com/showthread....86#post1386486.
Got that wrong because of the weird ordering of the thread search results.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dw08gm
Apologies if I appear too pedantic but I just noticed that the title of this thread was changed on 26 February 2022 at post #630 to:
Re: ZCA Bootstrap 4 Template [Support Thread] - Ajax search
https://www.zen-cart.com/showthread....09#post1386809
whereas the previous title of this thread was simply:
Re: ZCA Bootstrap 4 Template [Support Thread]
even though AJAX search was announced as having been added to the mod (Version: v3.2.0) on 5 December 2021 at post #562
https://www.zen-cart.com/showthread....79#post1385379.
However the earliest discussion of the AJAX search function in this thread does not really occur until on 20 April 2022 at post #674
https://www.zen-cart.com/showthread....71#post1387871.
What this means is that it is exceedingly cumbersome to find relevant discussions of the exceedingly useful AJAX search function without having to wade through every post since 26 February 2022.
What would be nice if not better would be to amend the thread titles to reflect the date of the mod upgrades, thus
from 5 December 2021 after the original title adding the term " - Version: v3.2.0"
from 26 February 2022 replacing the words "AJAX search" with "Version: v3.2.0"
from 14 Apr 2022 replacing the words "AJAX search" with "Version: v3.3.0"
from 15 Oct 2022 replacing the words "AJAX search" with "Version: v3.4.0"
Is it possible that such changes could be automated by using a batch renaming process.
Thanks
Quote:
Originally Posted by
dw08gm
Correction:
The earliest discussion of the AJAX search function in this thread does not really occur until 9 February 2022 at post #602
https://www.zen-cart.com/showthread....86#post1386486.
Got that wrong because of the weird ordering of the thread search results.
Not pedantic at all; I'll ping @swguy to see if the various thread titles could be consolidated. I also like the renaming of the posting title to include the version upon release (most people don't change the title in a support thread).
Thanks for taking the time to lay a plan out!
-
Re: ZCA Bootstrap 4 Template [Support Thread]
May I further suggest standardising upon the version nomenclature in a long form such that
"Version: v3.2.0" would be written strictly as "Version:3.2.0" (Capitalised with no spaces) rather than "v3.2.0", leaving the latter lowercase as shorthand for forum comments (all without quotation marks).
Cheers
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Just saw this log on PHP 8.2:
--> PHP Deprecated: Creation of dynamic property zca_splitPageResults::$countQuery is deprecated in /Users/scott/Sites/thatsoft_store/includes/classes/zca/zca_split_page_results.php on line 48.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
For ZCA Bootstrap Template - Version: v3.4.0
I think in /includes/templates/bootstrap/templates/tpl_modules_checkout_address_book.php line 52 it must be
Code:
$address_details = (zen_get_zcversion() >= '1.5.8') ? $address['address'] : $addresses->fields;
instead of
Code:
$address_details = (zen_get_zcversion() >= '1.5.8') ? $address['address'] : $address->fields;
otherwise optional addresses are not displayed in Zen Cart 1.5.7
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Please can anyone tell me how I would edit the links in the site map as need to remove a couple as one or two are doubled up and some I dont want there. Have checked docs and developer toolkit.
Thank you.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Look at \includes\templates\bootstrap\templates\tpl_site_map_default.php you will see a series of upper case flags like DEFINE_SHIPPINGINFO_STATUS you cal look these up in ADMIN>tools>developers tool kit which will allow you to change the value of the flags. Additionally, if you want to change the sitemap, this is a file to edit.
if you have copied the template to a different name, replace bootstrap with the name of your template in the path above.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you Mark. Thats removed some of the things I wanted to take out of there.
I had looked in the developers toolkit and the docs section. Just couldn't see it.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Please does anyone know will the flexible footer as can see three different ones work in Zencart with the bootstrap template as they should do what I want.
Thank you
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Bootstrap 3.4.0 with Zen cart V1.5.8 and PHP 7.4.33
I am testing upgrading to 1.5.8 and installed the latest Bootstrap. I noticed that any categories that have sub-categories always shows the define main page information. If the category does not have a sub-category then the define mane page does not appear. I am trying to eliminate the define main page showing when selecting the categories. I use Bootstrap 3.1.1 currently with 1.5.7d and do not have this issue. Just curious if this is a setting I am missing?
Switching to the classic template and I do not have this issue.
http://www.popupparts.com/Backup if you want to see it in action.
Thank you
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I saw the fix in github. I think I am all set.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
n8pbm
Bootstrap 3.4.0 with Zen cart V1.5.8 and PHP 7.4.33
I am testing upgrading to 1.5.8 and installed the latest Bootstrap. I noticed that any categories that have sub-categories always shows the define main page information. If the category does not have a sub-category then the define mane page does not appear. I am trying to eliminate the define main page showing when selecting the categories. I use Bootstrap 3.1.1 currently with 1.5.7d and do not have this issue. Just curious if this is a setting I am missing?
Switching to the classic template and I do not have this issue.
http://www.popupparts.com/Backup if you want to see it in action.
Thank you
I do not know if it is the same solution like in github.
I went to
includes/templates/bootstrap/templates/tpl_index_categories.php
and made the following lines inactive
Code:
//if (DEFINE_MAIN_PAGE_STATUS === '1' || DEFINE_MAIN_PAGE_STATUS === '2') {
?>
<!-- <div id="indexCategories-defineContent" class="defineContent"> -->
<?php
/**
* require the html_define for the index/categories page
*/
// require $define_page;
?>
<!-- </div> -->
<?php
//} else {
?>
<h1 id="indexCategories-pageHeading" class="pageHeading"><?php echo $current_categories_name; ?></h1>
<?php
//}
-
Re: ZCA Bootstrap 4 Template [Support Thread]
@n8pbm Please post a link to the fix in Github so others can benefit from your finding. Thanks!
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Sure. This is the URL to the fix:
https://github.com/lat9/ZCA-Bootstra...4bd86ef847364a
Line 31 to 47 in includes/templates/bootstrap/templates/tpl_index_categories.php
-
3 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, I am looking to put .active in red on the ezpage header bar and on the category names see photos one on a site where there is active on the categories and one without which is mine, in the login page I am successful to put the .active in yellow here is the code
PHP Code:
.nav-tabs .nav-link.active {
color: #fcf501;
background-color: #fff;
border-color: #dee2e6 #dee2e6 #fff;
}
but in the column of the names of the categories I run into a wall. can you help me?
Attachment 20145
Attachment 20146
Attachment 20147
-
Re: ZCA Bootstrap 4 Template [Support Thread]
The categories tab menu adds the class .activeLink to the current link automatically.
Hopefully, you are using the site_specific_styles.php to control all your changes to the template. If not, rename the dist-site_specific_styles.php to site_specific_styles.php and save it to your CSS folder.
Then, for the categories add
Code:
.activeLink {
background-color: #ffffff !important;
color: #fcf501 !important;
border-color: #dee2e6 #dee2e6 #fff !important;
}
Unfortunately, the !important is needed to fully override the stylesheet_colors.css
Please Note: The use of the above colors for background and font will violate accessibility contrast rules. Your font color would have to jump to #807900 to meet the 4.5:1 minimum ratio.
It looks like we will need to add to the github wish list for .activeLink to be added to the ezpages bar. If so, the above code would need to be more specific than just .activeLink if you wanted different colors in different bars.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello dbltoe, thank you for answering me so quickly, your modification
PHP Code:
.activeLink {
background-color: #ffffff !important;
color: #fcf501 !important;
border-color: #dee2e6 #dee2e6 #fff !important;
}
does not work,
I also have another problem if I put the css codes in site_specific_styles.php they have no effect, I had to create another .css file and paste my codes in this one.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Site specific should look something like
Code:
<?php /*
* BOOTSTRAP 3.3.0
*
* Create a file called "site_specific_styles.php" to contain any changes
* to base css provided by this template. Place site-specific content
* between the opening and closing style tags.
*
* Refer to https://github.com/lat9/ZCA-Bootstrap-Template/blob/v300/pages/faqs.md for
* additional information.
*/
?>
<style>
.activeLink {
background-color: #ffffff !important;
color: #fcf501 !important;
border-color: #dee2e6 #dee2e6 #fff !important;
}
</style>
I do find that this is working in 3.3 but the border is not working in 3.4. See testDOTislam786booksDOTcom :dontgetit
Both are using the site specific css with !important
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I think I expressed myself badly about what I want to do, I put you a to a site, if you click on an ezpage you will see that once in the page the name of the page on ezbar remains yellow, also if you click on a category you will see that it remains red once the category is chosen. The code you provided me with changes color if you move the mouse over but it does not remain the color once the page has been chosen.
https://demo.templatemonster.com/demo/43915dothtml
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
I think I expressed myself badly about what I want to do, I put you a to a site, if you click on an ezpage you will see that once in the page the name of the page on ezbar remains yellow, also if you click on a category you will see that it remains red once the category is chosen. The code you provided me with changes color if you move the mouse over but it does not remain the color once the page has been chosen.
https://demo.templatemonster.com/demo/43915dothtml
If you are actually using a templatemonster template, that is probably the reason for the failure. TM templates are not supported in the forum.
You need to contact them to make their template respond to proper CSS.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
No Dbltoe the model is ZCA Bootstrap, I put the monster template link so that you can see what I want to do, I am inspired by this model to modify the ZCA Bootstrap
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
No Dbltoe the model is ZCA Bootstrap, I put the monster template link so that you can see what I want to do, I am inspired by this model to modify the ZCA Bootstrap
You have been telling us what you don't have and giving references to templates not used. PLEASE follow the posting tips and let us know the information asked for.
In this case, the URL of your site is extremely important. If you don't want the world to see just yet, use yoursiteDOTcom to keep it out of the search engines.
Also, use the # above to post lines 27 - 35 of includes/modules/YOUR_TEMPLATE/categories_tabs.php.
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, thank you for your patience, the site is still in the adjustment and translation phase, it is not yet online, that's why I can't give you a url of the site.
PHP Code:
//-bof-zca_bootstrap *** 1 of 1 ***
// $new_style = 'category-top';
$new_style = 'nav-item nav-link m-1 activeLink';
// $categories_tab_current = '<span class="category-subs-selected">' . $categories_tab->fields['categories_name'] . '</span>';
$categories_tab_current = $categories_tab->fields['categories_name'];
} else {
// $new_style = 'category-top';
$new_style = 'nav-item nav-link m-1';
//-eof-zca_bootstrap *** 1 of 1 ***
Attachment 20149
-
Re: ZCA Bootstrap 4 Template [Support Thread]
PHP Code:
//-bof-zca_bootstrap *** 1 of 1 ***
// $new_style = 'category-top';
$new_style = 'nav-item nav-link m-1 activeLink';
// $categories_tab_current = '<span class="category-subs-selected">' . $categories_tab->fields['categories_name'] . '</span>';
$categories_tab_current = $categories_tab->fields['categories_name'];
} else {
// $new_style = 'category-top';
$new_style = 'nav-item nav-link m-1';
//-eof-zca_bootstrap *** 1 of 1 ***
You must have something else going on with a file or lack thereof. The class (.activeLink) is present correctly in your site as it is in my un-modded test site. The code I gave you earlier works just fine on my test site.
The question is... What on your sited is different from an out-of-the-box load? Also, why wait for the active to work before launch? It would not stop function but you cetainly can't make money in development.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
+1. Push it live as soon as it works - worry about the fine tuning later.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
You are right, as long as it is not online we lose money, but I am convinced that the templates are the key to the success of an ecommerce site, that's why I invest more time on the beauty of the site and the functionality.
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, how to adjust the width of the right columns
and on the left, especially the one on the right in the product page which is really too wide, see attached image
Attachment 20152
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, I would like to know how to change color example h1 only on the product page, the shopping cart page, I know how to do it for the home page but not for the other pages.
PHP Code:
<?php
// -----
// Set a different color for the h1 tag only on the home page.
//
if ($this_is_home_page) {
?>
<style>
h1 {color: red;}
</style>
<?php
}
// -----
// Load an additional stylesheet.
//
?>
-
Re: ZCA Bootstrap 4 Template [Support Thread]
The product page and shopping cart page have their own css files you can set up.
includes/templates/bootstrap/css/shopping_cart.css
includes/templates/bootstrap/css/product_info.css
-
Re: ZCA Bootstrap 4 Template [Support Thread]
By the way what I want to know is how to replace if ($this_is_home_page) with the name of the page example if ($this_is_product_info_page) does not work as well as ($this_is_shopping_cart_page) does not work. it's not to complicate my life but, it will allow me to do a lot of things if I know the exact name of the page to put on if ($this_is_home_page).
-
Re: ZCA Bootstrap 4 Template [Support Thread]
$this_is_home_page is a special case; it's not done for other pages.
If you want to check the name of the current page you can do so using the variable $current_page_base.
if ($current_page_base == 'shopping_cart') {
...
}
if ($current_page_base == 'product_info') {
...
}
but if all you're doing is adding page-specific CSS, you'd be better off doing it the way I suggested; that way you can upgrade your template at any time and not lose these customizations.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Exact it is so as not to touch the basic model. Thank you, it worked for me
HTML Code:
if ($current_page_base == 'product_info') { +
, if now I want to put 2 or more pages for example
HTML Code:
if ($current_page_base == 'product_info PLUS another page, ') {
-
Re: ZCA Bootstrap 4 Template [Support Thread]
The PHP syntax for this would be
if ($current_page_base == 'product_info' || $current_page_base == 'some-other-page' ) {
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you very much, it worked for me.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
Hello, I am looking to put .active in red on the ezpage header bar and on the category names see photos one on a site where there is active on the categories and one without which is mine, in the login page I am successful to put the .active in yellow here is the code
PHP Code:
.nav-tabs .nav-link.active {
color: #fcf501;
background-color: #fff;
border-color: #dee2e6 #dee2e6 #fff;
}
but in the column of the names of the categories I run into a wall. can you help me?
Attachment 20145
Attachment 20146
Attachment 20147
Perhaps you have an a:active defined in one of your css files.
https://www.geeksforgeeks.org/differ...-active-links/
why ZCA-bs decided to go with a separate class .activelink is beyond my understanding.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Looks like an override of
includes/languages/english/lang.order_status.php
will be needed for PHP 8.1
[13-Nov-2022 13:56:15 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_LOOKUP_INSTRUCTIONS" in /homepages/19/client/htdocs/estore/includes/templates/bootstrap/templates/tpl_order_status_default.php:177
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
Looks like an override of
includes/languages/english/lang.order_status.php
will be needed for PHP 8.1
[13-Nov-2022 13:56:15 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "TEXT_LOOKUP_INSTRUCTIONS" in /homepages/19/client/htdocs/estore/includes/templates/bootstrap/templates/tpl_order_status_default.php:177
Actually, that looks like a bug in the zc158 language loader. I thought (keyword) that deference should be given to a legacy-named language file, although I'm seeing now that OPC (since the order_status page was, for previous Zen Cart versions, newly added) distributes its version of /english/order_status.php in the main language directory. Sigh.
To correct, for now, simply copy /includes/languages/english/order_status.php to /includes/languages/english/bootstrap/order_status.php (replacing bootstrap with your template clone's name).
-
Re: ZCA Bootstrap 4 Template [Support Thread]
The docs don't address search order and override behavior well for the new language files; I will work on that.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, No I don't have a:active in my .css files.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Is there a way to remove the "Back to top" Button"?
I searched but did not find anything.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Put this in your file site_specific_styles.php
#back-to-top.show {
display: none;
}
-
Re: ZCA Bootstrap 4 Template [Support Thread]
One of the few times you will see me suggest the code versus the CSS.
Doing what you are proposing will probably break accessibility.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello, what would be the best way to proceed so as not to break the accessibility.
Merci
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi
Running Zencart 1.5.8 with Bootstrap
I am getting this Fatal error message any ideas anyone, Thanks..
[21-Nov-2022 09:00:03 UTC] Request URI: /shop/index.php?main_page=specials, IP address: 68.183.70.118
#1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:667]
#2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:634]
#3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:275]
#4 queryFactory->Execute() called at [/includes/classes/zca/zca_split_page_results.php:102]
#5 zca_splitPageResults->__construct() called at [/includes/modules/bootstrap/product_listing.php:37]
#6 require(/includes/modules/bootstrap/product_listing.php) called at [/includes/templates/bootstrap/templates/tpl_modules_product_listing.php:12]
#7 require(/includes/templates/bootstrap/templates/tpl_modules_product_listing.php) called at [/includes/templates/bootstrap/templates/tpl_specials_default.php:24]
#8 require(/includes/templates/bootstrap/templates/tpl_specials_default.php) called at [/includes/modules/pages/specials/main_template_vars.php:59]
#9 require(/includes/modules/pages/specials/main_template_vars.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:202]
#10 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Fatal error: 1109:Unknown table 'p' in field list :: SELECT COUNT(p.products_id) as total ==> (as called by) /includes/classes/zca/zca_split_page_results.php on line 102 <== in /includes/classes/db/mysql/query_factory.php on line 667.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
It may be that the query in includes/modules/pages/specials/header_php_specials_zca_bootstrap.php has been altered
Lines 29-34 should look like this
Code:
$listing_sql =
"SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_model,
p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id,
p.manufacturers_id, m.manufacturers_name
FROM (" . TABLE_PRODUCTS . " p
LEFT JOIN " . TABLE_SPECIALS . " s
ON p.products_id = s.products_id
LEFT JOIN " . TABLE_MANUFACTURERS . " m
ON m.manufacturers_id = p.manufacturers_id
LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd
ON p.products_id = pd.products_id
AND pd.language_id = :languageID
)
WHERE p.products_status = 1
AND s.status = 1
ORDER BY s.specials_date_added DESC";
note the line
Code:
FROM (" . TABLE_PRODUCTS . " p
defines an alias for products as p
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Indeed, be sure you have the latest version of the Bootstrap template.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
brittainmark
It may be that the query in includes/modules/pages/specials/header_php_specials_zca_bootstrap.php has been altered
Lines 29-34 should look like this
Code:
$listing_sql =
"SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_model,
p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id,
p.manufacturers_id, m.manufacturers_name
FROM (" . TABLE_PRODUCTS . " p
LEFT JOIN " . TABLE_SPECIALS . " s
ON p.products_id = s.products_id
LEFT JOIN " . TABLE_MANUFACTURERS . " m
ON m.manufacturers_id = p.manufacturers_id
LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd
ON p.products_id = pd.products_id
AND pd.language_id = :languageID
)
WHERE p.products_status = 1
AND s.status = 1
ORDER BY s.specials_date_added DESC";
note the line
Code:
FROM (" . TABLE_PRODUCTS . " p
defines an alias for products as p
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
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
Indeed, be sure you have the latest version of the Bootstrap template.
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
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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!
-
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
}
-
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
A non product page like contact_us.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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.
-
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.
-
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
-
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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?
-
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
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you Lat9, I edited my signature
-
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
HTML Code:
[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
HTML Code:
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
-
Re: ZCA Bootstrap 4 Template [Support Thread]
@haredo, what version of the Bootstrap template?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Bootstrap 3.4.0 for zencart 157 and 158
latest from github
-
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:
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
Still no solution to eliminate the search box on the left column?
Attachment 20165
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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.
-
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Did you also go to Admin >> Bootstrap Template Settings and set Enable AJAX Search? to True?
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
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?
Attachment 20166
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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:
Code:
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
With the Lat9 update everything works now,
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
With the Lat9 update everything works now,
Thanks for the update, @diamond1. That change is currently 'booked' for the next Zen Cart release.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Look at the comment block in includes/modules/bootstrap/product_listing.php around line 182. It shows you how to do it.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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:
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Great news! Merry Christmas, @lat9!
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
Great news! Merry Christmas, @lat9!
Not my holiday, but I appreciate the sentiment.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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 ?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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: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.
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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: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.
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".
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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. Onlysideboxes/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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
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. Onlysideboxes/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?