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.