-
ZCA Bootstrap 4 Template [Support Thread]
I am officially taking this template out of (BETA) stage! :yes:
This will be the new Support Thread moving forward.
Download at: https://www.zen-cart.com/downloads.php?do=file&id=2191
As of v1.0.4
- Bootstrap 4.
- Responsive.
- 3 Column Layout (removes right column on product info, shopping cart & checkout pages).
- Option to include the Product Notification and Manufacturer Info side boxes on the product info pages.
- Mobile Friendly Drop Down Menu.
- Tabbed Login Page.
- Order Progress Bar on Checkout Pages.
- Modals replace popup Windows (except shipping estimator).
- Optional Additional Images Modal w/ Carousel.
- Option to have all Listing Pages use a Columnar Layout (products_new, featured_products, products_all and index&cPath).
- No (almost NO) Stylesheet.
- Added Color Stylesheet.
- Demo is here: https://zc158.vinosdefrutastropicale...ain_page=index
-
Re: ZCA Bootstrap Template
Formatting of attributes with images are broken due to extra closing divs (</div></div>) in includes/modules/bootstrap/attributes.php. Radio buttons could not be clicked. Moved zen_draw_radio_field ahead of label in case 4 to be consistent with other cases to correct. Issue opened in github and fix sent to Cindy
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
badarac
Formatting of attributes with images are broken due to extra closing divs (</div></div>) in includes/modules/bootstrap/attributes.php. Radio buttons could not be clicked. Moved zen_draw_radio_field ahead of label in case 4 to be consistent with other cases to correct. Issue opened in github and fix sent to Cindy
Okay,
Cindy, note this issue is not present in the GitHub files. Not sure if it's present in ZC files, don't see how for last 2 updates were taking directly from GitHub. I'll look more into this one but stumped on how ZC files differ.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
rbarbour
Okay,
Cindy, note this issue is not present in the GitHub files. Not sure if it's present in ZC files, don't see how for last 2 updates were taking directly from GitHub. I'll look more into this one but stumped on how ZC files differ.
I did download the zip from plugins again and the extra /div is defiantly there. I also found it in the file on github (around line 270).
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
badarac
I did download the zip from plugins again and the extra /div is defiantly there. I also found it in the file on github (around line 270).
You are correct sir,
I'll update GitHub as time permits and include fix in next release.
-
Re: ZCA Bootstrap Template
Would you be interested in incorporating your flexible footer module into this? I really like this template but think it's missing a good footer section. Or, if not, can you please advise on if you think it would be relatively easy to integrate or would there be a lot of conflicts?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
lankeeyankee
Would you be interested in incorporating your flexible footer module into this? I really like this template but think it's missing a good footer section. Or, if not, can you please advise on if you think it would be relatively easy to integrate or would there be a lot of conflicts?
No, I have no plans to incorporate any plugins into this template (my own or third party) . @lat9 or I may choose specific plugins to include template-overrides for, to bring in the BS classes like I did for One-Page Checkout, simply a thanks to @lat9 for all her awesome work on this template. I made the decision to trust & empower @lat9 to do as she wishes with the Github repository and this template. If she chooses to incorporate any plugins, I don't have an issue with that.
This template like my Responsive DIY Template Default template were build as starter templates. This template will require one to learn Bootstrap for most catalog side appearance plugins will need tweaking to be used with this template or at least bring in the BS look and feel.
I have Flexible Footer Menu Multilingual installed on a test template and NO, there is no conflicts with the BS framework (even with the class "col"), However an additional div should be placed in the tpl_footer.php file to clear the floats.
Code:
<div class="clearfix"></div>
-
Re: ZCA Bootstrap Template
Great, thanks for the tip on the footer. I will start digging into bootstrap more and compare it with foundation to see which way I'm headed. I appreciate all of your contributions, best of luck with your new B&M endeavor!
-
Re: ZCA Bootstrap Template
Does this template work with V1.5.4 or 1.5.1 of ZenCart?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
harlock
Does this template work with V1.5.4 or 1.5.1 of ZenCart?
This template has only been tested on v1.5.5f by myself, I haven't done any backward compatibility testing.
-
Re: ZCA Bootstrap Template
Does this template allow color changes or replacing colors with backbground images in header bars (sidebox header, main top header etc)?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
turuga
Does this template allow color changes or replacing colors with backbground images in header bars (sidebox header, main top header etc)?
This template "out-of-box" inherits the Bootstrap > Utilities > Colors classes.
I include a colors stylesheet: /includes/templates/bootstrap/css/stylesheet_colors.css, which include some examples where I used colors outside the BS framework which override BS color classes.
I also added element ID's where possible due to the way BS adjoins several classes and can be frustrating when trying to override the BS classes.
So, yes, you can add color changes or replace colors with background images.
-
Re: ZCA Bootstrap Template
I created a new stylesheet called stylesheet_zcustom.css to put any modifications to the color or any other styling. This prevents losing any customization when upgrading the template.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I like this template very much as I find it easier customizable than responsive classic for the likes of me: changing color or background image of headers.
It seems some or one css files are called from outside website: https://maxcdn.bootstrapcdn.com/boot...tstrap.min.css.
Perhaps at beta stage it was done so? should all css be downloaded somehwhere?
Thanks.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
turuga
No, that was and is intentional...
The Bootstrap CSS framework is loaded via the BootstrapCDN, this file controls the look and feel.
Any and all CSS additions & overrides should be put in either the /includes/templates/bootstrap/css/stylesheet_colors.css or /includes/templates/bootstrap/css/stylesheet.css files or as @lankeeyankee suggested, create a new file /includes/templates/bootstrap/css/stylesheet_zcustom.css
If you choose to do a custom download of the bootstrap CSS framework, it should be called where the BootstrapCDN link is called or overrides will not be picked up.
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi Rbarbour,
Is there way to change these colors or insert background image from my side? pls see the attached image. If so, how for the IT illiterate?
thank you.Attachment 17852
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
turuga
Hi Rbarbour,
Is there way to change these colors or insert background image from my side? pls see the attached image. If so, how for the IT illiterate?
thank you.
Attachment 17852
Either edit the stylesheet_colors.css file or (in my opinion) create a new stylesheet as I mentioned in my previous post. The reason I call it stylesheet_zcustom is because anything starting with stylesheet_ is loaded on every page by zen cart's default behavior. And css cascades alphabetically so zcustom will load last and take precedence over anything else unless the class or ID is marked !important in a different sheet or is overridden by an inline style.
In your new sheet simply add .list-group-item {background-color: YOUR COLOR}
For a background image it would be .list-group-item {background-image: YOUR IMAGE; background-color: YOUR COLOR} You always want a background color in case the image becomes unavailable for some reason.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you Lankeeyankee, i will try your suggestions.
But it seems like the shipping module does not work. I use zone rates. I use 5-6 zones. When the template is changed to responsive classic, the shipment module works, i.e. a visitor can choose country and get shipping cost estimated. But not with Bootstrap (can't choose country). Do you see the same?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
No, that was and is intentional...
The Bootstrap CSS framework is loaded via the BootstrapCDN, this file controls the look and feel.
Any and all CSS additions & overrides should be put in either the /includes/templates/bootstrap/css/stylesheet_colors.css or /includes/templates/bootstrap/css/stylesheet.css files or as @lankeeyankee suggested, create a new file /includes/templates/bootstrap/css/stylesheet_zcustom.css
If you choose to do a custom download of the bootstrap CSS framework, it should be called where the BootstrapCDN link is called or overrides will not be picked up.
This is an amazing template. Does anybody encounter any shipping module issue? I wonder if I am an exception.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
turuga
This is an amazing template. Does anybody encounter any shipping module issue? I wonder if I am an exception.
What issue are you encountering? I just activated zone rates and works fine for me.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Dear Rbarbour,
sent you a pm.
So, should I download the template again?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
turuga
Dear Rbarbour,
sent you a pm.
So, should I download the template again?
I just registered on your site. I saw the zone rate for United States and was able to proceed all the way to the PayPal site.
I don't use zone rates but I am assuming only the zone rate for shipping country should show.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
turuga
Dear Rbarbour,
sent you a pm.
So, should I download the template again?
I did try to change my shipping address, I could not proceed due to no states appeared in dropdown for any other country. You may want to change this in admin:
Configuration > Customer Details > State - Always display as pulldown? > false
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you Rbarbour for the reply. It looks like "Estimate Shipping Costs" does not work which I thought whole shipping is not working as many people don't proceed until knowing shipping cost and inquire by email. Does anyone got issue with "Estimate Shipping Costs"?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Submitted today
Version: 1.0.5
- OPC Template Override Integration
- Integrate ImageHandler in additional image modal
- Formatting issue of attributes with images
- Width of input fields on wider screens
- Centering $free_tag & $call_tag icons
- Centering FREE_SHIPPING_ICON
-
improvements suggestions
Hello.
1. to add +/- sign to add to cart section on product info page, to be clickable. It will improve UX.
2. To place the "add to cart" section to the top of page - UX improvements
3. "Hardware", "Software" catagories contains subcategories. But on the horizontal menu (desktop version) the subs are not displayed after mouse over or mouse click on the above categories. I think subs has to be displayed correctly in basic ZCA Bootstrap version.
4. On mobile version the "search section" is hiden, but has to be accessible to the user.
5. On the top header is usefull to show contact phone (phones) to be visible also in mobile version.
Meksicus
-
Re: improvements suggestions
Quote:
Originally Posted by
meksicus
1. to add +/- sign to add to cart section on product info page, to be clickable. It will improve UX.
I thought about this, I'll revisit....
Quote:
Originally Posted by
meksicus
2. To place the "add to cart" section to the top of page - UX improvements
Not sure what your asking here, placing an additional "add to cart" block at the top of product pages or adding the shopping cart section to the header?
Quote:
Originally Posted by
meksicus
3. "Hardware", "Software" catagories contains subcategories. But on the horizontal menu (desktop version) the subs are not displayed after mouse over or mouse click on the above categories. I think subs has to be displayed correctly in basic ZCA Bootstrap version.
This is standard ZC, sub categories only show when a category is clicked "Software".
Quote:
Originally Posted by
meksicus
4. On mobile version the "search section" is hiden, but has to be accessible to the user.
This is standard procedure of Bootstrap > Components > Navbar. You can move the search field outside the hamburger menu on mobile devices if desired.
Quote:
Originally Posted by
meksicus
5. On the top header is usefull to show contact phone (phones) to be visible also in mobile version.
You can add the store # by inserting the following in the header:
PHP Code:
<?php echo STORE_TELEPHONE_CUSTSERVICE; ?>
-
Re: improvements suggestions
I am not familiar with BS however I understand it is very good for HTML, CSS, and JS - in this template can changes be easily made for a) large image in the header and b) drop down menu?
%&^*#%$ I tried to upload a screenshot with arrows and text explaining my query but after resizing 5 times and still getting over quota error message I thought I would verbally describe it.
can these 2 things be readily achieved?
a) place a large image or even a slider between bottom of bar with 'home' and 'search' in it and top of next bar with 'ez pages' etc in it, i.e. remove menu and tagline and insert a large image or slider - will second bar move down accordingly or is that a css modification?
b) add dropdown menu to that second bar with ez-pages etc in it - can this be added?
thanks, Mike
-
Re: improvements suggestions
Quote:
Originally Posted by
shags38
a) place a large image or even a slider between bottom of bar with 'home' and 'search' in it and top of next bar with 'ez pages' etc in it, i.e. remove menu and tagline and insert a large image or slider - will second bar move down accordingly or is that a css modification?
This can be accomplished by re-positioning Banner Display Groups - Header Position 2
Quote:
Originally Posted by
shags38
b) add dropdown menu to that second bar with ez-pages etc in it - can this be added?
thanks, Mike
This isn't standard but with some custom coding a drop down could be added to the ez-page bar.
-
Re: improvements suggestions
Hello rbarbour - you may remember me from such movies as ... :smile:
Sorry ... I am the guy that has been trying to modify responsive_all_business and having all manner of issues. I just downloaded your template and loaded it to a poor performing site I use as a 'test' site ... and I am loving it!! ... good work, well done .... so after mastering it I am going to apply it to all of my sites which happen to be v1.5.1 so they will be a good validation of the templates application to that version.
I do appreciate that this is still work in progress.
Some initial queries;
1. I am getting the 'Congratulations yada yada' message on the home page, that content is not showing in admin>>tools>>define pages editor>>main page so how can I get rid of it?
2. Similarly with the Zencart art of e-commerce image in the header - how do I get rid of that and insert my logo? I tried adding the logo image file to templates>>bootstrap>>images (that is where it would be in the other template) ... ALSO I need to be able to get rid of 'tagline goes here' and the space it takes up so that a large image can go all the way across the header width.
many thanks,
Mike
-
Re: improvements suggestions
Quote:
Originally Posted by
shags38
I just downloaded your template and loaded it to a poor performing site I use as a 'test' site ... and I am loving it!! ... good work, well done .... so after mastering it I am going to apply it to all of my sites which happen to be v1.5.1 so they will be a good validation of the templates application to that version.
I am glad you are loving it. You really should upgrade to 1.5.5f for this template hasn't been tested on any other versions.
Quote:
Originally Posted by
shags38
1. I am getting the 'Congratulations yada yada' message on the home page, that content is not showing in admin>>tools>>define pages editor>>main page so how can I get rid of it?
This template uses the same file structure as any other (except centerboxes). The below file contains the define for the home page meassage.
copy:
/includes/languages/english/index.php
to:
/includes/languages/english/bootstrap/index.php
Quote:
Originally Posted by
shags38
2. Similarly with the Zencart art of e-commerce image in the header - how do I get rid of that and insert my logo? I tried adding the logo image file to templates>>bootstrap>>images (that is where it would be in the other template) ... ALSO I need to be able to get rid of 'tagline goes here' and the space it takes up so that a large image can go all the way across the header width.
The below file contains the define for the home page logo and tagline.
copy:
/includes/languages/english/header.php
to:
/includes/languages/english/bootstrap/header.php
With this template once the tagline goes here define is rendered empty the logo div will expand 100% of the screen.
-
Re: improvements suggestions
Hi Rbarbour, can you advise how to extend the header and footer the full width of the page, similar to this https://www.nhl.com/rangers. At the minute there appears to margin or padding somewhere that is preventing it from extending the full width. Thank you.
-
Re: improvements suggestions
your response to lankyankee
Quote:
I have Flexible Footer Menu Multilingual installed on a test template and NO, there is no conflicts with the BS framework (even with the class "col"), However an additional div should be placed in the tpl_footer.php file to clear the floats.
Code: <div class="clearfix"></div>
I have installed this Flexible Footer Menu Multilingual plugin and get the admin/tools/install page with the 3 options and when I select new install I get these errors at the top of the page;
Error Flexible Footer Menu Table already exists, either Repair or Uninstall.
Error Flexible Footer Menu Table already exists, either Repair or Uninstall.
Error Flexible Footer Menu Configuration Group already exists, either Upgrade or Uninstall and then click the New Installation button.
selecting Repair I get taken to another page that gives me 2 options - New Installation or Uninstall - the footer on the page does not change from original prior to installing plugin.
I am obviously missing something - How can I get that footer to show in this template? are there files I should be copying from the RAB template into this one that will render the footer as it should be?
cheers, Mike
Attachment 17937
the Flexible Footer Menu is installed standard in the responsive_all_business template I have been using and looks like the image below
Attachment 17938
-
Re: improvements suggestions
additional info to above - in phpMyAdmin a configuration_group is established but there are no entries in configuration - there should be, right?
-
Re: improvements suggestions
I now cannot get the site to load - I installed Westminster New Responsive and when trying to change from ZCA Bootstrap template to the newly installed WNR template I lost my admin (warning error occurred please rfresh page and try again_ - so I reinstalled the backup copy I had for the site (public html and database) and retrieved admin. I deleted any remaining additional WNR files and reinstated ZCA Bootstrap as default template ... but index page will not load - I then reverted to Responsive All Business template and the same thing occurred.
This is the myDEBUG error log which is exactly the same regardless of which of the two templates were selected;
Code:
[22-Jun-2018 07:53:32 UTC] PHP Warning: require(includes/init_includes/init_zca_layout.php): failed to open stream: No such file or directory in /home/rings1/public_html/includes/autoload_func.php on line 48
[22-Jun-2018 07:53:32 UTC] PHP Fatal error: require(): Failed opening required 'includes/init_includes/init_zca_layout.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/rings1/public_html/includes/autoload_func.php on line 48
I for the life of me cannot find the file mentioned 'includes/init_includes/init_zca_layout.php' - not in my installation and not in the downloaded template files.
below is the includes/autoload_func.php file - didn't want to mess with it. The reason I was installing the WNR template was to try it as the big issue I am having with the RAB template is that it is failing the Mobile Friendly tests on a number of my sites - need to get that sorted pronto.
When I can get ZCA BS 4 working with certain plugins then all sites will use it - in the meantime mobile is not performing and it is costing me business.
Code:
<?php
/**
* File contains the autoloader loop
*
* The autoloader loop takes the array from the auto_loaders directory
* and uses this this to constuct the InitSysytem.
* see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem} for more details.
*
* @package initSystem
* @copyright Copyright 2003-2009 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: autoload_func.php 14141 2009-08-10 19:34:47Z wilt $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
reset($autoLoadConfig);
ksort($autoLoadConfig);
foreach ($autoLoadConfig as $actionPoint => $row) {
$debugOutput = "";
foreach($row as $entry) {
$debugOutput = 'actionPoint=>'.$actionPoint . ' ';
// $entry['loadFile'] = str_replace(array(':', '\\\\'), '', $entry['loadFile']);
switch($entry['autoType']) {
case 'include':
/**
* include a file as specified by autoloader array
*/
if (file_exists($entry['loadFile'])) include($entry['loadFile']); else $debugOutput .= 'FAILED: ';
$debugOutput .= 'include(\'' . $entry['loadFile'] . '\');' . '<br />';
break;
case 'require':
/**
* require a file as specified by autoloader array
*/
if (file_exists($entry['loadFile'])) require($entry['loadFile']); else $debugOutput .= 'FAILED: ';
$debugOutput .= 'require(\'' . $entry['loadFile'] . '\');' . '<br />';
break;
case 'init_script':
$baseDir = DIR_WS_INCLUDES . 'init_includes/';
if (file_exists(DIR_WS_INCLUDES . 'init_includes/overrides/' . $entry['loadFile'])) {
$baseDir = DIR_WS_INCLUDES . 'init_includes/overrides/';
}
/**
* include an init_script as specified by autoloader array
*/
require($baseDir . $entry['loadFile']);
$debugOutput .= 'require(\'' . $baseDir . $entry['loadFile'] . '\');' . '<br />';
break;
case 'class':
if (isset($entry['classPath'])) {
$classPath = $entry['classPath'];
} else {
$classPath = DIR_FS_CATALOG . DIR_WS_CLASSES;
}
/**
* include a class definition as specified by autoloader array
*/
if (file_exists($classPath . $entry['loadFile'])) include($classPath . $entry['loadFile']); else $debugOutput .= 'FAILED: ';
$debugOutput .= 'include(\'' . $classPath . $entry['loadFile'] . '\');' . '<br />';
break;
case 'classInstantiate':
$objectName = $entry['objectName'];
$className = $entry['className'];
if (isset($entry['classSession']) && $entry['classSession'] === true) {
if (isset($entry['checkInstantiated']) && $entry['checkInstantiated'] === true) {
if (!isset($_SESSION[$objectName])) {
$_SESSION[$objectName] = new $className();
$debugOutput .= 'if (!$_SESSION[' . $objectName . ']) { ';
$debugOutput .= '$_SESSION[' . $objectName . '] = new ' . $className . '();';
$debugOutput .= ' }<br />';
}
} else {
$_SESSION[$objectName] = new $className();
$debugOutput .= ' $_SESSION[' . $objectName . '] = new ' . $className . '();<br />';
}
} else {
$$objectName = new $className();
$debugOutput .= '$' . $objectName . ' = new ' . $className . '();<br />';
}
break;
case 'objectMethod':
$objectName = $entry['objectName'];
$methodName = $entry['methodName'];
if (is_object($_SESSION[$objectName])) {
$_SESSION[$objectName]->$methodName();
$debugOutput .= '$_SESSION[' . $objectName . ']->' . $methodName . '();<br />';
} else {
$$objectName->$methodName();
$debugOutput .= '$' . $objectName . '->' . $methodName . '();<br />';
}
break;
}
if (DEBUG_AUTOLOAD === true) echo $debugOutput;
}
}
-
Re: improvements suggestions
That file (includes/init_includes/init_zca_layout.php) is part of the Zen Cart 1.5.5+ distribution.
-
Re: improvements suggestions
Quote:
Originally Posted by
lat9
That file (includes/init_includes/init_zca_layout.php) is part of the Zen Cart 1.5.5+ distribution.
Many thanks Cindy, I appreciate your help - installing that file did the trick.
cheers,
Mike
-
Re: improvements suggestions
@rbarbour - I uninstalled and reinstalled the Flexible Footer Menu Multilingual and it now resolves but I am not seeing where I can adjust the layout? (column configuration) - I was expecting to see an admin >> configuration >> Flexible Footer Menu but there isn't one ... or should I be looking for a file to modify? in phpMyAdmin a configuration group exists but in configuration there are no entries which tends towards a file needs to be adjusted, right?
Getting there :)
cheers,
Mike
Attachment 17946
-
Re: improvements suggestions
Quote:
Originally Posted by
johndoes
Hi Rbarbour, can you advise how to extend the header and footer the full width of the page, similar to this
https://www.nhl.com/rangers. At the minute there appears to margin or padding somewhere that is preventing it from extending the full width. Thank you.
@johndoes
This isn't an easy thing due to using the standard BS CSS which adds a 30px gutter. You can see how this effects the layout here. https://getbootstrap.com/docs/4.0/la.../#how-it-works
You have 2 options:
1) Add the following class "red" to line 97 in /includes/templates/bootstrap-mystore/common/tpl_main_page.php
<div class="container-fluid m-0 p-0" id="mainWrapper">
then add the following class "red" to line 124
<div class="row m-3">
2) You can customize the BS CSS removing the gutters and adding your own paddings in /includes/templates/bootstrap-mystore/css/stylesheet.css
https://getbootstrap.com/docs/3.3/cu...e/#grid-system
-
Re: improvements suggestions
Quote:
Originally Posted by
shags38
@rbarbour - I uninstalled and reinstalled the Flexible Footer Menu Multilingual and it now resolves but I am not seeing where I can adjust the layout? (column configuration) - I was expecting to see an admin >> configuration >> Flexible Footer Menu but there isn't one ... or should I be looking for a file to modify? in phpMyAdmin a configuration group exists but in configuration there are no entries which tends towards a file needs to be adjusted, right?
Getting there :)
cheers,
Mike
Attachment 17946
Mike,
If installed correctly, you should see ADMIN > CONFIGURATION > ZCA Flexible Footer Menu Multilingual Configuration
This is where columns get assigned to rows, then in
ADMIN > TOOLS > Flexible Footer Menu Multilingual
This is where you add the content for each columns
I personally don't use this anymore and am not sure what if any changes have been made. But this should be moved to the proper support thread.
-
Re: improvements suggestions
Quote:
Originally Posted by
rbarbour
@johndoes
This isn't an easy thing due to using the standard BS CSS which adds a 30px gutter. You can see how this effects the layout here.
https://getbootstrap.com/docs/4.0/la.../#how-it-works
You have 2 options:
1) Add the following class
"red" to line 97 in /includes/templates/bootstrap-mystore/common/tpl_main_page.php
<div class="container-fluid
m-0 p-0" id="mainWrapper">
then add the following class
"red" to line 124
<div class="row
m-3">
2) You can customize the BS CSS removing the gutters and adding your own paddings in /includes/templates/bootstrap-mystore/css/stylesheet.css
https://getbootstrap.com/docs/3.3/cu...e/#grid-system
Thank you.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I will be uploading Version: 1.0.6 by end of weekend...
This upgrade includes:
1.) Several HTML validations (github issue #62)
2.) Adds Responsive Carousel Banners (github issue #63)
3.) Adds the PhotoSwipe Lightbox to the document_general_info, document_product_info, page, product_free_shipping_info, product_info, product_music_info, product_reviews, product_reviews_info & product_reviews_write pages (github issue #64)
4.) Adds Admin controlled Template Colors Configuration (github issue #65)
-
Re: ZCA Bootstrap 4 Template [Support Thread]
hello rbarbour - I have realized that I do not know enough about bootstrap to work with this template but I do believe it is the way to go.
I have a problem in that the index page in my existing template is now showing the text 'Flexible Footer Menu' <indexDefaultHeading> and I am not sure how to remove it even though I have removed all the zca bootstrap template files - any ideas where I should look?
many thanks,
Mike
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
shags38
hello rbarbour - I have realized that I do not know enough about bootstrap to work with this template but I do believe it is the way to go.
This template is the ONLY way to go! :D
Version 1.0.6 was uploaded Sunday but isn't yet available in the downloads.
Quote:
Originally Posted by
shags38
I have a problem in that the index page in my existing template is now showing the text 'Flexible Footer Menu' <indexDefaultHeading> and I am not sure how to remove it even though I have removed all the zca bootstrap template files - any ideas where I should look?
many thanks,
Mike
Mike,
More than likely you have a stray language file.
look in your /includes/languages/english folders
&
/includes/languages/english/extra_definitions folders
but as stated before this is not related to this template and should be posted in the proper thread.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
This template is the ONLY way to go! :D
Version 1.0.6 was uploaded Sunday but isn't yet available in the downloads.
Mike,
More than likely you have a stray language file.
look in your /includes/languages/english folders
&
/includes/languages/english/extra_definitions folders
but as stated before this is not related to this template and should be posted in the proper thread.
Thanks Raymond - your hint at extra_definitions folders did the trick - found it in /includes/languages/english/extra_definitions/flexible_footer_menu in the first block under define('HEADING_TITLE',''); removed Flexible Footer Menu
cheers,
Mike
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi guys,
Just to ask if the carousel on front page is adjustable and can also take the full width of the page?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I'm having the devil of a time getting checkbox inputs to show as table-column elements.
In the responsive_classic and classic templates, the element is "coded" as
Code:
<tr>
<td><?php echo TEXT_GROUP_PUBLIC; ?></td>
<td><?php echo zen_draw_checkbox_field("group_public[$favorites_group_id]", '', ($group_info['is_public'] == 1)); ?></td>
</tr>
For the bootstrap template, I've wrapped the table with a <div class="table-responsive"> and added the classes "table table-bordered" to the table itself. Then, I modified the checkbox column to read:
Code:
<tr>
<td><?php echo TEXT_GROUP_PUBLIC; ?></td>
<td><div class="custom-control custom-checkbox"><?php echo zen_draw_checkbox_field("group_public[$favorites_group_id]", '', ($group_info['is_public'] == 1)); ?></div></td>
</tr>
... but still no checkbox is displayed.:(
Anyone have any suggestions?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
I'm having the devil of a time getting checkbox inputs to show as table-column elements.
In the responsive_classic and classic templates, the element is "coded" as
Code:
<tr>
<td><?php echo TEXT_GROUP_PUBLIC; ?></td>
<td><?php echo zen_draw_checkbox_field("group_public[$favorites_group_id]", '', ($group_info['is_public'] == 1)); ?></td>
</tr>
For the bootstrap template, I've wrapped the table with a <div class="table-responsive"> and added the classes "table table-bordered" to the table itself. Then, I modified the checkbox column to read:
Code:
<tr>
<td><?php echo TEXT_GROUP_PUBLIC; ?></td>
<td><div class="custom-control custom-checkbox"><?php echo zen_draw_checkbox_field("group_public[$favorites_group_id]", '', ($group_info['is_public'] == 1)); ?></div></td>
</tr>
... but still no checkbox is displayed.:(
Anyone have any suggestions?
Cindy,
https://getbootstrap.com/docs/4.0/co...#custom-styles
The ZCA Bootstrap Template uses custom forms.
An ID must be added to the check box
And a label must be created
<label class="custom-control-label" for="***ID****">
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thanks, @rbarbour. That corrected the issue I was having.
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi everyone,
I need some help with this theme. Not highly expert so please bare with me. I was using a template to design a decent looking website. Ran into unlimited issues so dropped the idea of using third party templates. I downloaded this template and have managed to fiddle around with it a bit, so far to my satisfaction. Mainly turning on and off boxes and similar things.
Attached is the screenshot with numbers, 1 to 4. I'll explain what I'm trying to do and any help in regards to how to achieve results would be highly appreciated.
1. Log in. I would like to move the log in to the right side of the page. Next to search box, or find it for me box.
2. The top menu is same as side menu. I found the setting and it can be disabled/enabled. I'm thinking of editing it but then it means when enabled it will mirror the side menu which is number 4 in the pic.
What I'm trying to achieve is to have a different menu which stretches to the whole width of the page and in that I can add, drop down sub menus as per need. Question is how do I do it? Can it be done by using css menu and adding it to stylesheet?
3. That menu needs to go. Simply put. How can I do that?
4. Side menu is fixed. How to change its width? I saw the option in setting but it says the changes made will not take effect for zca theme. So, how can I go about and change it? Or possibly change it top menu suggestion of making it in css (by coping and pasting from some stylesheet which has some good looking menus) is it possible?
Any beginner level help would be appreciated. The reason I ditched the idea of third party theme is that no support. So here's to hoping that I'll be able to achieve some results using this theme. Where it says welcome to mobile direct, above it I would like a decent slider for products. Any suggestion to which works better with this build of zen cart version.
Many thanks in advance for your help and input.
Cheers.
P.S. I can locate files and edit using note pad or netbeans, no problem. I'm doing all this locally and not live so I can make the changes and adjust things first. Learn while I do this. Thanks.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
windyborough
1. Log in. I would like to move the log in to the right side of the page. Next to search box, or find it for me box.
In: /includes/templates/bootstrap/common/tpl_header.php
around line 54 find:
Code:
<ul class="navbar-nav mr-auto">
change to:
Code:
<ul class="navbar-nav ml-auto">
Quote:
Originally Posted by
windyborough
2. The top menu is same as side menu. I found the setting and it can be disabled/enabled. I'm thinking of editing it but then it means when enabled it will mirror the side menu which is number 4 in the pic.
What I'm trying to achieve is to have a different menu which stretches to the whole width of the page and in that I can add, drop down sub menus as per need. Question is how do I do it? Can it be done by using css menu and adding it to stylesheet?
The top tabs are admin controlled (ADMIN>CONFIGURATION>LAYOUT SETTINGS>Categories-Tabs Menu ON/OFF). You can add different plugins to achieve what you want.
Bootstrap Examples
https://getbootstrap.com/docs/4.1/components/navbar/
You can easily change those using the category tab dropdown or the CSS mega menu plugins. Like I did here
http://zcadditions.com/bootstrap_elux_demo/
Quote:
Originally Posted by
windyborough
3. That menu needs to go. Simply put. How can I do that?
That is an ezpage menu and is admin controlled (ADMIN>CONFIGURATION>EZ-PAGES SETTINGS>EZ-Pages Display Status - HeaderBar)
Quote:
Originally Posted by
windyborough
4. Side menu is fixed. How to change its width? I saw the option in setting but it says the changes made will not take effect for zca theme. So, how can I go about and change it? Or possibly change it top menu suggestion of making it in css (by coping and pasting from some stylesheet which has some good looking menus) is it possible?
The widths of the side columns are admin controlled (ADMIN>CONFIGURATION>LAYOUT SETTINGS>Responsive Left Column Width), (ADMIN>CONFIGURATION>LAYOUT SETTINGS>Responsive Center Column Width), (ADMIN>CONFIGURATION>LAYOUT SETTINGS>Responsive Right Column Width)
Quote:
Originally Posted by
windyborough
Any beginner level help would be appreciated. The reason I ditched the idea of third party theme is that no support. So here's to hoping that I'll be able to achieve some results using this theme. Where it says welcome to mobile direct, above it I would like a decent slider for products. Any suggestion to which works better with this build of zen cart version.
This template has options to turn any banner display into a banner carousel which can also be found under ADMIN>CONFIGURATION>LAYOUT SETTINGS
I personally like slick (http://kenwheeler.github.io/slick/) for a product carousel, you can also see that implemented here: http://zcadditions.com/bootstrap_elux_demo/
-
Re: ZCA Bootstrap 4 Template [Support Thread]
@rbarour many thanks for the detailed reply. Appologies for the late reply, I will do as you pointed out and get back if run into any issues. One quick question, I think somewhere in this thread you mentioned that you will update the template over the weekend. Shall I wait till you update the template or do it now and do again once the updated template is available to download.
Just wondering if the update will iron out issues which I might come across later on, so best to wait a day and then download the updated template and do everything on it? Also appreciate that you also provided some links.
I appreciate your reply and help, and I assure you, you will see a lot of posts/replies from me lol the site got a long way to go.
Cheers
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
windyborough
@rbarour many thanks for the detailed reply. Appologies for the late reply, I will do as you pointed out and get back if run into any issues. One quick question, I think somewhere in this thread you mentioned that you will update the template over the weekend. Shall I wait till you update the template or do it now and do again once the updated template is available to download.
Just wondering if the update will iron out issues which I might come across later on, so best to wait a day and then download the updated template and do everything on it? Also appreciate that you also provided some links.
I appreciate your reply and help, and I assure you, you will see a lot of posts/replies from me lol the site got a long way to go.
Cheers
The current version is 1.06 and is available in the download section.
I won't be releasing another version till beginning of October but as of right now none of the changes will affect the catalog side.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
The current version is 1.06 and is available in the download section.
I won't be releasing another version till beginning of October but as of right now none of the changes will affect the catalog side.
I downloaded the latest version and using it. Since I last posted, I have had multiple issues (not template related) and since then been starting new projects to test and iron out the things. Right now stuck at two things, first is css mega menu. I managed to incorporate it by following the included instructions and I have to get another one to use. Plus it does not show up in configurations settings in admin panel and by the looks of it the the author who made it is not active perhaps. It's thread is really old, 2012. Need to get another mega menu.
I have taken your advice and downloaded slick. Slick is very slick lol. I love it haven't messed about it yet because its half one in the morning and I know I'll just mess it up if I even tried to "uderstand" it.
My question is, can you point me to the write direction for how to incorporate slick in your theme? Youtube? Slick looks advance and nice and to add it must need advance knowledge, I'm guessing, which I'm lacking. If you can point me to the direction then I'll try to figure it out that which files needs to be edited and copied from and to and all that.
I have found a ZX slider and it looks recent. But slick looks.. slick! It has many options and settings and it can/will make a bland site very lovely.
Any mega menu idea? I have found a cracking looking menu here same thing, don't know which file the html code will go into in the template and in which css will. I downloaded it and not sure how to add it to the theme.
Any help with the slick would be highly appreciated. Many thanks in advance. Cheers
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Great template! It's so fast!
How do I go about adding/removing items from that bootstrap toggle menu?
Thank you
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dellchase
Great template! It's so fast!
How do I go about adding/removing items from that bootstrap toggle menu?
Thank you
The toggle menu is controlled via the admin,
You can remove the specials, all products and new product links from the categories
Configuration > Layout Settings > Categories Box - Show Specials Link
Configuration > Layout Settings > Categories Box - Show Products New Link
Configuration > Layout Settings > Categories Box - Show Featured Products Link
Configuration > Layout Settings > Categories Box - Show Products All Link
The other links in this toggle menu are taken from the information and more information sideboxes,
Configuration > Define Page Status >
Configuration > E-Mail Options > Display "Newsletter Unsubscribe" Link?
Also some are controlled by your ezpage settings
Sidebox Sort order is used when pages are listed in vertical links; Sort order should be greater than zero to enable it in vertical listing.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
The toggle menu is controlled via the admin,
You can remove the specials, all products and new product links from the categories
Configuration > Layout Settings > Categories Box - Show Specials Link
Configuration > Layout Settings > Categories Box - Show Products New Link
Configuration > Layout Settings > Categories Box - Show Featured Products Link
Configuration > Layout Settings > Categories Box - Show Products All Link
The other links in this toggle menu are taken from the information and more information sideboxes,
Configuration > Define Page Status >
Configuration > E-Mail Options > Display "Newsletter Unsubscribe" Link?
Also some are controlled by your ezpage settings
Sidebox Sort order is used when pages are listed in vertical links; Sort order should be greater than zero to enable it in vertical listing.
Thank you very much! Worked perfectly! But I was unable to remove the Important Links one. So I just removed the ez-pages code from tpl_offcanvas_menu.php which is fine because I don't want any ez-pages on that menu anyway. :smile:
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hello,
After making my tweaks and taking the site live I've ran into a couple issues.
Using Internet Explorer the Continue Shopping and Checkout buttons don't work on the Your Shopping Cart Contents page. They do work on FireFox and Chrome.
Also ran into one other issue. At checkout the page goes white on the payment page. I viewed the source and its blank. This is the error found in the logs:
[28-Oct-2018 00:25:01 MST] PHP Fatal error: Call to undefined method queryFactory::ExecuteNoCache() in /home/ffs/public_html/includes/modules/order_total/ot_gv.php on line 377
Modules -> Order Total -> Disabled Gift Certificates for the time being and that fixed it.
Thanks
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dellchase
Thank you very much! Worked perfectly! But I was unable to remove the Important Links one. So I just removed the ez-pages code from tpl_offcanvas_menu.php which is fine because I don't want any ez-pages on that menu anyway. :smile:
If you don't use EZ Pages just disable the side box. It will automatically remove the links from the drop-down
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dellchase
Hello,
After making my tweaks and taking the site live I've ran into a couple issues.
Using Internet Explorer the Continue Shopping and Checkout buttons don't work on the Your Shopping Cart Contents page. They do work on FireFox and Chrome.
Also ran into one other issue. At checkout the page goes white on the payment page. I viewed the source and its blank. This is the error found in the logs:
[28-Oct-2018 00:25:01 MST] PHP Fatal error: Call to undefined method queryFactory::ExecuteNoCache() in /home/ffs/public_html/includes/modules/order_total/ot_gv.php on line 377
Modules -> Order Total -> Disabled Gift Certificates for the time being and that fixed it.
Thanks
I can't replicate the issue what other order total modules do you have installed
-
Re: ZCA Bootstrap 4 Template [Support Thread]
@dellchase, what version of Zen Cart are you using?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
@dellchase, what version of Zen Cart are you using?
I'm using v1.5.5 now.
I do have hundreds of gift certificates over the years. I think I started using ZenCart some time during v1.3
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
I can't replicate the issue what other order total modules do you have installed
Group Discount
Low Order Fee
Shipping
Sub-Total
Tax
Total
are all enabled.
All my stuff is up to date except one thing. I use a very old shipping module. Percent. It was released years ago and hasn't been updated. I don't even think its on the plugin page anymore.
http://collabedit.com/kxsrk
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
dellchase
I'm using v1.5.5 now.
I do have hundreds of gift certificates over the years. I think I started using ZenCart some time during v1.3
Right, but which sub-version of v1.5.5? That database function (ExecuteNoCache) was introduced in Zen Cart 1.5.5f; if you're using a prior version, you'll need to patch your version of ot_gv.php.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
Right, but which sub-version of v1.5.5? That database function (ExecuteNoCache) was introduced in Zen Cart 1.5.5f; if you're using a prior version, you'll need to patch your version of ot_gv.php.
Well thats the problem! I'm not using f. Thank you!
v1.5.5 [2016-04-22 03:00:51] (Version Update 1.5.4->1.5.5)
v1.5.4 [2016-04-22 03:00:51] (Version Update 1.5.3->1.5.4)
v1.5.3 [2016-04-22 03:00:50] (Version Update 1.5.2->1.5.3)
v1.5.2 [2016-04-22 03:00:50] (Version Update 1.5.1->1.5.2)
v1.5.1 [2013-12-05 05:48:47] (Version Update 1.5.0->1.5.1)
v1.5.0 [2013-12-05 05:48:47] (Version Update 1.3.9->1.5.0)
v1.3.9h [2011-08-14 11:41:12] (Version Update 1.3.8->1.3.9h)
v1.3.8 [2009-03-21 19:09:40] (Fresh Installation)
v1.3.8 [2009-03-21 19:09:40] (Fresh Installation)
-
Re: ZCA Bootstrap Template
Hi guys,
How can we add additional product images in this template?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Georgecy
Hi guys,
How can we add additional product images in this template?
Not really a function of a template.
There are mods for additional images and standard info at https://www.zen-cart.com/content.php...s-to-a-product
-
Re: ZCA Bootstrap Template
Thank you for the reply. I was aware of the instructions for the multiple images but even though they worked with the responsive classic, I was not able to get them to work in the ZCA template.
-
Re: ZCA Bootstrap Template
Hi
Using 1.55e
https://sourceforge.net/projects/zencart-italia/
It has some changes to comply with local rules, and some other "minor" ones
Anyhow when activated the template I get this:
Code:
[14-Nov-2018 22:31:48 Europe/Rome] Request URI: /benessere/index.php?main_page=login, IP address: ::1
#1 trigger_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:167]
#2 queryFactory->show_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:139]
#3 queryFactory->set_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:266]
#4 queryFactory->Execute() called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:152]
#5 require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_header.php:84]
#6 require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_main_page.php:120]
#7 require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\newbs\index.php:97]
[14-Nov-2018 22:31:48 Europe/Rome] PHP Fatal error: 1054:Unknown column 'pages_title' in 'order clause' :: select * from ezpages where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title ==> (as called by) C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 152 <== in C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php on line 167
Does it have to do with these:
includes/modules/ezpages_bar_header.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_header = 1
and header_sort_order > 0
order by header_sort_order, pages_title");
// end of modification
includes/modules/ezpages_bar_footer.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, pages_title");
// end of modification
includes/modules/sideboxes/ezpages.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_sidebox = 1
and sidebox_sort_order > 0
order by sidebox_sort_order, pages_title");
// end of modification
How to fix it?
Thank you
-
Re: ZCA Bootstrap Template
change them to
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_header = 1
and header_sort_order > 0
order by header_sort_order, et.pages_title");
// end of modification
includes/modules/ezpages_bar_footer.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, et.pages_title");
// end of modification
includes/modules/sideboxes/ezpages.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_sidebox = 1
and sidebox_sort_order > 0
order by sidebox_sort_order, et.pages_title");
// end of modification
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Design75
change them to
Thank you.
No luck, same error in the log.
Also forgot in the previous post: the page loads only the top navbar with only the "login" button visible, if that might help.
I get this in admin when changing to ZCA:
? ZCA_BOOTSTRAP_CONFIG_WARNING
I'll try to see if there are other ezpages related snips, and language files maybe?
-
Re: ZCA Bootstrap Template
Here is what I found more:
includes/pages/page/header.php
has this
PHP Code:
$sql = "select * from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and e.pages_id = " . (int)$ezpage_id;
// comment the following line to allow access to pages which don't have a status switch set to Yes:
$sql .= " AND (e.status_toc > 0 or e.status_header > 0 or e.status_sidebox > 0 or e.status_footer > 0)";
// Check to see if page exists and is accessible, retrieving relevant details for display if found
$var_pageDetails = $db->Execute($sql);
// redirect to home page if page not found (or deactivated/deleted):
if ($var_pageDetails->EOF) {
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$messageStack->add_session('header', ERROR_PAGE_NOT_FOUND, 'caution');
header('HTTP/1.1 404 Not Found');
zen_redirect(zen_href_link(FILENAME_DEFAULT));
}
//check db for prev/next based on sort orders
$pos = (isset($_GET['pos'])) ? $_GET['pos'] : 'v'; // v for vertical, h for horizontal (v assumed if not specified)
$vert_links = array();
$toc_links = array();
// $pages_order_query = "SELECT pages_id FROM " . TABLE_EZPAGES . " WHERE status = 1 and vertical_sort_order <> 0 ORDER BY vertical_sort_order, horizontal_sort_order, pages_title";
// $pages_order_query = "SELECT * FROM " . TABLE_EZPAGES . " WHERE ((status_sidebox = 1 and sidebox_sort_order <> 0) or (status_footer = 1 and footer_sort_order <> 0) or (status_header = 1 and header_sort_order <> 0)) and alt_url_external = '' ORDER BY header_sort_order, sidebox_sort_order, footer_sort_order, pages_title";
// next query modified for multi-language support
$pages_order_query = "SELECT e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.header_sort_order, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.status_header, e.status_sidebox, e.status_footer, status_toc, et.pages_title,
et.pages_html_text
FROM " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
WHERE ((status_toc = 1 and toc_sort_order <> 0) and toc_chapter= :chapterID )
AND alt_url_external = '' and alt_url = ''
AND et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
AND e.pages_id = et.pages_id
ORDER BY toc_sort_order, pages_title";
// end modification
I changed last line to
PHP Code:
ORDER BY toc_sort_order, et.pages_title";
But no joy.
Then there are these other modified files:
admin/ezpages.php
which I don't know how, too many changes for my comprehension.
includes/extra_datafiles/ezpages_multilangauge_database_names.php
admin/includes/extra_datafiles/ezpages_multilangauge_database_names.php
these two are the same, and I'd guess are not the issue
PHP Code:
<?php
/**
* @package admin
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: ezpages_multilangauge_database_names.php 2006-05-16 Neville Kerr $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
define('TABLE_EZPAGES_TEXT', DB_PREFIX . 'ezpages_content');
?>
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
keneso
I get this in admin when changing to ZCA:
? ZCA_BOOTSTRAP_CONFIG_WARNING
Ok this is not an issue I copied the extra definition file to the Italian directory.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
keneso
Hi
Using 1.55e
https://sourceforge.net/projects/zencart-italia/
It has some changes to comply with local rules, and some other "minor" ones
Anyhow when activated the template I get this:
Code:
[14-Nov-2018 22:31:48 Europe/Rome] Request URI: /benessere/index.php?main_page=login, IP address: ::1
#1 trigger_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:167]
#2 queryFactory->show_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:139]
#3 queryFactory->set_error() called at [C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php:266]
#4 queryFactory->Execute() called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:152]
#5 require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_header.php:84]
#6 require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_main_page.php:120]
#7 require(C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\newbs\index.php:97]
[14-Nov-2018 22:31:48 Europe/Rome] PHP Fatal error: 1054:Unknown column 'pages_title' in 'order clause' :: select * from ezpages where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title ==> (as called by) C:\htdocs\newbs\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 152 <== in C:\htdocs\newbs\includes\classes\db\mysql\query_factory.php on line 167
Does it have to do with these:
includes/modules/ezpages_bar_header.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_header = 1
and header_sort_order > 0
order by header_sort_order, pages_title");
// end of modification
includes/modules/ezpages_bar_footer.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.toc_chapter, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_footer = 1 and footer_sort_order > 0 order by footer_sort_order, pages_title");
// end of modification
includes/modules/sideboxes/ezpages.php
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_sidebox = 1
and sidebox_sort_order > 0
order by sidebox_sort_order, pages_title");
// end of modification
How to fix it?
Thank you
This error is telling me that a column "pages_title" in your table "ezpages" doesn't exist. Did this plugin alter the ezpages table?
Second it is finding this error in /includes/templates/bootstrap/common/tpl_offcanvas_menu.php, which can be found here https://github.com/zcadditions/ZCA-B...anvas_menu.php
and reads
line 152
PHP Code:
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title");
this line will have to be updated to include the plugins altered query.
I think, I don't use zen-cart language packages, I add google translate
https://translate.google.com/manager/website/?hl=en-GB
-
Re: ZCA Bootstrap Template
Be aware that Zen cart 1.5.6 has the multi language ez pages installed by default. This has implications for the template
-
1 Attachment(s)
Re: ZCA Bootstrap Template
Thank you.
Indeed I checked, and in the package it has been moved to another table, couldn't check if is the same with the plugin (Design75 might shed a light), or the plugin has been modified and adapted for other reasons.
The package I referenced has the following two tables:
ezpages and ezpages_content
the pages_title is in the latter.
Could you please suggest how should I alter the suggested /includes/templates/bootstrap/common/tpl_offcanvas_menu.php?
I attach the two tables.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
This Bootstrap template requires a fix to the /includes/templates/bootstrap/common/tpl_offcanvas_menu.php file for 1.5.6 changes the table structure.
Around Line 152, find
PHP Code:
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title");
change to
PHP Code:
// BOE - Bootstrap for 1.5.6
$page_query = $db->Execute("SELECT e.*, ec.*
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
// old code for 1.5.5:
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title");
// EOE - Bootstrap for 1.5.6
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
This Bootstrap template requires a fix to the /includes/templates/bootstrap/common/tpl_offcanvas_menu.php file for 1.5.6 changes the table structure.
Thank you.
Did as suggested, but no joy, still blank page after the login button in the top navbar, and this error:
Code:
[15-Dec-2018 23:21:18 Europe/Rome] Request URI: /bsnew/, IP address: ::1
#1 trigger_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:167]
#2 queryFactory->show_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:139]
#3 queryFactory->set_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:266]
#4 queryFactory->Execute() called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:160]
#5 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php:84]
#6 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php:120]
#7 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\bsnew\index.php:97]
[15-Dec-2018 23:21:18 Europe/Rome] PHP Fatal error: 1146:Table 'bsnew.table_ezpages_content' doesn't exist :: SELECT e.*, ec.*
FROM ezpages e,
TABLE_EZPAGES_CONTENT ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = 2
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title ==> (as called by) C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 160 <== in C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php on line 167
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
keneso
Thank you.
Did as suggested, but no joy, still blank page after the login button in the top navbar, and this error:
Code:
[15-Dec-2018 23:21:18 Europe/Rome] Request URI: /bsnew/, IP address: ::1
#1 trigger_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:167]
#2 queryFactory->show_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:139]
#3 queryFactory->set_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:266]
#4 queryFactory->Execute() called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:160]
#5 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php:84]
#6 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php:120]
#7 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\bsnew\index.php:97]
[15-Dec-2018 23:21:18 Europe/Rome] PHP Fatal error: 1146:Table 'bsnew.table_ezpages_content' doesn't exist :: SELECT e.*, ec.*
FROM ezpages e,
TABLE_EZPAGES_CONTENT ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = 2
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title ==> (as called by) C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 160 <== in C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php on line 167
Quote:
Originally Posted by
keneso
Thank you.
Did as suggested, but no joy, still blank page after the login button in the top navbar, and this error:
Code:
[15-Dec-2018 23:21:18 Europe/Rome] Request URI: /bsnew/, IP address: ::1
#1 trigger_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:167]
#2 queryFactory->show_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:139]
#3 queryFactory->set_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:266]
#4 queryFactory->Execute() called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:160]
#5 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php:84]
#6 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php:120]
#7 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\bsnew\index.php:97]
[15-Dec-2018 23:21:18 Europe/Rome] PHP Fatal error: 1146:Table 'bsnew.table_ezpages_content' doesn't exist :: SELECT e.*, ec.*
FROM ezpages e,
TABLE_EZPAGES_CONTENT ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = 2
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title ==> (as called by) C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 160 <== in C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php on line 167
This fix is for 1.5.6
I believe I read somewhere you were using 1.5.5e
I am not familiar with the language package you are using.
Look in: includes/modules/sideboxes/ezpages.php to see the query being used by the language pack.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
This fix is for 1.5.6
I believe I read somewhere you were using 1.5.5e
I am not familiar with the language package you are using.
Look in: includes/modules/sideboxes/ezpages.php to see the query being used by the language pack.
Yes, using 155e.
The query in includes/modules/sideboxes/ezpages.php was this:
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_sidebox = 1
and sidebox_sort_order > 0
order by sidebox_sort_order, pages_title");
I tried both of the following, and yet same error
PHP Code:
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
PHP Code:
$pages_query = $db->Execute("SELECT e.*, ec.*
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
keneso
Yes, using 155e.
The query in includes/modules/sideboxes/ezpages.php was this:
PHP Code:
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_sidebox = 1
and sidebox_sort_order > 0
order by sidebox_sort_order, pages_title");
I tried both of the following, and yet same error
PHP Code:
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, e.sidebox_sort_order,
e.footer_sort_order, e.toc_sort_order, e.toc_chapter, e.page_open_new_window,
e.page_is_ssl, et.pages_title
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
PHP Code:
$pages_query = $db->Execute("SELECT e.*, ec.*
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
Sounds like you may have set this up with a database prefix bsnew.table_
check your
/includes/configure.php
/admin/includes/configure.php
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you for your patience.
Both configure files:
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', 'root');
define('DB_SERVER_PASSWORD', 'mypassword');
define('DB_DATABASE', 'bsnew');
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
keneso
Thank you for your patience.
I don't think this has anything to do with this template but could be wrong
in /includes/templates/bootstrap/common/tpl_header.php'
find:
PHP Code:
<?php require($template->get_template_dir('tpl_offcanvas_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_offcanvas_menu.php');?>
comment it out
PHP Code:
<?php //require($template->get_template_dir('tpl_offcanvas_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_offcanvas_menu.php');?>
We'll see if the rest of the site loads. Try to eliminate the issue first
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
keneso
Thank you.
Did as suggested, but no joy, still blank page after the login button in the top navbar, and this error:
Code:
[15-Dec-2018 23:21:18 Europe/Rome] Request URI: /bsnew/, IP address: ::1
#1 trigger_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:167]
#2 queryFactory->show_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:139]
#3 queryFactory->set_error() called at [C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php:266]
#4 queryFactory->Execute() called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php:160]
#5 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php:84]
#6 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_header.php) called at [C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php:120]
#7 require(C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_main_page.php) called at [C:\htdocs\bsnew\index.php:97]
[15-Dec-2018 23:21:18 Europe/Rome] PHP Fatal error: 1146:Table 'bsnew.table_ezpages_content' doesn't exist :: SELECT e.*, ec.*
FROM ezpages e,
TABLE_EZPAGES_CONTENT ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = 2
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title ==> (as called by) C:\htdocs\bsnew\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 160 <== in C:\htdocs\bsnew\includes\classes\db\mysql\query_factory.php on line 167
Keneso,
Your error is: "[15-Dec-2018 23:21:18 Europe/Rome] PHP Fatal error: 1146:Table 'bsnew.table_ezpages_content' doesn't exist"
NOTE: That's telling me that the constant for TABLE_EZPAGES_CONTENT is not defined, because if it were defined it would be to 'ezpages_content', not 'table_ezpages_content'.
So, if you're expecting multilingual ezpages, then you need to have that constant defined. In v1.5.6 it's in /includes/filenames.php, but if you're still using v1.5.x then it'll be in whatever file that plugin put those defines. Do what matches your environment.
Or, if you're not using multilingual ezpages, then you shouldn't have any of the code for it in your template in the first place.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I took a look at this plugin or (complete 1.5.5e install with language package) and in:
includes/extra_datafiles/ezpages_multilangauge_database_names.php
it reads:
PHP Code:
define('TABLE_EZPAGES_TEXT', DB_PREFIX . 'ezpages_content');
so the edit provided in post #77 should work with 1 minor edit, changing TABLE_EZPAGES_CONTENT to TABLE_EZPAGES_TEXT
PHP Code:
// BOE - Bootstrap for 1.5.6
$page_query = $db->Execute("SELECT e.*, ec.*
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
// old code for 1.5.5:
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title");
// EOE - Bootstrap for 1.5.6
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you DrByte
There are only four differences between the 1.5.5 and 1.5.6 includes/filenames.php at the following lines
29
define('FILENAME_AJAX', 'ajax');
41
define('FILENAME_CATEGORY_PRODUCT_LISTING', 'category_product_listing');
56
define('FILENAME_COUPON_ADMIN_EXPORT', 'coupon_admin_export');
162
define('FILENAME_STATS_SALES_REPORT_GRAPHS', 'stats_sales_report_graphs');
The ezpages are these two, and are present in both versions
82
define('FILENAME_EZPAGES', 'page');
83
define('FILENAME_EZPAGES_ADMIN', 'ezpages');
Am I missing something?
Quote:
We'll see if the rest of the site loads. Try to eliminate the issue first
By commenting it out the site loads fine.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
I took a look at this plugin or (complete 1.5.5e install with language package) and in:
includes/extra_datafiles/ezpages_multilangauge_database_names.php
it reads:
PHP Code:
define('TABLE_EZPAGES_TEXT', DB_PREFIX . 'ezpages_content');
so the edit provided in post #77 should work with 1 minor edit, changing TABLE_EZPAGES_CONTENT to TABLE_EZPAGES_TEXT
PHP Code:
// BOE - Bootstrap for 1.5.6
$page_query = $db->Execute("SELECT e.*, ec.*
FROM " . TABLE_EZPAGES . " e,
" . TABLE_EZPAGES_CONTENT . " ec
WHERE e.pages_id = ec.pages_id
AND ec.languages_id = " . (int)$_SESSION['languages_id'] . "
AND e.status_sidebox = 1
AND e.sidebox_sort_order > 0
ORDER BY e.sidebox_sort_order, ec.pages_title");
// old code for 1.5.5:
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_sidebox = 1 and sidebox_sort_order > 0 order by sidebox_sort_order, pages_title");
// EOE - Bootstrap for 1.5.6
Sorry I had not refreshed the page.
Indeed that fixes it.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
New error, navigating to "catalog (all products)", does not load after the filter listing; same with product listing of specific category, i.e. hardware>graphic-cards
PHP Fatal error: Class 'zca_splitPageResults' not found in C:\bsnew\includes\modules\bootstrap\product_listing.php on line 32
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
keneso
New error, navigating to "catalog (all products)", does not load after the filter listing; same with product listing of specific category, i.e. hardware>graphic-cards
PHP Fatal error: Class 'zca_splitPageResults' not found in C:\bsnew\includes\modules\bootstrap\product_listing.php on line 32
Check to make sure it was uploaded correctly or uncorrupted
includes/classes/zca/zca_split_page_results.php
original can be found here:
https://github.com/zcadditions/ZCA-B...ge_results.php
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Sounds like you don't have includes/classes/zca/zca_split_page_results.php.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you.
File is there, and had already reloaded.
Same error.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
keneso
Thank you.
File is there, and had already reloaded.
Same error.
were the following files installed
includes/auto_loaders/config.zca_bootstrap.php
includes/init_includes/init_zca_bootstrap.php
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
were the following files installed
includes/auto_loaders/config.zca_bootstrap.php
includes/init_includes/init_zca_bootstrap.php
Yes, and I performed the sql patch step, which was successful.
Don't want you to go crazy trying to troubleshoot this, in the next days I will try a fresh install of zc (same 155e_ita package), and template, and will report back.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Tried new fresh install, and same error.
Actually there was another error that had not come up previously, and it was this
Code:
PHP Parse error: syntax error, unexpected '}' in C:\bsnew-2\includes\templates\bootstrap\common\tpl_offcanvas_menu.php on line 216
I commented the line, and worked fine till the error on comment #88 of this thread
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I am working on a parallel installation, this time using 156, and it seems to be working fine.
I have a couple questions:
1 - I am missing where to add slider, and manage its images
2 - How would I have next-previous controls on the product image modal when there are additional images; I am aware of the slider (carousel) option, and think would be good to have the option to have navigation on the "simple" modal; as of now to trigger the slider you have to click the "additional image" button, and if you click the main image you only see the main image, whereas if you click on the additional image you will see both the additional images and the main image; another reason for it is to see the thumbnails of the additional images instead of the button.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
zc156
I didn't catch the core file edits being made but
includes/functions/functions_prices.php is one which is causing myDEBUG files to be generated.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I'll be submitting 2.0.0 today
Version: 2.0.0 06 January 2019:
1.) This version incorporates changes for 1.5.6 and 1.5.6a
2.) Does not include updates for Optional-OPC-Template-Overrides
Files Changed for 1.5.6 and 1.5.6a
- includes/templates/bootstrap/common/tpl_offcanvas_menu.php
- includes/templates/bootstrap/templates/tpl_site_map_default.php
- includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php
- includes/templates/bootstrap/templates/tpl_index_product_list.php
- includes/templates/bootstrap/templates/tpl_ezpages_bar_header.php
- includes/templates/bootstrap/templates/tpl_ezpages_bar_footer.php
- includes/modules/sideboxes/bootstrap/information.php
- includes/classes/order.php
- includes/modules/pages/specials/main_template_vars.php
- includes/modules/pages/create_account/jscript_addr_pulldowns_zca_bootstrap.php
- includes/modules/pages/checkout_payment_address/jscript_addr_pulldowns_zca_bootstrap.php
- includes/modules/pages/address_book_process/jscript_addr_pulldowns_zca_bootstrap.php
- includes/templates/bootstrap/modalboxes/tpl_coupon_help.php
- includes/templates/bootstrap/sideboxes/tpl_best_sellers.php
- includes/templates/bootstrap/sideboxes/tpl_categories.php
- includes/templates/bootstrap/sideboxes/tpl_document_categories.php
- includes/templates/bootstrap/sideboxes/tpl_information.php
- includes/templates/bootstrap/sideboxes/tpl_languages.php
- includes/templates/bootstrap/sideboxes/tpl_more_information.php
- includes/templates/bootstrap/sideboxes/tpl_order_history.php
- includes/templates/bootstrap/sideboxes/tpl_search.php
- includes/templates/bootstrap/sideboxes/tpl_search_header.php
- includes/templates/bootstrap/sideboxes/tpl_whos_online.php
- includes/templates/bootstrap/common/html_header.php
- includes/templates/bootstrap/common/tpl_columnar_display.php
- includes/templates/bootstrap/templates/tpl_account_newsletters_default.php
- includes/templates/bootstrap/templates/tpl_checkout_payment_default.php
- includes/templates/bootstrap/templates/tpl_checkout_success_default.php
- includes/templates/bootstrap/templates/tpl_document_general_info_display.php
- includes/templates/bootstrap/templates/tpl_document_product_info_display.php
- includes/templates/bootstrap/templates/tpl_modules_attributes.php
- includes/templates/bootstrap/templates/tpl_modules_create_account.php
- includes/templates/bootstrap/templates/tpl_modules_downloads.php
- includes/templates/bootstrap/templates/tpl_modules_media_manager.php
- includes/templates/bootstrap/templates/tpl_product_free_shipping_info_display.php
- includes/templates/bootstrap/templates/tpl_product_info_display.php
- includes/templates/bootstrap/templates/tpl_product_music_info_display.php
- includes/templates/bootstrap/templates/tpl_time_out_default.php
- includes/templates/bootstrap/templates/tpl_shopping_cart_default.php
- includes/templates/bootstrap/centerboxes/tpl_modules_upcoming_products.php
- includes/templates/bootstrap/templates/tpl_zc_install_suggested_default.php
- includes/modules/centerboxes/specials_index.php
- includes/modules/centerboxes/specials_index.php
- includes/modules/centerboxes/upcoming_products.php
- includes/modules/centerboxes/featured_products.php
- includes/modules/bootstrap/categories_tabs.php
- includes/modules/bootstrap/attributes.php
- includes/modules/order_total/ot_gv.php
- includes/modules/order_total/ot_coupon.php
- includes/classes/site_map.php
- includes/classes/zca/zca_message_stack.php
- includes/classes/order.php
- includes/classes/observers/ZcaBootstrapObserver.php
Files Deleted for 1.5.6 and 1.5.6a
- includes/modules/bootstrap/shipping_estimator.php
- includes/modules/bootstrap/product_prev_next.php
- includes/modules/bootstrap/additional_images.php
- includes/functions/html_output.php
- includes/functions/functions_prices.php
-
Re: ZCA Bootstrap 4 Template [Support Thread]
zc156a vanilla install w/demo data
drop db tables
import existing db
rerun zc install to upgrade db
install ZCA bootstrap files from github. Run the mysql as listed in first zcaDEBUG.
Edit some zca colors.
Remove/reinstall USPS and FEDEX shipping modules
Shipping related DEBUG file contents.
ZCA Bootstrap. No shipping quotes displayed. DEBUG files generated.
Switch to Classic_Responsive and no error files generated. Shipping quotes appear as expected
Code:
[07-Jan-2019 11:58:19 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy#1 include_once() called at [/home/CpanelID/public_html/156/includes/classes/shipping.php:63]
#2 shipping->__construct() called at [/home/CpanelID/public_html/156/includes/modules/shipping_estimator.php:123]
#3 require(/home/CpanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/CpanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#4 require(/home/CpanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/CpanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#5 require(/home/CpanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/CpanelID/public_html/156/index.php:97]
--> PHP Warning: include_once(includes/modules/shipping/usps.php): failed to open stream: No such file or directory in /home/CpanelID/public_html/156/includes/classes/shipping.php on line 63.
[07-Jan-2019 11:58:19 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 include_once() called at [/home/CpanelID/public_html/156/includes/classes/shipping.php:63]
#2 shipping->__construct() called at [/home/CpanelID/public_html/156/includes/modules/shipping_estimator.php:123]
#3 require(/home/CpanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/CpanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#4 require(/home/CpanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/CpanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#5 require(/home/CpanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/CpanelID/public_html/156/index.php:97]
--> PHP Warning: include_once(): Failed opening 'includes/modules/shipping/usps.php' for inclusion (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/CpanelID/public_html/156/includes/classes/shipping.php on line 63.
[07-Jan-2019 11:58:19 America/Los_Angeles] PHP Fatal error: Uncaught Error: Class 'usps' not found in /home/CpanelID/public_html/156/includes/classes/shipping.php:64
Stack trace:
#0 /home/CpanelID/public_html/156/includes/modules/shipping_estimator.php(123): shipping->__construct()
#1 /home/CpanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php(169): require('/home/CpanelID/...')
#2 /home/CpanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php(188): require('/home/CpanelID/...')
#3 /home/CpanelID/public_html/156/index.php(97): require('/home/CpanelID/...')
#4 {main}
thrown in /home/CpanelID/public_html/156/includes/classes/shipping.php on line 64
[07-Jan-2019 11:58:19 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
--> PHP Fatal error: Uncaught Error: Class 'usps' not found in /home/CpanelID/public_html/156/includes/classes/shipping.php:64
Stack trace:
#0 /home/CpanelID/public_html/156/includes/modules/shipping_estimator.php(123): shipping->__construct()
#1 /home/CpanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php(169): require('/home/CpanelID/...')
#2 /home/CpanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php(188): require('/home/CpanelID/...')
#3 /home/CpanelID/public_html/156/index.php(97): require('/home/CpanelID/...')
#4 {main}
thrown in /home/CpanelID/public_html/156/includes/classes/shipping.php on line 64.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Some #id's are required by PA-DSS Ajax Checkout on the checkout_payment page while using the payment module Authorize.net (AIM), this bootstrap template renames (2) of those #id's to create consistency across all template files, by doing so, submitting the payment forms returns false and does not process. :censored::rant::frusty::bangin:
This also causes the breadcrumbs to lose it's current styling in both this bootstrap template and the responsive_classic template.
An issue has been created on github to fix this.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I understand other paying jobs should take priority over other issues.
zca_bootstrap
Shipping estimator does not function if customer is not logged in.
Customer logs in and shipping estimator is functional.
Switch to classic responsive
shipping estimator functions as expected and no debug files generated
regardless of customer login status.
The debug file changes after running the zca_mySQL.
The first debug references bootstrap shipping/shipping estimator
The second debug references Fedex
Switch back to zca_bootstrap
zca_bootstrap DEBUG with the mySQL script to run
prior to running the mySQL, the error file generated is
Code:
[11-Jan-2019 07:20:31 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 sizeof() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:186]
#2 shipping->cheapest() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:210]
#3 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#4 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/classes/shipping.php on line 186.
[11-Jan-2019 07:20:31 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 sizeof() called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php:153]
#2 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:256]
#3 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#4 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php on line 153.
After running the zca_bootstrap mySQL, the logfile changes to
Code:
[11-Jan-2019 07:26:39 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 fedexwebservices->build_request() called at [/home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php:540]
#2 fedexwebservices->quote() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:169]
#3 shipping->quote() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:124]
#4 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#6 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS - assumed 'MODULE_SHIPPING_BOXES_MANAGER_STATUS' (this will throw an Error in a future version of PHP) in /home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php on line 106.
[11-Jan-2019 07:26:40 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 fedexwebservices->build_request() called at [/home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php:540]
#2 fedexwebservices->quote() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:169]
#3 shipping->quote() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:124]
#4 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#6 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS - assumed 'MODULE_SHIPPING_BOXES_MANAGER_STATUS' (this will throw an Error in a future version of PHP) in /home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php on line 324.
[11-Jan-2019 07:26:40 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 98.146.xxx.yyy
#1 fedexwebservices->build_request() called at [/home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php:540]
#2 fedexwebservices->quote() called at [/home/cPanelID/public_html/156/includes/classes/shipping.php:169]
#3 shipping->quote() called at [/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php:124]
#4 require(/home/cPanelID/public_html/156/includes/modules/shipping_estimator.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:169]
#5 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php:188]
#6 require(/home/cPanelID/public_html/156/includes/templates/bootstrap/common/tpl_main_page.php) called at [/home/cPanelID/public_html/156/index.php:97]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS - assumed 'MODULE_SHIPPING_BOXES_MANAGER_STATUS' (this will throw an Error in a future version of PHP) in /home/cPanelID/public_html/156/includes/modules/shipping/fedexwebservices.php on line 329.