-
Re: ZCA Bootstrap Template
Hi, before I start tearing my hair out on this one minor detail, is this normal? Referring to the blank cell between QTY and Product Name.
https://i.imgur.com/uqt1en9.png
I noticed in the code there is still a reference to a checkbox to delete but noticed that it doesn't even pop up in Classic Contemporary Green?
Using ZCA 3.6.1 on ZenCart 1.5.8 on PHP 8.2.
-
Re: ZCA Bootstrap Template
Welcome to the forum. You will get quicker responses if you post your query in the support thread for the particular product/service. In this case, https://www.zen-cart.com/showthread....strap-Template.
Also, the answers to the posting tips really help. Things like versions, PHP, mods, customizations, etc are bits of information that speed up the process.
Meanwhile, the reset (circling arrows) that shows up under your quantity should be in the blank cell you are concerned about. Without seeing the site, I can't really guess as to why.
Unless your site is on a local setting, you can provide the link as yoursiteDOTcom and we can take a look.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
retched
Hi, before I start tearing my hair out on this one minor detail, is this normal? Referring to the blank cell between QTY and Product Name.
https://i.imgur.com/uqt1en9.png
I noticed in the code there is still a reference to a checkbox to delete but noticed that it doesn't even pop up in Classic Contemporary Green?
Using ZCA 3.6.1 on ZenCart 1.5.8 on PHP 8.2.
I'm not sure what the question here is, but if you're using the Bootstrap template what does that have to do with the "Classic Contemporary Green" one? Templates are a one-or-the-other choice.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
I'm not sure what the question here is, but if you're using the Bootstrap template what does that have to do with the "Classic Contemporary Green" one? Templates are a one-or-the-other choice.
I reverted back to using Classic Contemporary Green to compare what's different between ZCA Bootstrap 3.6.1 (which is the one that was installed, not sure if that was clear) and the Classic Contemporary (which is pre-installed with ZC). Was generally trying to remove the blank space that was present.
I'm 90% sure I found the answer to my original inquiry on my own though after your original post. But thanks anyway.
This installation was done locally. So there is no address for me to share unfortunately.
-
Re: ZCA Bootstrap Template
I want to turn off the "Write Review" below the Product Description, /index.php?main_page=product_info&cPath=2&products_id=2
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
charmlt
I want to turn off the "Write Review" below the Product Description, /index.php?main_page=product_info&cPath=2&products_id=2
That's a "base" Zen Cart configuration setting in the site's admin: Catalog :: Product Types, then click the Layout Settings button for the products' type and set Show Product Reviews Button to "False/0".
-
Re: ZCA Bootstrap Template
I would like to add a tooltip to the font awesome bars icon in the header. I was successful by changing the code in tpl_header.php line 29 to the following:
Code:
<i class="fas fa-bars" data-toggle="tooltip" title="my tooltip text"></i>
But the tooltip also appears when hovering over the bars on the offcanvas menu. I do not want to show the tooltip there or change the tooltip text. So how and where can I accomplish this?
Thank you in advance.
Dave
zc158a, ZCA bootstrap 3.6.1
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Dave224
I would like to add a tooltip to the font awesome bars icon in the header. I was successful by changing the code in tpl_header.php line 29 to the following:
Code:
<i class="fas fa-bars" data-toggle="tooltip" title="my tooltip text"></i>
But the tooltip also appears when hovering over the bars on the offcanvas menu. I do not want to show the tooltip there or change the tooltip text. So how and where can I accomplish this?
Thank you in advance.
Dave
zc158a, ZCA bootstrap 3.6.1
That feels like a "job" for some jQuery/javascript: https://www.w3schools.com/bootstrap4...js_tooltip.asp
-
Re: ZCA Bootstrap Template
v3.6.2 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:
#274: Changed rating stars' default color/background-color.
#290: New notifications (from zc200) for the account_history_info page's template.
#296: UI improvements to the admin's ZCA Bootstrap Colors tool; default color now included in exported .csv.
#297: product_reviews_write page's template, variable name changed for zc200.
#298: Remove unwanted HTML tags from zca_bootstrap log for breadcrumbs' separator.
#299: id= attribute wasn't being added to the "Submit" button on the checkout_one_confirmation page.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Thank you Lat9! Reading the link got me to initialize the tooltip correctly which made a nicer looking tooltip. For those interested, some more googling and experiments resulted in adding the following code to jscript_zca_bootstrap.js inside the ready function to also toggle the tooltip text:
Code:
$('[data-toggle="tooltip"]').tooltip(); // edit to initialize tooltips
$('.navbar-toggler').on('click', function() { // edit to toggle tooltip text
toggleToolTipTitle.call(this, "my oncanvas tooltip text", "my offcanvas tooltip text");
});
function toggleToolTipTitle(titleOne, titleTwo) {
var lastTitle = $(".navbar-toggler i").attr("data-original-title");
$(".navbar-toggler i").attr('data-original-title',lastTitle === titleOne ? titleTwo : titleOne);
$(".navbar-toggler i").tooltip("show");
}
The code might be simplified but it works for me. Thanks again! :D
Dave
zc158a, zca-bootstrap-template 3.6.1
-
Re: ZCA Bootstrap Template
Does anyone know why the right column isn't visible on my install?
There are definitely sideboxes enabled and with the "Right" column as the target. The columns are balanced at 3, 6, and 3 for a total of 12. And even using the "Reset Layout" function doesn't seem to be working.
I'm using ZC 1.5.8a with version 3.6.2 of Boostrap.
EDIT: Scratch the above.
Setting I was looking for was ZenCart's Global Configuration to enable the Right Column.
-
Re: ZCA Bootstrap Template
> Setting I was looking for was ZenCart's Global Configuration to enable the Right Column.
Look at Configuration > Layout Settings:
Column Width - Left Boxes
Column Left Status - Global
Column Width - Left
-
Re: ZCA Bootstrap 4 Template [Support Thread]
New feature request: dynamic determination of categories per row
https://github.com/lat9/ZCA-Bootstra...ate/issues/305
-
Re: ZCA Bootstrap Template
I am redoing my site and what a great template this is. You guys have done an awesome job with this.
I do have a question.
I have the Bootstrap Additional Image Carousel enabled. When this happens there is a button that is created for the additional images (Works as expected..)
My issue is when there are additional images, we now have a link for the primary image and a link to the additional images.
Is there a way we can remove the primary image link when additional images are shown.
It seems confusing to have both links.
Plus, the additional image link already has the primary image in it.
-
Re: ZCA Bootstrap Template
It's easily removed from view by adding a bit of CSS to your template clone's /css/site_specific_styles.php:
#productMainImage > a > .imgLink { display: none; }
-
2 Attachment(s)
Re: ZCA Bootstrap Template
Having trouble finding what CSS controls these two boxes. We have gone through literally every box in the Bootstrap color chooser, and these remain the same. Its the box that displays products in the category view, as well as the boxes behind price, stock and the box that contains the add to cart in product page. Help? ZC Version v1.5.8a, Bootstrap version 3.6.0
Attachment 20472
Attachment 20473
-
Re: ZCA Bootstrap Template
I tried the css below but there was no result.
I can still click on primary image if there are additional images included. Did i misunderstand something....
Code:
#productMainImage > a > .imgLink { display: none; }
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
chadlly2003
I am redoing my site and what a great template this is. You guys have done an awesome job with this.
I do have a question.
I have the Bootstrap Additional Image Carousel enabled. When this happens there is a button that is created for the additional images (Works as expected..)
My issue is when there are additional images, we now have a link for the primary image and a link to the additional images.
Is there a way we can remove the primary image link when additional images are shown.
It seems confusing to have both links.
Plus, the additional image link already has the primary image in it.
I think I was able to do what you want by editing the following file:
/includes/templates/bootstrap/templates/tpl_modules_main_product_image.php
Remove line #21 which says:
<span class="imgLink"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span>
That will remove the "Larger Image" Link between the main image and the additional images button.
-
Re: ZCA Bootstrap Template
Is it possible to upgrade Bootstrap 4 to version 5?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
OJ_SIMON
Is it possible to upgrade Bootstrap 4 to version 5?
Anything (from a code perspective) is possible, updating Bootstrap from 4 to 5 as well as Font Awesome from 5 to 6 is on my list.
-
Re: ZCA Bootstrap Template
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.
-
Re: ZCA Bootstrap Template
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?
-
Re: ZCA Bootstrap Template
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.
-
2 Attachment(s)
Re: ZCA Bootstrap Template
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
-
Re: ZCA Bootstrap Template
@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
Code:
https://yoursite.com/admin/index.php?cmd=configuration&gID=49
What I'm really interested in is the value after &gID.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
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:
Code:
.normalprice { float: right; }
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Looks like a small addition to the site's /includes/templates/your-bootstrap/css/site_specific_styles.php will do the trick, adding:
Code:
.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.
-
Re: ZCA Bootstrap Template
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.
-
Re: ZCA Bootstrap Template
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:
Code:
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:
Code:
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-Bootstra...ate/issues/314
-
Re: ZCA Bootstrap Template
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.
-
Re: ZCA Bootstrap Template
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.
-
Re: ZCA Bootstrap Template
Fantastic news! Thank you.
I will get the documentation around #305 done asap.
-
Re: ZCA Bootstrap Template
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
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
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.
-
Re: ZCA Bootstrap Template
Thanks Cindy for your quick answer, I will install in that order. :smile:
-
Re: ZCA Bootstrap Template
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?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
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/
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
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/
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
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.
Code:
--> 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
-
Re: ZCA Bootstrap Template
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
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
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?
The base bootstrap template provides no overrides to the html_includes sub-directory, so that directory is not included in the template's distribution. For your clone of the bootstrap template, you'll need to create /includes/languages/english/html_includes/YOUR_BOOTSTRAP/ and copy/create any additional content needed.
-
Re: ZCA Bootstrap Template
Thank you Cindy, that's clear.:smile: I will change only my cloned version and keep the base version as distributed.
-
Re: ZCA Bootstrap Template
Hi there
I need some help with my template please.
What i would like to do is to change the main page image thumbnail sizes for the products to larger thumbnail sizes.
I have tried doing this through Configuration/Images but for some reason it does not allow me to do this.
I am using the latest version of Bootstrap Template
Any help really appreciated
Thank you
-
Re: ZCA Bootstrap Template
Answers to the posting tip questions can really help us to help you.
In this case, we could use a look at your site and specifically which images you are trying to change.
-
Re: ZCA Bootstrap Template
The images that I am trying to change are in the New products Cata gory and featured category both on the main page of my shop.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
amebb
The images that I am trying to change are in the New products Cata gory and featured category both on the main page of my shop.
Those images are sized using Configuration :: Images :: Small Image Width (and Height).
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Those images are sized using Configuration :: Images :: Small Image Width (and Height).
... currently. Unfortunately, the Featured and New Products centerboxes are both using the above settings instead of the new/featured ones.
-
Re: ZCA Bootstrap Template
Zencart 1.5.8
ZCA-Bootstrap-Template-3.6.1
I am doing some test orders and when i go to the order history page i get an error
error: PHP Fatal error: Uncaught Error: Undefined constant "QUANTITY_SUFFIX"
path: includes\templates\bootstrap\templates\tpl_account_history_info_default.php on line 42.
Code:
<td class="accountQuantityDisplay"><?php echo $order->products[$i]['qty'] . QUANTITY_SUFFIX; ?></td>
If someone could assist be much appreciated
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
chadlly2003
Zencart 1.5.8
ZCA-Bootstrap-Template-3.6.1
I am doing some test orders and when i go to the order history page i get an error
error: PHP Fatal error: Uncaught Error: Undefined constant "QUANTITY_SUFFIX"
path: includes\templates\bootstrap\templates\tpl_account_history_info_default.php on line 42.
Code:
<td class="accountQuantityDisplay"><?php echo $order->products[$i]['qty'] . QUANTITY_SUFFIX; ?></td>
If someone could assist be much appreciated
This just means that there is no definition for QUANTITY_SUFFIX in your language flles. https://docs.zen-cart.com/user/local...age_constants/
I would suggest that you search through an unaltered copy of the ZC and template files to find where that definition should be.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
chadlly2003
Zencart 1.5.8
ZCA-Bootstrap-Template-3.6.1
I am doing some test orders and when i go to the order history page i get an error
error: PHP Fatal error: Uncaught Error: Undefined constant "QUANTITY_SUFFIX"
path: includes\templates\bootstrap\templates\tpl_account_history_info_default.php on line 42.
Code:
<td class="accountQuantityDisplay"><?php echo $order->products[$i]['qty'] . QUANTITY_SUFFIX; ?></td>
If someone could assist be much appreciated
I'll suggest that you've somehow got a down-level version of tpl_account_history_default.php, since line 42 of the as-distributed version in v3.6.1 reads
Noting that there were some language constants that were "renamed" in zc158; see this Bootstrap template issue for additional information: https://github.com/lat9/ZCA-Bootstra...ate/issues/134
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Those images are sized using Configuration :: Images :: Small Image Width (and Height).
Thank you for your reply.
I have managed to sort the image sizing on the main page of my website. But, how do i change the image sizing in the product description?
At the moment my product images are small
Thank you
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
amebb
Thank you for your reply.
I have managed to sort the image sizing on the main page of my website. But, how do i change the image sizing in the product description?
At the moment my product images are small
Thank you
Image sizing in products' description is based on the HTML present in those descriptions. If you want an image sized to a certain dimension, you'll need to update the descriptions to specify the height and width parameters for any <img> tags.
-
Re: ZCA Bootstrap Template
Hi all,
I'm still working on implementing an updated website using bootstrap template. I recently updated my BS version from 3.6 to 3.6.3 by updating the changed files in the readme docs. Using ZC 1.5.8a. In testing my site, I'm coming across a couple of minor issues I'm hoping someone can help me address:
1) In small screen media mode <576px the category column is limited to 32.5%. I think this is because I have columns per row set to 3. When I change to 1 the mobile display is fine, but the desktop display has more columns than I want. How can I have 1 column in mobile mode and 3 columns in desktop mode but still remain fluid based on screen width?
2) The back-to-top button continues to appear on top of other buttons, despite the fix that was supposed to be added to 3.6.3? Couldn't find where to disable the button or adjust settings. It's mainly affecting the checkout button and confirm order buttons. Maybe I missed something when updating the template?
Thank you in advance!
-
Re: ZCA Bootstrap Template
1) Did you try changing the columns-per-row to 0 (fluid)? If that doesn't do what you want, v3.6.3 adds a 'soft' configuration setting:
Code:
// -----
// Starting with v3.6.3, a categories' fluid layout can be identified. If predefined (like
// in an /extra_datafiles .php module), that override is used.
//
if ($category_row_layout_style === 'fluid') {
$grid_cards_classes = 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3';
if (!isset($grid_category_classes_matrix)) {
// this array is intentionally in reverse order, with largest index first
$grid_category_classes_matrix = [
'12' => 'row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-6',
'10' => 'row-cols-1 row-cols-md-2 row-cols-lg-4 row-cols-xl-5',
'9' => 'row-cols-1 row-cols-md-3 row-cols-lg-4 row-cols-xl-5',
'8' => 'row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
'6' => 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3',
];
}
2) There's a 'soft' setting (see dist.site-specific-bootstrap-settings.php) that totally disabled the back-to-top button. If you still want it to show, but not overlay "important" buttons, here's what I added to my /css/site_specific_styles.php so it overlays the footer:
Code:
#back-to-top {
bottom: 2.5vh;
}
-
Re: ZCA Bootstrap Template
Thanks, Lat! I have a 3/9/0 column setup with the template, so I changed the 4,5 and 6 on the configuration all to 3 and now it displays correctly on the smaller screens and has a max of 3 columns on larger screens. Is there any way to get the categories to fill the width of the center box equally on the larger screens though? For example, when I have column count set at 3 and there is a row with only 2 categories, they auto adjust to 50%. When I change the column count to 0 for fluid, now each category only takes up 33%, even if there are only 2 categories on a row. Just a visual preference, not a dealbreaker, but wanted to check.
2) I added the code you provided to the css (as well as my separate css file called by the site-specific version) and no change on the back to top button--it still overlays checkout and confirm order. Anything else I can look at?
-
Re: ZCA Bootstrap Template
1) That's the way that Bootstrap card-deck elements work.
2) A link to the site?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
1) That's the way that Bootstrap card-deck elements work.
2) A link to the site?
Try this--hopefully it works. Still a work in progress: https://www.thecoinauthority.com/ind...=index&cPath=1
Thanks again!
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Are you using the shipping-estimator on the shopping-cart page or as a modal pop-up? The 'standard' behavior of the template (like the rest of the Zen Cart templates) is to include some javascript/jQuery element to hide the "State" field when a pulldown is in use.
For Bootstrap, that's in the bootstrap templates jscript/jscript_addr_pulldowns_zca_bootstrap.php file.
Are there any console errors (see via the browser's F12/Inspect tab)? If so, those might identify the source of the issue. If the HTML isn't valid, the jQuery addition sometimes will not happen properly.
I was having this same issue--I think the code is missing an else statement in the tpl_modules_shipping_estimator.php file. Here's what I added and for now seems to be working as intended:
Code:
<?php
if ($flag_show_pulldown_states === true) {
?>
<label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
<?php echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $state_zone_id, 'id="stateZone"'); ?>
<div class="p-2" id="stBreak"></div>
<?php
} else {
?>
<label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
<?php echo zen_draw_input_field('state', $selectedState, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"'); ?>
<div class="p-2"></div>
<?php
}
if (CART_SHIPPING_METHOD_ZIP_REQUIRED === 'true') {
-
Re: ZCA Bootstrap Template
Nope, that will make it so that any countries that don't have zones (e.g. France) won't have an entry for their province.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Nope, that will make it so that any countries that don't have zones (e.g. France) won't have an entry for their province.
Got it, sorry if I confused anyone. Not sure if it is related or not, but it doesn't look like the State/Province drop down menus auto-update when a new country is selected in the estimator. Is it supposed to?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
mcqueeneycoins
Got it, sorry if I confused anyone. Not sure if it is related or not, but it doesn't look like the State/Province drop down menus auto-update when a new country is selected in the estimator. Is it supposed to?
There are apparently multiple issues when the Shipping Estimator is displayed as a "Button" on the shopping-cart page; for the time being, changing Configuration :: Shipping/Packaging :: Shipping Estimator Display Settings for Shopping Cart to '2' (Display as Listing on Shopping Cart Page) will work-around the issue.
-
Re: ZCA Bootstrap Template
@lat9, possibly another bug found on the checkout_success page? "My Orders" button showing in the log off card box, the "My Account" box has a customer service text/button, and Customer Service box duplicates My Account content. See red below:
Code:
<!--bof log off card-->
<div id="logOff-card" class="card">
<div id="logOff-card-body" class="card-body">
<?php
if (isset($_SESSION['customer_guest_id'])) {
echo TEXT_CHECKOUT_LOGOFF_GUEST;
} elseif (isset($_SESSION['customer_id'])) {
echo TEXT_CHECKOUT_LOGOFF_CUSTOMER;
}
?>
<div id="logOff-btn-toolbar" class="btn-toolbar justify-content-between mt-3" role="toolbar">
<?php echo zca_button_link(zen_href_link(FILENAME_ACCOUNT, '', 'SSL'), BUTTON_MY_ORDERS_TEXT, 'button_my_orders', 'id="linkMyAccount"'); ?>
<?php echo zca_button_link(zen_href_link(FILENAME_LOGOFF, '', 'SSL'), BUTTON_LOG_OFF_ALT, 'button_logoff', 'id="linkLogoff"'); ?>
</div>
</div>
</div>
<!--eof log off card-->
<!--bof my account card-->
<div id="myAccount-card" class="card">
<div id="myAccount-card-body" class="card-body">
<?php echo TEXT_CONTACT_STORE_OWNER;?>
<div id="cust-btn-toolbar" class="btn-toolbar justify-content-center mt-3" role="toolbar">
<?php echo zca_button_link(zen_href_link(FILENAME_CONTACT_US, '', 'SSL'), BUTTON_CONTACT_US_TEXT, 'button_contact_us'); ?>
</div>
</div>
</div>
<!--eof my account card-->
</div>
<!--eof card deck-->
<!--bof customer service card-->
<div id="customerService-card" class="card mb-3">
<div id="customerService-card-body" class="card-body p-3">
<?php echo TEXT_CONTACT_STORE_OWNER;?>
</div>
</div>
<!--eof customer service card-->
Should the My Account card box be calling for the TEXT_SEE_ORDERS language?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
mcqueeneycoins
@lat9, possibly another bug found on the checkout_success page? "My Orders" button showing in the log off card box, the "My Account" box has a customer service text/button, and Customer Service box duplicates My Account content. See red below:
Code:
<!--bof log off card-->
<div id="logOff-card" class="card">
<div id="logOff-card-body" class="card-body">
<?php
if (isset($_SESSION['customer_guest_id'])) {
echo TEXT_CHECKOUT_LOGOFF_GUEST;
} elseif (isset($_SESSION['customer_id'])) {
echo TEXT_CHECKOUT_LOGOFF_CUSTOMER;
}
?>
<div id="logOff-btn-toolbar" class="btn-toolbar justify-content-between mt-3" role="toolbar">
<?php echo zca_button_link(zen_href_link(FILENAME_ACCOUNT, '', 'SSL'), BUTTON_MY_ORDERS_TEXT, 'button_my_orders', 'id="linkMyAccount"'); ?>
<?php echo zca_button_link(zen_href_link(FILENAME_LOGOFF, '', 'SSL'), BUTTON_LOG_OFF_ALT, 'button_logoff', 'id="linkLogoff"'); ?>
</div>
</div>
</div>
<!--eof log off card-->
<!--bof my account card-->
<div id="myAccount-card" class="card">
<div id="myAccount-card-body" class="card-body">
<?php echo TEXT_CONTACT_STORE_OWNER;?>
<div id="cust-btn-toolbar" class="btn-toolbar justify-content-center mt-3" role="toolbar">
<?php echo zca_button_link(zen_href_link(FILENAME_CONTACT_US, '', 'SSL'), BUTTON_CONTACT_US_TEXT, 'button_contact_us'); ?>
</div>
</div>
</div>
<!--eof my account card-->
</div>
<!--eof card deck-->
<!--bof customer service card-->
<div id="customerService-card" class="card mb-3">
<div id="customerService-card-body" class="card-body p-3">
<?php echo TEXT_CONTACT_STORE_OWNER;?>
</div>
</div>
<!--eof customer service card-->
Should the My Account card box be calling for the TEXT_SEE_ORDERS language?
Yep, I saw that when I updated my site to use the template (the duplication). I'll be removing the following section from /bootstrap/templates/tpl_checkout_success_default.php for the next release:
Code:
<!--bof customer service card-->
<div id="customerService-card" class="card mb-3">
<div id="customerService-card-body" class="card-body p-3">
<?php echo TEXT_CONTACT_STORE_OWNER;?>
</div>
</div>
<!--eof customer service card-->
-
Re: ZCA Bootstrap Template
@lat9, sorry to be a pain, but have a new issue I could use some help with--I'm assuming it's something I did, but maybe you can identify the root cause. On shopping cart page, I combined the update button and delete buttons to be within the same div/column. Pretty much a straight cut and paste of the code which I initiated because the update icon was disappearing completely on smaller screens with the original bootstrap code (I think). However, the issue is the "update" icon actually deletes the item. More specifically, if there is one item in the cart, it deletes that item. If there are multiple items in the cart, it deletes all but the first item and changes the quantity for the wrong item (e.g. change quantity on item #3 to 5, code deletes item #2 and #3 and changes quantity of item #1 to 5).
Code:
<tr>
<td class="qtyCell text-center pb-1">
<?php
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . ' ' . $product['flagStockCheck'] . ' ' . $product['showMinUnits'];
} else {
echo $product['quantityField'] . ' ' . $product['flagStockCheck'] . ' ' . $product['showMinUnits'];
}
?>
<div class="d-sm-none mt-2">
<?php echo (!empty($product['buttonUpdate'])) ? $product['buttonUpdate'] : ''; ?>
<?php
if ($product['buttonDelete']) {
?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>" class="btn btn-sm" aria-label="<?php echo ICON_TRASH_ALT; ?>" title="<?php echo ICON_TRASH_ALT; ?>"><i aria-hidden="true" class="fas fa-sm fa-trash-alt"></i></a>
<?php
}
if ($product['checkBoxDelete'] ) {
$checkbox_field = zen_draw_checkbox_field('cart_delete[]', $product['id'], false, 'id="del-r-' . $product['id'] . '"');
$checkbox_field = str_replace('custom-control-input', 'form-check-input', $checkbox_field);
?>
<div class="form-check mt-1">
<?php echo $checkbox_field; ?>
<label class="form-check-label sr-only" for="del-r-<?php echo $product['id']; ?>"><?php echo ARIA_DELETE_ITEM_FROM_CART; ?></label>
</div>
<?php
}
?>
</div>
</td>
<td class="qtyUpdateCell text-center align-middle d-none d-sm-table-cell"><?php echo (!empty($product['buttonUpdate'])) ? $product['buttonUpdate'] : ''; ?>
<?php
if ($product['buttonDelete']) {
?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>" class="btn btn-sm" aria-label="<?php echo ICON_TRASH_ALT; ?>" title="<?php echo ICON_TRASH_ALT; ?>"><i aria-hidden="true" class="fas fa-sm fa-trash-alt"></i></a>
<?php
}
if ($product['checkBoxDelete'] ) {
$checkbox_field = zen_draw_checkbox_field('cart_delete[]', $product['id'], false, 'id="del-' . $product['id'] . '"');
$checkbox_field = str_replace('custom-control-input', 'form-check-input', $checkbox_field);
?>
<div class="form-check mt-1">
<?php echo $checkbox_field; ?>
<label class="form-check-label sr-only" for="del-<?php echo $product['id']; ?>"><?php echo ARIA_DELETE_ITEM_FROM_CART; ?></label>
</div>
<?php
}
?>
</td>
<td class="productsCell">
<a href="<?php echo $product['linkProductsName']; ?>">
<span class="d-none d-sm-block float-left mr-3"><?php echo $product['productsImage']; ?></span>
<?php echo $product['productsName'] . ' ' . $product['flagStockCheck']; ?>
</a>
<?php
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
?>
<div class="productsCell-attributes">
<ul>
<?php
foreach ($product['attributes'] as $option => $value) {
?>
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
<?php
}
?>
</ul>
</div>
<?php
}
?>
</td>
<td class="priceCell text-right"><?php echo $product['productsPriceEach']; ?></td>
<td class="totalsCell text-right"><?php echo $product['productsPrice']; ?></td>
<!--changed price text to right align, hiding column, combined with update <td class="removeCell text-center d-none d-sm-table-cell">
</td> -->
</tr>
-
Re: ZCA Bootstrap Template
Disregard my last post--I managed to fix it. Just reinstalled the original code and redid my modifications. Must have been missing a closing tag or something somewhere.
-
Re: ZCA Bootstrap Template
Working on local XAMPP.
zencart-1.5.8a on PHP v8.1
Bootstrap 3.6.3
OPC 2.4.6 (2023-08-19)
These warnings received editing / creating customer account:
Editing customer: (ACCOUNT_FAX_NUMBER is set to false)
--> PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in ...\zc158a_2\admin\customers.php on line 774.
Customer creating account:
--> PHP Warning: Undefined variable $fax in ...\zc158a_2\includes\modules\pages\create_account\header_php_create_account_reg ister.php on line 474.
Any suggestions?
TIA,
jpda
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
jpda
Working on local XAMPP.
zencart-1.5.8a on PHP v8.1
Bootstrap 3.6.3
OPC 2.4.6 (2023-08-19)
These warnings received editing / creating customer account:
Editing customer: (ACCOUNT_FAX_NUMBER is set to false)
--> PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in ...\zc158a_2\admin\customers.php on line 774.
Customer creating account:
--> PHP Warning: Undefined variable $fax in ...\zc158a_2\includes\modules\pages\create_account\header_php_create_account_reg ister.php on line 474.
Any suggestions?
TIA,
jpda
Neither are associated with the template. I'd need to check on the admin issue (most likely base Zen Cart). For the customer creating account, that's a known OPC issue, staged for correct in the next release (v2.5.0): https://github.com/lat9/one_page_checkout/issues/386
-
Re: ZCA Bootstrap Template
@lat9
Thanks for replying so fast!:smile:
Where should I have posted the first issue?
Quote:
Editing customer: (ACCOUNT_FAX_NUMBER is set to false)
--> PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in ...\zc158a_2\admin\customers.php on line 774.
jpda
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
jpda
@lat9
Thanks for replying so fast!:smile:
Where should I have posted the first issue?
jpda
Not sure, but lines 772 through 780 of customers.php have changed since zc158a:
Code:
echo zen_draw_input_field(
'entry_suburb',
htmlspecialchars($cInfo->suburb, ENT_COMPAT, CHARSET, true),
zen_set_field_length(
TABLE_ADDRESS_BOOK,
'entry_suburb',
50
) . ' class="form-control" id="entry_suburb"'
); ?>
to lines 782 through 790 in zc200-beta1:
Code:
echo zen_draw_input_field(
'entry_suburb',
htmlspecialchars((string)$cInfo->suburb, ENT_COMPAT, CHARSET, true),
zen_set_field_length(
TABLE_ADDRESS_BOOK,
'entry_suburb',
50
) . ' class="form-control" id="entry_suburb"'
); ?>
-
Re: ZCA Bootstrap Template
@lat9
Thanks again! Added the (string) and that solved the problem! :thumbsup:
jpda
-
1 Attachment(s)
Re: ZCA Bootstrap Template
Fresh install of ZC 1.5.7d, php 7.4.33, MySQL 10.6.16, Linux hosted, ZCA Bootstrap 3.6.3.
I have been trying to set up the bootstrap footer using EZ Pages with Chapters and TOC as described in earlier posts in this forum, bu have been unable to achieve the outcome I'm after, which is similar to the attached screen capture. As a test I created 3 EZ Pages - Links as the top level of Chapter 1, then Home (with an internal url), then Featured. I expected to see Links as the column heading, with the other 2 entries below it, but this is not what happens. What I get is one entry (Links) in the footer. When I click on this I'm taken to a new page (https://mysite/index.php?main_page=page&id=2&chapter=1) which shows the other 2 entries only if they have no internal url associated with them.
What am I missing ? Any help greatly appreciated.
Attachment 20488
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
donw
Fresh install of ZC 1.5.7d, php 7.4.33, MySQL 10.6.16, Linux hosted, ZCA Bootstrap 3.6.3.
I have been trying to set up the bootstrap footer using EZ Pages with Chapters and TOC as described in earlier posts in this forum, bu have been unable to achieve the outcome I'm after, which is similar to the attached screen capture. As a test I created 3 EZ Pages - Links as the top level of Chapter 1, then Home (with an internal url), then Featured. I expected to see Links as the column heading, with the other 2 entries below it, but this is not what happens. What I get is one entry (Links) in the footer. When I click on this I'm taken to a new page (
https://mysite/index.php?main_page=page&id=2&chapter=1) which shows the other 2 entries only if they have no internal url associated with them.
What am I missing ? Any help greatly appreciated.
Attachment 20488
What you're seeing in that footer-screenshot is, most likely, a site that has integrated the Flexible Footer Menu add-on into their template.
-
Re: ZCA Bootstrap Template
On mobile screen size in header you have on left the menu expand button the other 80% is blank. On the desktop or large tablet you have a shortcut to cart.
Was thinking of having a cart shortcut and a search shortcut v having the added click to drop the menu (which BTW I set to always expanded to reduce clicks) is there a reason not to do something like that?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
JimmyV
On mobile screen size in header you have on left the menu expand button the other 80% is blank. On the desktop or large tablet you have a shortcut to cart.
Was thinking of having a cart shortcut and a search shortcut v having the added click to drop the menu (which BTW I set to always expanded to reduce clicks) is there a reason not to do something like that?
Can't think of a reason not to; that's why I did on my website!
-
Re: ZCA Bootstrap Template
Cool will dig into that thought there might be some logics there making them problematic v bootstrap
-
Re: ZCA Bootstrap Template
Possibly interesting to some: I had a client who insisted that the nav bar should be right aligned, not left aligned (so the links are at the right hand side of the nav bar). Here's how you do it:
Modify includes/templates/bootstrap/common/tpl_header.php and change
<div class="collapse navbar-collapse" id="navbarSupportedContent">
to
<div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
(You could of course also do this in your stylesheet or site specific styles file.)
-
Re: ZCA Bootstrap Template
Hi Guys, I upgraded the bootstrap template from 3.6.2 to 3.6.3,(php 7.4.33, Mysql 5.7.31 ZC 1.5.7d) and I get a lot of errors in the logs such the ones shown below. I would assume that something went wrong in the installation. Any advice is welcome.
[08-Mar-2024 15:41:51 UTC] Request URI: /index.php?main_page=products_all&disp_order=1&page=13, IP address:
#1 require(/includes/templates/bootstrap/templates/tpl_products_all_default.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#2 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant FILENAME_SEARCH_RESULT - assumed 'FILENAME_SEARCH_RESULT' (this will throw an Error in a future version of PHP) in /includes/templates/bootstrap/templates/tpl_products_all_default.php on line 22.
[08-Mar-2024 15:41:51 UTC] Request URI: /index.php?main_page=products_all&disp_order=1&page=13, IP address:
#1 require(/includes/templates/bootstrap/templates/tpl_products_all_default.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#2 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant TEXT_SHOW - assumed 'TEXT_SHOW' (this will throw an Error in a future version of PHP) in /includes/templates/bootstrap/templates/tpl_products_all_default.php on line 23.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Georgecy
Hi Guys, I upgraded the bootstrap template from 3.6.2 to 3.6.3,(php 7.4.33, Mysql 5.7.31 ZC 1.5.7d) and I get a lot of errors in the logs such the ones shown below. I would assume that something went wrong in the installation. Any advice is welcome.
[08-Mar-2024 15:41:51 UTC] Request URI: /index.php?main_page=products_all&disp_order=1&page=13, IP address:
#1 require(/includes/templates/bootstrap/templates/tpl_products_all_default.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#2 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant FILENAME_SEARCH_RESULT - assumed 'FILENAME_SEARCH_RESULT' (this will throw an Error in a future version of PHP) in /includes/templates/bootstrap/templates/tpl_products_all_default.php on line 22.
[08-Mar-2024 15:41:51 UTC] Request URI: /index.php?main_page=products_all&disp_order=1&page=13, IP address:
#1 require(/includes/templates/bootstrap/templates/tpl_products_all_default.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#2 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant TEXT_SHOW - assumed 'TEXT_SHOW' (this will throw an Error in a future version of PHP) in /includes/templates/bootstrap/templates/tpl_products_all_default.php on line 23.
Crud, that's why I've been dropping support for Zen Cart versions prior to 1.5.8. As a work-around, you can change Configuration :: Product Listing :: Include Product Listing Alpha Sorter Dropdown to false until such time as I get that section updated for zc157 compatibility.
See this GitHub issue for tracking: https://github.com/lat9/ZCA-Bootstra...ate/issues/333
-
Re: ZCA Bootstrap Template
See this GitHub commit for the required changes: https://github.com/lat9/ZCA-Bootstra...307b66fb960872
That'll be included in v3.6.4 of the template.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Please note that the change to tpl_products_all_default.php should look like this; I was missing a closing parenthesis in that commit:
Code:
echo zen_draw_form('filter', zen_href_link((defined('FILENAME_SEARCH_RESULT') ? FILENAME_SEARCH_RESULT : FILENAME_ADVANCED_SEARCH_RESULT)), 'get', 'class="form-inline"');
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Please note that the change to tpl_products_all_default.php should look like this; I was missing a closing parenthesis in that commit:
Code:
echo zen_draw_form('filter', zen_href_link((defined('FILENAME_SEARCH_RESULT') ? FILENAME_SEARCH_RESULT : FILENAME_ADVANCED_SEARCH_RESULT)), 'get', 'class="form-inline"');
Hi I applied the modifications and they work ok so far. There is another error to be resolved also. Log is shown below
[09-Mar-2024 11:08:31 UTC] Request URI: /index.php?main_page=index&cPath=304_156/, IP address: ---------
#1 require(/includes/modules/bootstrap/category_row.php) called at [/includes/templates/bootstrap/templates/tpl_modules_category_row.php:16]
#2 require(/includes/templates/bootstrap/templates/tpl_modules_category_row.php) called at [/includes/templates/bootstrap/templates/tpl_index_categories.php:86]
#3 require(/includes/templates/bootstrap/templates/tpl_index_categories.php) called at [/includes/modules/pages/index/main_template_vars.php:232]
#4 require(/includes/modules/pages/index/main_template_vars.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#5 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant TOPMOST_CATEGORY_PARENT_ID - assumed 'TOPMOST_CATEGORY_PARENT_ID' (this will throw an Error in a future version of PHP) in /includes/modules/bootstrap/category_row.php on line 50.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
Please note that the change to tpl_products_all_default.php should look like this; I was missing a closing parenthesis in that commit:
Code:
echo zen_draw_form('filter', zen_href_link((defined('FILENAME_SEARCH_RESULT') ? FILENAME_SEARCH_RESULT : FILENAME_ADVANCED_SEARCH_RESULT)), 'get', 'class="form-inline"');
Hi I applied the modifications and so far the specific errors disappeared. There is one more similar error as per log below:
[09-Mar-2024 11:08:31 UTC] Request URI: /index.php?main_page=index&cPath=304_156/, IP address:
#1 require(/includes/modules/bootstrap/category_row.php) called at [/includes/templates/bootstrap/templates/tpl_modules_category_row.php:16]
#2 require(/includes/templates/bootstrap/templates/tpl_modules_category_row.php) called at [/includes/templates/bootstrap/templates/tpl_index_categories.php:86]
#3 require(/includes/templates/bootstrap/templates/tpl_index_categories.php) called at [/includes/modules/pages/index/main_template_vars.php:232]
#4 require(/includes/modules/pages/index/main_template_vars.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#5 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant TOPMOST_CATEGORY_PARENT_ID - assumed 'TOPMOST_CATEGORY_PARENT_ID' (this will throw an Error in a future version of PHP) in /includes/modules/bootstrap/category_row.php on line 50.
-
1 Attachment(s)
Re: ZCA Bootstrap Template
Regarding right-aligning the ul as per https://www.zen-cart.com/showthread....95#post1399395
adding class justify-content-end (really intuitive!) did not work for me...and after a soul-destroying amount of time trying to get the thing to move anywhere at all, I was starting to think it was painted on. How I hate CSS work/stabbing-in-the-dark.
Anyway this was the basket locking it to the left. Probably.
Attachment 20497
in case anyone works for the Samaritans.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Georgecy
Hi I applied the modifications and so far the specific errors disappeared. There is one more similar error as per log below:
[09-Mar-2024 11:08:31 UTC] Request URI: /index.php?main_page=index&cPath=304_156/, IP address:
#1 require(/includes/modules/bootstrap/category_row.php) called at [/includes/templates/bootstrap/templates/tpl_modules_category_row.php:16]
#2 require(/includes/templates/bootstrap/templates/tpl_modules_category_row.php) called at [/includes/templates/bootstrap/templates/tpl_index_categories.php:86]
#3 require(/includes/templates/bootstrap/templates/tpl_index_categories.php) called at [/includes/modules/pages/index/main_template_vars.php:232]
#4 require(/includes/modules/pages/index/main_template_vars.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#5 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant TOPMOST_CATEGORY_PARENT_ID - assumed 'TOPMOST_CATEGORY_PARENT_ID' (this will throw an Error in a future version of PHP) in /includes/modules/bootstrap/category_row.php on line 50.
That's another zc157 => zc158 change.
You can work-around the issue (while you plan your base Zen Cart upgrade) by creating a file (its name doesn't matter, as long as it's a .php file) in the /includes/extra_datafiles sub-directory, containing:
Code:
// -----
// Initialize the constant, set by Zen Cart 1.5.8, to identify the top-most category id. This module can
// be safely removed once the site is upgraded to zc158 or later.
//
define('TOPMOST_CATEGORY_PARENT_ID', '0');
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
torvista
Regarding right-aligning the ul as per
https://www.zen-cart.com/showthread....95#post1399395
adding class justify-content-end (really intuitive!) did not work for me...and after a soul-destroying amount of time trying to get the thing to move anywhere at all, I was starting to think it was painted on. How I hate CSS work/stabbing-in-the-dark.
Anyway this was the basket locking it to the left. Probably.
Attachment 20497
in case anyone works for the Samaritans.
That 'justify-content-end' is right out of the Bootstrap documentation (https://www.w3schools.com/bootstrap4/bootstrap_navs.asp). Is it the 'ul' containing a product's attributes in the cart's product table that you're attempting to align right?
-
Re: ZCA Bootstrap Template
I dip my toes into this when I get the time, every month or so, and so make no progress/am still a lost novice/forget this is a framework and try and piecemeal modify.
I was trying to get the main login etc links to the right.
-
Re: ZCA Bootstrap Template
> That 'justify-content-end' is right out of the Bootstrap documentation ...
And be sure you're looking at the right documentation! I was reading the Bootstrap 3 docs at first. D-ohhh!!!
-
1 Attachment(s)
Re: ZCA Bootstrap Template
Well, to go back to basics, I'm trying the GitHub ZC, dropping the GitHub Bootstrap into it, and trying the docs here
https://www.w3schools.com/bootstrap4...rap_navbar.asp
to get <ul class="navbar-nav mr-auto">
Attachment 20498
to the right, by mirroring the the classes mentioned in those docs. And failing to move it at all.
And I've not even started drinking yet.
-
Re: ZCA Bootstrap Template
> And I've not even started drinking yet.
Well obviously there's your problem. :)
-
Re: ZCA Bootstrap Template
[ZC v1.5.8][Bootstrap v3.5.0][SBA v4.0]
Does attribute image swap function properly for Bootstrap template?
I have no problem for other built in templates, for example Responsive Classic or Classic Contemporary Green, but image swap does not function for Bootstrap-4.
-
Re: ZCA Bootstrap Template
Currently running 1.5.8a ZenCart/3.6.3 Bootstrap Template on PHP 8.
Previously I had the AJAX search of the header working but as of today, likely the update as it worked prior, has stopped working.
I inspected the error console and found this error when I checked it:
Code:
Uncaught TypeError: jQuery(...).modal is not a function
at HTMLAnchorElement.<anonymous> (ajax_search.min.js:6:123)
at HTMLAnchorElement.dispatch (jscript_a_jquery.js:25:1102)
at q.handle (jscript_a_jquery.js:24:29909)
(anonymous) @ ajax_search.min.js:6
dispatch @ jscript_a_jquery.js:25
q.handle @ jscript_a_jquery.js:24
Unfortunately I'm not well versed with JQuery to even begin how this should be fixed. I only know that the code points to the following:
Code:
jQuery("#search-icon, #mobile-search").on("click", function(e) {
jQuery("#search-wrapper").modal()
}),
Would appreciate any help.
-
Re: ZCA Bootstrap Template
I'm not sure where the file /jscript/jscript_a_query.js comes from, but it appears that it's 'conflicting' with the Bootstrap template's ajax_search.min.js file's operation.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
I'm not sure where the file /jscript/jscript_a_query.js comes from, but it appears that it's 'conflicting' with the Bootstrap template's ajax_search.min.js file's operation.
That did it. Now to see where that file came from.
EDIT: Found it. The Consent banner plugin. Removing that file doesn't seem to affect either, so I'll go ahead and trash that one.
-
Re: ZCA Bootstrap Template
Just a small note;
in includes\templates\bootstrap\templates\tpl_product_info_display.php between line 209 and 216 div causes html error, because there is already the same div in tpl_modules_attributes.php
HTML Code:
<!--<div id="productAttributes"> REMOVE-->
<?php
/**
* display the product attributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<!--</div> REMOVE-->
Anybody has an idea about the misfunction of the image swap?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
zamzom
Just a small note;
in includes\templates\bootstrap\templates\tpl_product_info_display.php between line 209 and 216 div causes html error, because there is already the same div in tpl_modules_attributes.php
HTML Code:
<!--<div id="productAttributes"> REMOVE-->
<?php
/**
* display the product attributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<!--</div> REMOVE-->
Anybody has an idea about the misfunction of the image swap?
Rather than do that, why not remove the defining <div> (line 18) and </div> (line 161)* inside of tpl_modules_attributes.php?
-
Re: ZCA Bootstrap Template
I'm not sure where your tpl_modules_attributes.php came from, but the as-shipped version for Bootstrap 3.5.0 does not contain that div.
You'll need to check on the attributes-image-swap support-thread for why it doesn't work.
-
Re: ZCA Bootstrap Template
Again using 3.6.3 ZCA and ZenCart 1.5.8s on PHP 8.2.
I am getting the following display of the product price when displaying a product with attributes assigned.
https://i.imgur.com/SGvTfMk.png
Should I manually remove one of these price blocks or is there a way to toggle which one is displayed? (For note, this is the default product type with attributes.)
-
Re: ZCA Bootstrap Template
You'll need to either edit your tpl_product_info_display.php to comment-out either the upper or lower price display or provide styling (in the /css/site_specific_styles.php) to do a display: none; on one of them.
-
1 Attachment(s)
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lat9
1) Did you try changing the columns-per-row to 0 (fluid)? If that doesn't do what you want, v3.6.3 adds a 'soft' configuration setting:
Code:
// -----
// Starting with v3.6.3, a categories' fluid layout can be identified. If predefined (like
// in an /extra_datafiles .php module), that override is used.
//
if ($category_row_layout_style === 'fluid') {
$grid_cards_classes = 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3';
if (!isset($grid_category_classes_matrix)) {
// this array is intentionally in reverse order, with largest index first
$grid_category_classes_matrix = [
'12' => 'row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-6',
'10' => 'row-cols-1 row-cols-md-2 row-cols-lg-4 row-cols-xl-5',
'9' => 'row-cols-1 row-cols-md-3 row-cols-lg-4 row-cols-xl-5',
'8' => 'row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
'6' => 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3',
];
}
2) There's a 'soft' setting (see dist.site-specific-bootstrap-settings.php) that totally disabled the back-to-top button. If you still want it to show, but not overlay "important" buttons, here's what I added to my /css/site_specific_styles.php so it overlays the footer:
Code:
#back-to-top {
bottom: 2.5vh;
}
Hi Cindy,
On 1.5.7d with 3.6.3 the the columns-per-row to 0 (fluid) is not working as per attached image. Is this something that changed in the latest version or is something I am doing wrong?
Attachment 20517
-
3 Attachment(s)
Re: ZCA Bootstrap Template
Hi Guys,
In 1.5.7d and 3.6.3 the Listing Columns Per Row and the Listing Layout Style in product listing, do not have any effect when changed. I this a change in the version 3.6.3 or I should reinstall the template? see attached photos
Attachment 20518Attachment 20519Attachment 20520