-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
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.
Rick,
I'll take a look at the shipping estimator with the fedex module. I have tested UPS and works fine with the exception of......
The second debug file generated with the missing (undefined) constants is something I am running into on every upgrade and new install for all shipping modules, they seem to generate once upon module installation ONLY. This seems to be a core issue. Not a template issue. But I could be wrong.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Rick,
What fedex plugin are you using?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Rick,
What fedex plugin are you using?
Shipping estimator fails even with fedex disabled and customer not logged in. If there is anything I can do to help, please let me know.
This one v1.7.6 might not be in the zc plugins section but I think it is the latest and only available option for Fedex.
If you know of any different variant for Fedex, I'm all ears.
https://www.numinix.com/zen-cart-plu...vices-shipping
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Shipping estimator fails even with fedex disabled and customer not logged in. If there is anything I can do to help, please let me know.
This one v1.7.6 might not be in the zc plugins section but I think it is the latest and only available option for Fedex.
If you know of any different variant for Fedex, I'm all ears.
https://www.numinix.com/zen-cart-plu...vices-shipping
Does it work if the following has a value of 1
ADMIN > CONFIGURATION > Shipping/Packaging > Shipping Estimator Display Settings for Shopping Cart
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Does it work if the following has a value of 1
ADMIN > CONFIGURATION > Shipping/Packaging > Shipping Estimator Display Settings for Shopping Cart
Yes, it does... once I remember to go undo the popup blocker settings.
AND
If I change it back to a value of 2, then the shipping estimator seems to work "as a listing" at least for the current session.
Close browser and reopen, requires a setting back to 1.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Yes, it does... once I remember to go undo the popup blocker settings.
AND
If I change it back to a value of 2, then the shipping estimator seems to work "as a listing" at least for the current session.
Close browser and reopen, requires a setting back to 1.
Seems that a change in 1.5.6 to the javascript document.getElementById is causing this issue. I'm still troubleshooting but will open an issue on github and post when a fix is available.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Shipping estimator fails even with fedex disabled and customer not logged in. If there is anything I can do to help, please let me know.
This one v1.7.6 might not be in the zc plugins section but I think it is the latest and only available option for Fedex.
If you know of any different variant for Fedex, I'm all ears.
https://www.numinix.com/zen-cart-plu...vices-shipping
Seems I nested form on the shopping cart page, resulting in the inability to use the shipping estimator.
fix here:
https://github.com/zcadditions/ZCA-B....0a/issues/146
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Looks good, TNX
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Seems that a change in 1.5.6 to the javascript document.getElementById is causing this issue. I'm still troubleshooting but will open an issue on github and post when a fix is available.
That was a fun one to track down...
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I appreciate all that you've done.
To give myself a break, I've started experimenting with colors to see where changes appear.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
That was a fun one to track down...
Looks like I spoke too soon. Shipping estimator displayed but DEBUG files generated now.
Code:
[12-Jan-2019 11:10:25 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#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:171]
#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.
[12-Jan-2019 11:10:25 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#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:171]
#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.
Not sure where it is getting the ProductID but this DEBUG file also is present a few times. Different product_id. Using phone instead of desktop.
Code:
[12-Jan-2019 11:13:09 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart&product_id=651%3A5058ffcbfc8164c194b4a2ac6cb718c6, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#1 require(/home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/home/chaisinf/public_html/156/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Looks like I spoke too soon. Shipping estimator displayed but DEBUG files generated now.
Not sure where it is getting the ProductID but this DEBUG file also is present a few times. Different product_id. Using phone instead of desktop.
This file is generated when items in the cart are removed from the cart using the trashcan icon. If one item is in the cart and trashed, one file is generated. If two items are in the cart and both trashed individually, only one file is generated.
Same whether using Galaxy S4 on VZW network or my desktop.
Code:
[12-Jan-2019 11:13:09 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart&product_id=651%3A5058ffcbfc8164c194b4a2ac6cb718c6, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#1 require(/home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/home/chaisinf/public_html/156/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Not sure where it is getting the ProductID but this DEBUG file also is present a few times. Different product_id. Using phone instead of desktop.
This file is generated when items in the cart are removed from the cart using the trashcan icon. If one item is in the cart and trashed, one file is generated. If two items are in the cart and both trashed individually, only one file is generated.
Same whether using Galaxy S4 on VZW network or my desktop.
Code:
[12-Jan-2019 11:13:09 America/Los_Angeles] Request URI: /156/index.php?main_page=shopping_cart&product_id=651%3A5058ffcbfc8164c194b4a2ac6cb718c6, IP address: 2600:100f:b00c:f38a:cced:4ebf:d2d2:9228
#1 require(/home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/home/chaisinf/public_html/156/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/cPanelID/public_html/156/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
fix:
https://github.com/zcadditions/ZCA-B....0a/issues/147
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Version 2.0.0a was uploaded some time ago but not approved yet.
Code:
Version 2.0.0a 10 January 2019:
1.) Removes Optional-OPC-Template-Overrides
Note: Once this is updated for 1.5.6 I will provide a separate GitHub repository which will provide Bootstrap compatibility.
https://github.com/zcadditions/ZCA-OPC-for-1.5.6
Files changed in 2.0.0a
1 - includes/templates/bootstrap/templates/tpl_checkout_success_default.php
2 - includes/languages/english/bootstrap/button_names.php
3 - includes/modules/order_total/ot_coupon.php
4 - includes/templates/bootstrap/templates/tpl_checkout_payment_default.php
5 - includes/templates/bootstrap/templates/tpl_ajax_checkout_confirmation_default.php
6 - includes/classes/ajax/zcAjaxPayment.php
Files deleted in 2.0.0a
1 - All Optional-OPC-Template-Overrides file
Version 2.0.0b will follow shortly after - still waiting on input regarding issues found
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Yes, thank you.
Shipping estimator DEBUG still being generated.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
RixStix
Yes, thank you.
Shipping estimator DEBUG still being generated.
Rick,
can you uninstall the - remove the fedex module and report back
I am no longer getting any debug files on my end
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I'll do that tomorrow. I figured I needed to get back to a known starting point so that I didn't have you chasing your tail due to something I did incorrectly.
I was just able to eliminate the DEBUG file generated by the Numinix fedex warning by inserting into
includes/languages/english.php
Code:
// to remove PHP Warning: Use of undefined constant MODULE_SHIPPING_BOXES_MANAGER_STATUS generated by Numinix Fedex Module v1.7.6
define('MODULE_SHIPPING_BOXES_MANAGER_STATUS', '');
-
Re: ZCA Bootstrap 4 Template [Support Thread]
So the issue with the shipping estimator failing has been fixed. see post 107
The debug files being generated by 3rd party shipping modules is NOT template related no is it CORE code related. I will continue to troubleshoot this but all findings will be here.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
table cell alignment of cart totals in shopping cart confirmation
In ZCA 2.00 includes\templates\bootstrap\templates\tpl_modules_order_totals.php the cart totals eg sub-total, tax, total are not aligned with the item totals in the lines above
line 21 is <td colspan="2" class="text-right bg-white">
and should be <td colspan="3" class="text-right bg-white">
Environment: Win10; ZC156a; Wamp 3.1.6; Apache 2.4.33; PHP 7.1.16; MySQl 5.7.21
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
I just did a vanilla install and same is generated by the responsive_classic so I'm thinking it's something related to the core code while it loops through the installed modules.
I need to give my eyes a rest today, everything is starting to look the same. Lol
i think part of it is fixed here:
https://github.com/zencart/zencart/pull/2078
best.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
carlwhat
The part that relates to this template was fixed.
This template doesn't touch the includes/classes/shipping.php file, but thanks for the link and fix for those that need to upgrade with the fixed file.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
admin | tools | ZCA Bootstrap colors menu option
How is this menu option and install of ZCZ bootstrap 4 triggered? How can I reinstall / reactivate it in a new zc 156a environment?
I have ZCA Bootstrap 4 working and cloned to a copy template in my local dev environment using zc156a. I have copied all files to my Linux test environment and on recreation of the database for zc156a I have no zca bootstrap menus.
environment Dev: Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
-
Re: ZCA Bootstrap 4 Template [Support Thread]
If order total is $0.00 ie: only includes FREE items, pdf download products in my case
There is no button on the checkout process to continue to complete the order submission so that the "Checkout_Success" page is given.
Enable Classic_Responsive and checkout progresses as expected.
Once checkout_success, the download buttons do not appear but that symptom exists in Classic_Responsive so may also exist in ZCA_Bootstrap once the checkout_success is achieved.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
OldNGrey
admin | tools | ZCA Bootstrap colors menu option
How is this menu option and install of ZCZ bootstrap 4 triggered? How can I reinstall / reactivate it in a new zc 156a environment?
I have ZCA Bootstrap 4 working and cloned to a copy template in my local dev environment using zc156a. I have copied all files to my Linux test environment and on recreation of the database for zc156a I have no zca bootstrap menus.
environment Dev: Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
Try re-uploading
YOUR_ADMIN/includes/auto_loaders/config.bc.php
YOUR_ADMIN/includes/init_includes/init_bc_config.php
-
Re: ZCA Bootstrap 4 Template [Support Thread]
My specials are not showing up on the main page.
I have 9 items on special and can see them on the specials page.
Specials on main page is activated: Admin -> Configuration -> Index Listing.
Nothing in my error logs.
ZCA: 2.0.0.a
Zencart: 1.6.5a
PHP: 5.6.40
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi,
I don't remember who said this should be delivered with the default ZC but I agree.
Even if this is a wonderfull template, the easiest to customise I think, I still have a little request.
I'm using ZCA Bootstrap with the Dynamic Categories tree menu (https://www.zen-cart.com/downloads.php?do=file&id=396) which makes a sidebox with all products. It's an old plug-in but it still works fine. Of course would be better to modernise it with BS4 but that's OK.
Viewed on mobile, ZCA-Bootrap hides the left columns, cool...But I think there should be something showing that even if the column is hidden it's still there, something like a little icon, something like a tab on the left of the screen. And if I click this icon I get back my sidebox (in my case my products menu).
The best would be that this icon stays at the same place wherever I scroll in the page so that I can, at anytime, ask for the menu.
I found something that looks like what I mean on https://www.codeply.com/go/SufxS3ir55 , that's just the idea cause the icon/tab in this case is not really on the left of the screen.
What do you think of this idea ?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi, I'm trying to try your templates and I have a little problem, if I go Layout Settings and Categories Separator between the Category Name and Count and change it - it's written on the DB &nbsp;- despite the fact that the DB is on utf8_general_ci it tranforme & a &
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
Hi, I'm trying to try your templates and I have a little problem, if I go Layout Settings and Categories Separator between the Category Name and Count and change it ##- it's written on the DB - despite the fact that the DB is on utf8_general_ci it tranforme & a &
This is not template related. This has to do with the sanitize code included in the admin. Best bet is to run an SQL command.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Will you give me the command sql? so I insert it.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I also have log errors.
[24-Mar-2019 18:58:04 Europe/Brussels] Request URI: /admin/zca_bootstrap_colors.php, IP address: ::1
--> PHP Warning: Use of undefined constant TABLE_HEADING_CONFIGURATION_TITLE - assumed 'TABLE_HEADING_CONFIGURATION_TITLE' (this will throw an Error in a future version of PHP) in /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php on line 104.
[24-Mar-2019 18:58:04 Europe/Brussels] Request URI: /admin/zca_bootstrap_colors.php, IP address: ::1
--> PHP Warning: Use of undefined constant TABLE_HEADING_CONFIGURATION_VALUE - assumed 'TABLE_HEADING_CONFIGURATION_VALUE' (this will throw an Error in a future version of PHP) in /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php on line 105.
[24-Mar-2019 18:58:04 Europe/Brussels] Request URI: /admin/zca_bootstrap_colors.php, IP address: ::1
--> PHP Warning: Use of undefined constant TABLE_HEADING_ACTION - assumed 'TABLE_HEADING_ACTION' (this will throw an Error in a future version of PHP) in /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php on line 106.
The ZCA "bootstrap" template (or a clone) was activated on 2019-03-24 12:41:16 and some of its default settings are different than those currently set. You can copy and paste the following SQL into your admin's Tools->Install SQL Patches to change those defaults:
UPDATE configuration SET configuration_value = '3', last_modified = now() WHERE configuration_key = 'MAX_DISPLAY_PAGE_LINKS' LIMIT 1;
UPDATE configuration SET configuration_value = '<li> / </li>', last_modified = now() WHERE configuration_key = 'BREAD_CRUMBS_SEPARATOR' LIMIT 1;
UPDATE configuration SET configuration_value = '⊢ ', last_modified = now() WHERE configuration_key = 'CATEGORIES_SEPARATOR_SUBS' LIMIT 1;
UPDATE configuration SET configuration_value = '', last_modified = now() WHERE configuration_key = 'CATEGORIES_COUNT_PREFIX' LIMIT 1;
UPDATE configuration SET configuration_value = '', last_modified = now() WHERE configuration_key = 'CATEGORIES_COUNT_SUFFIX' LIMIT 1;
UPDATE configuration SET configuration_value = '2', last_modified = now() WHERE configuration_key = 'SHOW_SHIPPING_ESTIMATOR_BUTTON' LIMIT 1;
UPDATE configuration SET configuration_value = '4', last_modified = now() WHERE configuration_key = 'MAX_DISPLAY_SEARCH_RESULTS_FEATURED' LIMIT 1;
UPDATE configuration SET configuration_value = '4', last_modified = now() WHERE configuration_key = 'MAX_DISPLAY_NEW_PRODUCTS' LIMIT 1;
UPDATE configuration SET configuration_value = '4', last_modified = now() WHERE configuration_key = 'MAX_DISPLAY_SPECIAL_PRODUCTS_INDEX' LIMIT 1;
UPDATE configuration SET configuration_value = '0', last_modified = now() WHERE configuration_key = 'PRODUCT_LISTING_MULTIPLE_ADD_TO_CART' LIMIT 1;
UPDATE configuration SET configuration_value = '2', last_modified = now() WHERE configuration_key = 'MAX_RANDOM_SELECT_NEW' LIMIT 1;
UPDATE configuration SET configuration_value = '2', last_modified = now() WHERE configuration_key = 'MAX_DISPLAY_CATEGORIES_PER_ROW' LIMIT 1;
UPDATE configuration SET configuration_value = '2', last_modified = now() WHERE configuration_key = 'SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS' LIMIT 1;
UPDATE configuration SET configuration_value = '2', last_modified = now() WHERE configuration_key = 'SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS' LIMIT 1;
UPDATE configuration SET configuration_value = '2', last_modified = now() WHERE configuration_key = 'SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS' LIMIT 1;
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Salut , j'ai des erreurs lorsque je tente d'aller ou de modifier les couleurs sur ZCA Bootstrap, je suis sur php 7.3 mais je dois l'erreur aussi php 7.2
[27-Mar-2019 11:55:15 Europe / Bruxelles] Demande URI: / admin /zca_bootstrap_colors.php?gID=31&cID=547, adresse IP: :: 1
-> PHP Avertissement: l' utilisation de TABLE_HEADING_CONFIGURATION_TITLE constante indéfinie - supposée 'TABLE_HEADING_CONFIGURATION_TITLE' (cela jette une erreur dans une future version de PHP) dans / Applications / MAMP / htdocs / site / admin / zca_bootstrap_colors.php à la ligne 104.
[27-Mar-2019 11:55:16 Europe / Bruxelles] Demande URI: /admin/zca_bootstrap_colors.php?gID=31&cID=547, adresse IP:: :1
-> PHP Avertissement: L' utilisation de TABLE_HEADING_CONFIGURATION_VALUE constante indéfinie - supposée « TABLE_HEADING_CONFIGURATION_VALUE » (cela jette une erreur dans une future version de PHP) dans /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php en ligne 105.
[27 -mar-2019 11:55:16 Europe / Bruxelles] Demande URI: /admin/zca_bootstrap_colors.php?gID=31&cID=547, adresse IP: :: 1
-> PHP Avertissement: L' utilisation de TABLE_HEADING_ACTION constante indéfinie - supposée « TABLE_HEADING_ACTION »(ce qui lancera une erreur dans une future version de PHP) dans /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php en ligne 106.
[PHP] <div class = "conteneur fluide">
<h1> < ? php echo HEADING_TITLE; ?> </ h1>
<div class = "ligne">
<div class = "col-xs-12 col-sm-12 col-MD-9 col-atterrisseur-9 configurationColumnLeft">
<table class = "table vol stationnaire de table">
<thead>
<tr class = "dataTableHeadingRow">
<th class = "dataTableHeadingContent"> < ? php echo TABLE_HEADING_CONFIGURATION_TITLE?; ?> </ th>
<th class = "dataTableHeadingContent"> < ? php echo TABLE_HEADING_CONFIGURATION_VALUE?; ?> </ th>
<th class = "text-dataTableHeadingContent right"> < ? php echo TABLE_HEADING_ACTION?; ?> </ th>
</ tr>
</ thead> [/ php]
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi rbarbour, I really do not eliminate this error in my log file? the Templates is really well done in my opinion I am waiting to solve these two problems and I think I can use it definitively. thank you for your support
[24-Mar-2019 18:58:04 Europe / Brussels] Request URI: /admin/zca_bootstrap_colors.php, IP address: :: 1
-> PHP Warning: Use of undefined constant TABLE_HEADING_CONFIGURATION_VALUE - assumed 'TABLE_HEADING_CONFIGURATION_VALUE' in /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php on line 105.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
Hi rbarbour, I really do not eliminate this error in my log file? the Templates is really well done in my opinion I am waiting to solve these two problems and I think I can use it definitively. thank you for your support
[24-Mar-2019 18:58:04 Europe / Brussels] Request URI: /admin/zca_bootstrap_colors.php, IP address: :: 1
-> PHP Warning: Use of undefined constant TABLE_HEADING_CONFIGURATION_VALUE - assumed 'TABLE_HEADING_CONFIGURATION_VALUE' in /Applications/MAMP/htdocs/site/admin/zca_bootstrap_colors.php on line 105.
add the following to:
YOUR_ADMIN_FOLDER/includes/languages/english/extra_definitions/zca_bootstrap_colors.php
PHP Code:
define('TABLE_HEADING_CONFIGURATION_TITLE', "Title");
define('TABLE_HEADING_CONFIGURATION_VALUE', "Value");
define('TABLE_HEADING_ACTION', "Action");
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
Will you give me the command sql? so I insert it.
PHP Code:
UPDATE configuration SET configuration_value = ' ', last_modified = now() WHERE configuration_key = 'CATEGORIES_SEPARATOR_SUBS' LIMIT 1;
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi, thank you what I wanted is not every time to write on mysql the code, but solve the problem once and for all. That is to say with the other versione of zen cart I can put directly the code html in the part admin and it is registered directly and correctly on mysql. Did you say that it is because of sanitize code included in the admin there is a way to modify to be able to write html code on the admin part without each faith to make an update mysql command? Thanks for add the following to:
YOUR_ADMIN_FOLDER / includes / languages / English / extra_definitions / zca_bootstrap_colors.php
It has to work, I have more than translate languages and it's good and solve the sanitize.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi, just for info, on tpl_checkout_payment_default.php on line 278 there is one too many </ div> that you have to eliminate.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I am not a developer and just started with zen 1.56 and this bootstrap template so pardon my ignorance.
Product listing displays products in boxes with space all round each product, all within another box - nice.
Category listing displays categories does not have this space all round each category - not nice.
How do I make the category listing look like the product listing?
Many thanks for any help.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Images also not showing full width in categories listing on mobile view - how to fix?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi, I have another mistake when I delete a product in the cart
PHP Code:
[03-Apr-2019 00:41:34 Europe/Brussels] Request URI: /index.php?main_page=shopping_cart&product_id=7, IP address: ::1
#1 require(/Applications/MAMP/htdocs/MYSITE/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php) called at [/Applications/MAMP/htdocs/MYSITE/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /Applications/MAMP/htdocs/MYSITE/includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php on line 9.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
THE FILE tpl_shopping_cart_default.php I had to modify it to solve this problem.
https://www.zen-cart.com/showthread....12#post1356612
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=shopping_cart.<br />
* Displays shopping-cart contents
*
* @package templateSystem
* @copyright Copyright 2003-2018 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: Drbyte Sun Jan 7 21:28:50 2018 -0500 Modified in v1.5.6 $
*/
?>
<div id="shoppingCartDefault" class="centerColumn">
<?php
if ($flagHasCartContents) {
?>
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div id="shoppingCartDefault-helpLink" class="helpLink float-right p-3">
<a data-toggle="modal" href="#cartHelpModal"><?php echo TEXT_CART_HELP; ?></a>
</div>
<?php require($template->get_template_dir('tpl_info_shopping_cart.php',DIR_WS_TEMPLATE, $current_page_base,'modalboxes'). '/tpl_info_shopping_cart.php'); ?>
<div class="clearfix"></div>
<?php
}
?>
<h1 id="shoppingCartDefault-pageHeading" class="pageHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>
<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product', $request_type), 'post', 'id="shoppingCartForm"'); ?>
<div id="shoppingCartDefault-content" class="content"><?php echo TEXT_INFORMATION; ?></div>
<?php if (!empty($totalsDisplay)) { ?>
<div id="shoppingCartDefault-cartTotalsDisplay" class="cartTotalsDisplay text-center font-weight-bold p-3"><?php echo $totalsDisplay; ?></div>
<?php } ?>
<?php if ($flagAnyOutOfStock) { ?>
<?php if (STOCK_ALLOW_CHECKOUT == 'true') { ?>
<div class="alert alert-danger" role="alert"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
<?php } else { ?>
<div class="alert alert-danger" role="alert"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
<div class="table-responsive">
<table id="shoppingCartDefault-cartTableDisplay" class="cartTableDisplay table table-bordered">
<tr>
<th scope="col" id="cartTableDisplay-qtyHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th>
<th scope="col" id="cartTableDisplay-qtyUpdateHeading"> </th>
<th scope="col" id="cartTableDisplay-productsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="cartTableDisplay-priceHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
<th scope="col" id="cartTableDisplay-totalsHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
<th scope="col" id="cartTableDisplay-removeHeading"> </th>
</tr>
<!-- Loop through all products /-->
<?php
foreach ($productArray as $product) {
?>
<tr>
<td class="qtyCell">
<?php
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . '' . $product['flagStockCheck'] . '' . $product['showMinUnits'];
} else {
echo $product['quantityField'] . '' . $product['flagStockCheck'] . '' . $product['showMinUnits'];
}
?>
</td>
<td class="qtyUpdateCell text-center">
<?php
if ($product['buttonUpdate'] == '') {
echo '' ;
} else {
echo $product['buttonUpdate'];
}
?>
</td>
<td class="productsCell">
<a href="<?php echo $product['linkProductsName']; ?>"><?php echo $product['productsImage']; ?><?php echo $product['productsName'] . '' . $product['flagStockCheck'] . ''; ?></a>
<?php
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
echo '<div class="productsCell-attributes">';
echo '<ul>';
reset($product['attributes']);
foreach ($product['attributes'] as $option => $value) {
?>
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
<?php
}
echo '</ul>';
echo '</div>';
}
?>
</td>
<td class="priceCell"><?php echo $product['productsPriceEach']; ?></td>
<td class="totalsCell"><?php echo $product['productsPrice']; ?></td>
<td class="removeCell text-center">
<?php
if ($product['buttonDelete']) {
?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>" class="btn"><i class="fas fa-trash-alt"></i></a>
<?php
}
if ($product['checkBoxDelete'] ) {
echo zen_draw_checkbox_field('cart_delete[]', $product['id']);
}
?>
</td>
</tr>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
<tr>
<td colspan="1">
<?php
// show update cart button
if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div id="cartUpdate" class="text-center">
<button type="submit" class="btn"><i class="fas fa-sync-alt"></i></button>
</div>
<?php
} else { // don't show update button below cart
?>
<?php
} // show update button
?>
</td>
<td colspan="5">
<div id="cartTotal" class="text-right font-weight-bold">
<?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?>
</div>
</td>
</tr>
</table>
</div>
<!--bof shopping cart buttons-->
<div id="shoppingCartDefault-btn-toolbar" class="btn-toolbar justify-content-between my-3" role="toolbar">
<?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?>
</div>
<!--eof shopping cart buttons-->
</form>
<br class="clearBoth" />
<?php
if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1') {
?>
?>
<div id="shoppingCartDefault-shoppingEstimator-btn-toolbar" class="btn-toolbar my-3" role="toolbar">
<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .
zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?>
</div>
<?php
}
?>
<!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
<?php // the tpl_ec_button template only displays EC option if cart contents >0 and value >0
if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True') {
include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php');
}
?>
<!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
<?php
if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2') {
/**
* load the shipping estimator code if needed
*/
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>
<?php
}
?>
<?php
} else {
?>
<h1 id="shoppingCartDefault-pageHeading" class="pageHeading"><?php echo TEXT_CART_EMPTY; ?></h1>
<?php
$show_display_shopping_cart_empty = $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);
while (!$show_display_shopping_cart_empty->EOF) {
?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>
<?php
/**
* display the Featured Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'centerboxes'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>
<?php
/**
* display the Special Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'centerboxes'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>
<?php
/**
* display the New Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'centerboxes'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {
include(DIR_WS_MODULES . zen_get_module_directory('centerboxes/' . FILENAME_UPCOMING_PRODUCTS));
}
?>
<?php
$show_display_shopping_cart_empty->MoveNext();
} // !EOF
?>
</form>
<?php
}
?>
</div>
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I'll be submitting an updated version soon after 1.5.6b is released
-
Re: ZCA Bootstrap 4 Template [Support Thread] - Specials Centerbox does not show
Hi guys,
I have Zencart 1.5.6 with the latest ZCA Boostrap Template and I have an issue where the specials centerbox does not show on main page. The new and featured centerboxes respond without any problem to the settings of the configuration Index listing and the configuration stock. I have replace the centerbox file tpl_modules_specials_default.php without success. Can anybody offer any tips? The special sidebox works ok.
Thanks a lot for your time!
-
Re: ZCA Bootstrap 4 Template [Support Thread] - Specials Centerbox does not show
Quote:
Originally Posted by
Georgecy
Hi guys,
I have Zencart 1.5.6 with the latest ZCA Boostrap Template and I have an issue where the specials centerbox does not show on main page. The new and featured centerboxes respond without any problem to the settings of the configuration Index listing and the configuration stock. I have replace the centerbox file tpl_modules_specials_default.php without success. Can anybody offer any tips? The special sidebox works ok.
Thanks a lot for your time!
This issue was fixed, you can copy file from github:
https://github.com/zcadditions/ZCA-B...bfb4013a9a8daf
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Heather Bee
I am not a developer and just started with zen 1.56 and this bootstrap template so pardon my ignorance.
Product listing displays products in boxes with space all round each product, all within another box - nice.
Category listing displays categories does not have this space all round each category - not nice.
How do I make the category listing look like the product listing?
Many thanks for any help.
This was fixed: you can copy from github:
https://github.com/zcadditions/ZCA-B....0a/issues/158
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
THE FILE tpl_shopping_cart_default.php I had to modify it to solve this problem.
https://www.zen-cart.com/showthread....12#post1356612
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=shopping_cart.<br />
* Displays shopping-cart contents
*
* @package templateSystem
* @copyright Copyright 2003-2018 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: Drbyte Sun Jan 7 21:28:50 2018 -0500 Modified in v1.5.6 $
*/
?>
<div id="shoppingCartDefault" class="centerColumn">
<?php
if ($flagHasCartContents) {
?>
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div id="shoppingCartDefault-helpLink" class="helpLink float-right p-3">
<a data-toggle="modal" href="#cartHelpModal"><?php echo TEXT_CART_HELP; ?></a>
</div>
<?php require($template->get_template_dir('tpl_info_shopping_cart.php',DIR_WS_TEMPLATE, $current_page_base,'modalboxes'). '/tpl_info_shopping_cart.php'); ?>
<div class="clearfix"></div>
<?php
}
?>
<h1 id="shoppingCartDefault-pageHeading" class="pageHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>
<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product', $request_type), 'post', 'id="shoppingCartForm"'); ?>
<div id="shoppingCartDefault-content" class="content"><?php echo TEXT_INFORMATION; ?></div>
<?php if (!empty($totalsDisplay)) { ?>
<div id="shoppingCartDefault-cartTotalsDisplay" class="cartTotalsDisplay text-center font-weight-bold p-3"><?php echo $totalsDisplay; ?></div>
<?php } ?>
<?php if ($flagAnyOutOfStock) { ?>
<?php if (STOCK_ALLOW_CHECKOUT == 'true') { ?>
<div class="alert alert-danger" role="alert"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
<?php } else { ?>
<div class="alert alert-danger" role="alert"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
<div class="table-responsive">
<table id="shoppingCartDefault-cartTableDisplay" class="cartTableDisplay table table-bordered">
<tr>
<th scope="col" id="cartTableDisplay-qtyHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th>
<th scope="col" id="cartTableDisplay-qtyUpdateHeading">##</th>
<th scope="col" id="cartTableDisplay-productsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="cartTableDisplay-priceHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
<th scope="col" id="cartTableDisplay-totalsHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
<th scope="col" id="cartTableDisplay-removeHeading">##</th>
</tr>
<!-- Loop through all products /-->
<?php
foreach ($productArray as $product) {
?>
<tr>
<td class="qtyCell">
<?php
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . '' . $product['flagStockCheck'] . '' . $product['showMinUnits'];
} else {
echo $product['quantityField'] . '' . $product['flagStockCheck'] . '' . $product['showMinUnits'];
}
?>
</td>
<td class="qtyUpdateCell text-center">
<?php
if ($product['buttonUpdate'] == '') {
echo '' ;
} else {
echo $product['buttonUpdate'];
}
?>
</td>
<td class="productsCell">
<a href="<?php echo $product['linkProductsName']; ?>"><?php echo $product['productsImage']; ?><?php echo $product['productsName'] . '' . $product['flagStockCheck'] . ''; ?></a>
<?php
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
echo '<div class="productsCell-attributes">';
echo '<ul>';
reset($product['attributes']);
foreach ($product['attributes'] as $option => $value) {
?>
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
<?php
}
echo '</ul>';
echo '</div>';
}
?>
</td>
<td class="priceCell"><?php echo $product['productsPriceEach']; ?></td>
<td class="totalsCell"><?php echo $product['productsPrice']; ?></td>
<td class="removeCell text-center">
<?php
if ($product['buttonDelete']) {
?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>" class="btn"><i class="fas fa-trash-alt"></i></a>
<?php
}
if ($product['checkBoxDelete'] ) {
echo zen_draw_checkbox_field('cart_delete[]', $product['id']);
}
?>
</td>
</tr>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
<tr>
<td colspan="1">
<?php
// show update cart button
if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div id="cartUpdate" class="text-center">
<button type="submit" class="btn"><i class="fas fa-sync-alt"></i></button>
</div>
<?php
} else { // don't show update button below cart
?>
<?php
} // show update button
?>
</td>
<td colspan="5">
<div id="cartTotal" class="text-right font-weight-bold">
<?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?>
</div>
</td>
</tr>
</table>
</div>
<!--bof shopping cart buttons-->
<div id="shoppingCartDefault-btn-toolbar" class="btn-toolbar justify-content-between my-3" role="toolbar">
<?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?>
</div>
<!--eof shopping cart buttons-->
</form>
<br class="clearBoth" />
<?php
if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1') {
?>
?>
<div id="shoppingCartDefault-shoppingEstimator-btn-toolbar" class="btn-toolbar my-3" role="toolbar">
<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .
zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?>
</div>
<?php
}
?>
<!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
<?php // the tpl_ec_button template only displays EC option if cart contents >0 and value >0
if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True') {
include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php');
}
?>
<!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
<?php
if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2') {
/**
* load the shipping estimator code if needed
*/
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>
<?php
}
?>
<?php
} else {
?>
<h1 id="shoppingCartDefault-pageHeading" class="pageHeading"><?php echo TEXT_CART_EMPTY; ?></h1>
<?php
$show_display_shopping_cart_empty = $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);
while (!$show_display_shopping_cart_empty->EOF) {
?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>
<?php
/**
* display the Featured Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'centerboxes'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>
<?php
/**
* display the Special Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'centerboxes'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>
<?php
/**
* display the New Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'centerboxes'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {
include(DIR_WS_MODULES . zen_get_module_directory('centerboxes/' . FILENAME_UPCOMING_PRODUCTS));
}
?>
<?php
$show_display_shopping_cart_empty->MoveNext();
} // !EOF
?>
</form>
<?php
}
?>
</div>
this issue was fixed, a copy can be found on github:
https://github.com/zcadditions/ZCA-B....0a/issues/164
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
diamond1
Hi, just for info, on tpl_checkout_payment_default.php on line 278 there is one too many </ div> that you have to eliminate.
This was not the issue, but the correct issue was fixed and a copy can be found on github.
https://github.com/zcadditions/ZCA-B...1c82f659c61165
-
2 Attachment(s)
Re: ZCA Bootstrap Template
hello, I used Bootstrap 2.0 and 1.56a zen-cart
I install the Gift Wrapping or Reward Points Plugin,
when i try Checkout, but it is can not display "option",can not choose,
do you know how to solve it ?
thank you
Attachment 18462
Attachment 18463
-
Re: ZCA Bootstrap 4 Template [Support Thread] - Specials Centerbox does not show
Thank you for your reply. I replaced the contents of the specials_index.php with the unified specials_index.php from the link you listed above. Unfortunately the issue is not solved. I played with the settings for index listing without success. I am probably missing something...
-
1 Attachment(s)
Re: ZCA Bootstrap Template
Attachment 18493
http://www.zcadditions.com
header_php_shopping_cart_zca_bootstrap.php
PHP Code:
if (!zca_bootstrap_active()) {
return;
}
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_SHOPPING_CART');
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
//$breadcrumb->add(NAVBAR_TITLE);
:(
-
1 Attachment(s)
Re: ZCA Bootstrap Template
index.php?main_page=create_account
Uncaught TypeError: Cannot set property 'className' of null
Attachment 18494
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thank you for an amazing template - the best thus far!
I want to change the font sizes as well as remove the underline on the texts
Product header font sizes are just too big, I want them smaller, center box fonts are underlined (but not on Category left box)
In general I want to change fonts but am stumped on how to, stylesheet doesnt change anything. Thanks
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Figured out how to change Fonts in bootstrap
You have to add the code in the Bootstrap Stylesheet:
These are for changing the header font sizes
h1 {font-size:1.8em;line-height:25px;}
h2 {font-size:1.4em;}
h3 {font-size:1.3em;}
h4, h5, h6, h4.optionName, LEGEND, ADDRESS, .larger{font-size:1.1em;}
h1, h2, h3, h4, h5, h6 {margin:20px 0;}
-
1 Attachment(s)
Re: ZCA Bootstrap 4 Template [Support Thread]
I was hoping you could provide some guidance for the product listing. In the image you see that at this width (med) I believe it is there are still 4 columns when there should likely only be one, two max for sure. I cannot locate the spot to edit this for a better display on medium devices.
Attachment 18550
-
Re: ZCA Bootstrap 4 Template [Support Thread]
In Admin goto Configuration - Product Listing
Check Product Listing - Columns Per Row (Default Setting is 3)
Also check your stylesheet.css should have the following:
(Stylesheet is located in includes/templates/bootstrap)
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
.card-columns {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
}
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
.card-columns {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
arxvaldex
In Admin goto Configuration - Product Listing
Check Product Listing - Columns Per Row (Default Setting is 3)
Also check your stylesheet.css should have the following:
(Stylesheet is located in includes/templates/bootstrap)
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
.card-columns {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
}
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
.card-columns {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
Changing Columns Per Row from 4 to 3 fixed it, but on large screens we would really rather have 4
-
Re: ZCA Bootstrap 4 Template [Support Thread]
This template really looks great. My only request would be that you get rid of the core file changes - there are only half a dozen or so:
includes/modules/pages/specials/main_template_vars.php
includes/modules/order_total/ot_gv.php
includes/modules/order_total/ot_coupon.php
includes/classes/site_map.php
includes/classes/order.php
includes/classes/ajax/zcAjaxPayment.php
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Looking at the checkout pages
checkout_shipping
checkout_payment
checkout confirmation
is there a way to make the boxes span the entire width of the screen so they're not cramped in, 2 or 3 wide?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Certain pages such as the ones you mentioned have classes of "card-columns". these classes are controlled in the CSS stylesheet, you can change the amount of columns for each breakpoint or device.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi:
I have a quick question. Is the Dynamic Price Updater compatible with this template?
I have tried to get it to work but I am not having any success.
Dave
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I also could not get the Dynamic Price Updater to work with the template.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Thanks for the reply. I'm not a coder and didn't know if it was just me or the plugin wasn't compatible.
Too bad, because I like the template but I need the Dynamic Price Updater.
Dave
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
top hatt
Hi:
I have a quick question. Is the Dynamic Price Updater compatible with this template?
I have tried to get it to work but I am not having any success.
Dave
Quote:
Originally Posted by
barco57
I also could not get the Dynamic Price Updater to work with the template.
Quote:
Originally Posted by
top hatt
Thanks for the reply. I'm not a coder and didn't know if it was just me or the plugin wasn't compatible.
Too bad, because I like the template but I need the Dynamic Price Updater.
Dave
The plugin Dynamic Price Updater DOES WORK with this template.
You have to use the plugins included configuration to change the ID of the element where your price is displayed.
Simply changing productPrices to productsPriceTop-productPriceTopPrice
Unfortunately the plugin DOES NOT UPDATE but instead ADDS the second price, you will have to remove the following from
/includes/templates/bootstrap/templates/tpl_product_info_display.php
PHP Code:
<h2 id="productsPriceBottom-productPriceBottomPrice" class="productPriceBottomPrice">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION;
} else {
$one_time = '';
}
?>
<?php
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?>
</h2>
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Version 2.0.0c was submitted today for review....
Until approved , it can be downloaded from the Github link in my Signature.
Files changed in 2.0.0c
- Updated for ZC version 1.5.6c (https://github.com/zcadditions/ZCA-B....0c/issues/167)
- Added Back To Top Button (https://github.com/zcadditions/ZCA-B...0.0c/issues/66)
- Fixed special listing page, it now uses the product listing page layout (https://github.com/zcadditions/ZCA-B....0c/issues/141)
- Fixed non-functional shopping cart shipping estimator (https://github.com/zcadditions/ZCA-B....0c/issues/146)
- Fixed PHP Warning: count(): header_php_shopping_cart_zca_bootstrap.php (https://github.com/zcadditions/ZCA-B....0c/issues/147)
- Fixed typo in stylesheet_zca_colors.php (https://github.com/zcadditions/ZCA-B....0c/issues/148)
- Fixed single payment issue breaking DOM (https://github.com/zcadditions/ZCA-B....0c/issues/152)
- Fixed non styles "active" page # on listing pages (https://github.com/zcadditions/ZCA-B....0c/issues/154)
- Fixed single checkbox issue on checkout_success page for product update notifications (https://github.com/zcadditions/ZCA-B....0c/issues/155)
- Fixed specials center-box product query (https://github.com/zcadditions/ZCA-B....0c/issues/156)
-Added unique id's to center-boxes (https://github.com/zcadditions/ZCA-B....0c/issues/157)
- Added bootstrap cards to sub-categories for a consistent look (https://github.com/zcadditions/ZCA-B....0c/issues/158)
- -Fixed Undefined Constants in ADMIN zca_bootstrap_colors.php (https://github.com/zcadditions/ZCA-B....0c/issues/159)
- Fixed non-multi-language in tpl_photoswipe.php (https://github.com/zcadditions/ZCA-B....0c/issues/161)
- Fixed PHP warning in tpl_modules_shipping_estimator.php (https://github.com/zcadditions/ZCA-B....0c/issues/162)
- Removed LARGE_IMAGE_WIDTH constant (https://github.com/zcadditions/ZCA-B....0c/issues/163)
- Replaced messageStack icon images w/ font awesome icons (https://github.com/zcadditions/ZCA-B....0c/issues/165)
- Fixed shipping estimator on shopping cart page to be within form (https://github.com/zcadditions/ZCA-B....0c/issues/164)
- Fixed photoswipe issue not opening additional images as a gallery (https://github.com/zcadditions/ZCA-B....0c/issues/170)
- Removed bs class in tpl_checkout_payment_default.php (https://github.com/zcadditions/ZCA-B...0dfae3fbd35b40)
- Update header_php_shopping_cart_zca_bootstrap.php to include $productArray check (https://github.com/zcadditions/ZCA-B...116236aa416934)
- Added bs class to tpl_checkout_payment_default.php to ensure radio button custom style appears (https://github.com/zcadditions/ZCA-B...03962f34f7c94b)
- Updated tpl_page_not_found_default.php to ensure GV and COUPON status values set before referencing (https://github.com/zcadditions/ZCA-B...f09a928e6bdf67)
- Added a check instead of removing to YOUR_ADMIN/includes/init_includes/init_bc_config.php (https://github.com/zcadditions/ZCA-B...06b02fa4ba9546)
- Added a check to initialize variable in case it wasn't created in tpl_offcanvas_menu.php (https://github.com/zcadditions/ZCA-B...e1881ffc9885b6)
-
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Version 2.0.0c was submitted today for review....
Thank you very much:hug:
-
Re: ZCA Bootstrap 4 Template [Support Thread]
it seems like when you're using an onsite CC collection module and PA-DSS Ajax Checkout? is on, the checkout confirmation page doesn't work - the submit button is outside of the form.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I have been developing a website locally with mamp using the bootstrap template. Now I have transferred all the files to my hosting server, and I don't see the menu item ZCA Bootstrap Colors. It exists in the menu locally and is in the database. Any ideas why this would not be showing up?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Nick1973
I have been developing a website locally with mamp using the bootstrap template. Now I have transferred all the files to my hosting server, and I don't see the menu item ZCA Bootstrap Colors. It exists in the menu locally and is in the database. Any ideas why this would not be showing up?
Did you transfer all the admin language files and data files. The bootstrap colors menu will not appear if all the admin files were not uploaded.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
it seems like when you're using an onsite CC collection module and PA-DSS Ajax Checkout? is on, the checkout confirmation page doesn't work - the submit button is outside of the form.
I have yet been able to reproduce this but I will continue to play with.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
Did you transfer all the admin language files and data files. The bootstrap colors menu will not appear if all the admin files were not uploaded.
yes I did, is there any particular PHP version or could it be Apache?
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Testing an upgrade to Zen Cart 1.5.6c and installed this template. I am having one issue that appear to be related to this template.
I have a required attribute with some products. Under the default template when a user leaves the attribute blank they get a message stating that it needs to be completed before adding to cart. Under this template, the user gets returned to the same product page with no information on why it was returned.
Hope that makes sense.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Please copy & paste the exact error text you get in the default template.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
I have 4 attributes that are required. This is the message I see on the default template:
Warning Please correct the following:
On the Option for: Year You picked an Invalid Selection: User Input Required
On the Option for: Make You picked an Invalid Selection: User Input Required
On the Option for: Model (3 or 4 digit number) You picked an Invalid Selection: User Input Required
On the Option for: VIN # (17 Characters Long) You picked an Invalid Selection: User Input Required
-
Re: ZCA Bootstrap 4 Template [Support Thread]
OK. I just submitted a fix which is not ideal, but it will work.
https://github.com/zcadditions/ZCA-B....0.0c/pull/181
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
I have yet been able to reproduce this but I will continue to play with.
If you can't dup it in a week or so let me know and I'll set up a test site that shows the issue. I spent a bit of time on it but haven't had enough time to debug it yet.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Nick1973
I have been developing a website locally with mamp using the bootstrap template. Now I have transferred all the files to my hosting server, and I don't see the menu item ZCA Bootstrap Colors. It exists in the menu locally and is in the database. Any ideas why this would not be showing up?
This works properly with a fresh install. Try removing from your hosted site's configuration table the key ZCA_BODY_TEXT_COLOR.
DELETE FROM configuration WHERE configuration_key = 'ZCA_BODY_TEXT_COLOR';
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
This works properly with a fresh install. Try removing from your hosted site's configuration table the key ZCA_BODY_TEXT_COLOR.
DELETE FROM configuration WHERE configuration_key = 'ZCA_BODY_TEXT_COLOR';
... and be sure the file admin/includes/init_includes/init_bc_config.php is in place, then click the Admin Home link to rerun the init scripts. See if ZCA Bootstrap Colors appears under Tools at that point.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
Thank you - Your solution did work.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
As a more complex but (at least arguably) better refactoring, I would suggest getting rid of the $messageStack object creation in includes/init_includes/init_zca_bootstrap.php and simply loading the correct class in the includes/auto_loaders/config.core.php based on the setting of the template.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
rbarbour
I have yet been able to reproduce this but I will continue to play with.
To dup this, I installed Ceon Manual Card, and edited includes/modules/payment/ceon_manual_card.php to add
Code:
// TESTING ONLY!!! DO NOT COPY!!!
function process_button_ajax() {
return $this->process_button();
}
The issue appears to be in includes/templates/bootstrap/templates/tpl_ajax_checkout_confirmation_default.php.
Replacing this file with the file from responsive_classic makes the bootstrap template properly handle AJAX checkout.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
To dup this, I installed Ceon Manual Card, and edited includes/modules/payment/ceon_manual_card.php to add
Code:
// TESTING ONLY!!! DO NOT COPY!!!
function process_button_ajax() {
return $this->process_button();
}
The issue appears to be in includes/templates/bootstrap/templates/tpl_ajax_checkout_confirmation_default.php.
Replacing this file with the file from responsive_classic makes the bootstrap template properly handle AJAX checkout.
I have the same issue. I am using Paypal Pro to process the credit cards. Once you get to step 3 you cannot continue to the next step. The page does not respond and you cannot check out. replacing tpl_ajax_checkout_confirmation_default.php with the responsive one does seem to fix the issue.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
When you say PayPal, you mean Payments Pro that does on-site credit card collection, right?
Thanks for the update.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Correct - I should have been more clearer.
-
Re: ZCA Bootstrap 4 Template [Support Thread]
Hey, just wanted to say how good this template is! I'm a complete novice when it comes to php and recently my server host moved us to a new server with php 7.1 breaking both of our websites in the process.
I used bootstrap to replace the template on a showcase store as the previous template was generating far too many errors for a novice like to me address. This template was very easy to install and set up the way I wanted with the minimal of effort, congrats. I only seem to be getting one php error now in my admin logs, but I don't think the template is the problem.
anaconda.thegluepeople.co.uk
-
Re: ZCA Bootstrap Template
I don't know if this has been updated but there are a few glitches with the mobile menu. You get dots on mobiles at the side of it. Also radio buttons seem to have circles to the left of where they display. And Dropdown Menus overflow on mobiles.
Other than that, great template and I am using it on https://ventureengravings.uk if you want to take a look.
Question though, how would I go about adding the lightbox effect to images on attributes?
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Nick1973
I don't know if this has been updated but there are a few glitches with the mobile menu. You get dots on mobiles at the side of it. Also radio buttons seem to have circles to the left of where they display. And Dropdown Menus overflow on mobiles.
Other than that, great template and I am using it on
https://ventureengravings.uk if you want to take a look.
Question though, how would I go about adding the lightbox effect to images on attributes?
To get loose thew dots, I have added
Code:
.dropdown-menu ul {
list-style-type: none;
}
to the stylesheet
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Nick1973
I don't know if this has been updated but there are a few glitches with the mobile menu. You get dots on mobiles at the side of it. Also radio buttons seem to have circles to the left of where they display. And Dropdown Menus overflow on mobiles.
Other than that, great template and I am using it on
https://ventureengravings.uk if you want to take a look.
Question though, how would I go about adding the lightbox effect to images on attributes?
In my opinion, the Dropdown Menus overflow on mobiles is a major obstacle to proper operation by mobile customers. I noticed it this afternoon in my sandbox (XAMPP, PHP 7.1.23, ZC 1.5.6c with sample products, ZCA Bootstrap 2.0.0c). I searched this thread as well as github for solutions without success. The demo mentioned in post #1 as well as Nick1973's cart exhibit the behavior as well.
To demonstrate on a desktop/laptop, reduce the width of your browser until the hamburger menu appears. Click on the hamburger, then click Categories. Notice that the list of categories run off the bottom of the screen. This list cannot be scrolled to expose the bottom items, rendering the items at the end of the list unreachable.
One solution that I've come up with after quick looks at Bootstrap 4 tutorials and documentation is to remove 'fixed-top' from the navbar so that the navbar/hamburger scrolls with the rest of the page instead of staying at the top of the screen, thus exposing the bottom of the dropdown list. I'm hoping that other solutions exist that don't remove 'fixed-top'.
-
Re: ZCA Bootstrap Template
I've come up with a solution that doesn't remove the 'fixed-top' from the navbar. I added a CSS file (includes/templates/bootstrap/css/stylesheet_zca.css):
Code:
div.dropdown-menu {
max-height:150px;
overflow-y:auto;
}
The max-height value may need to be tuned to avoid having the bottom dropdown expand below the bottom of the screen when it's opened. The 150px is an eyeball guess from my iPhone 6S in landscape orientation.
-
Re: ZCA Bootstrap Template
I've come up with different contents for the includes/templates/bootstrap/css/stylesheet_zca.css file that will scroll the entire expanded hamburger menu instead of the individual dropdown items.
Code:
div#navbarSupportedContent {
max-height:320px;
overflow-y:auto;
}
-
Re: ZCA Bootstrap Template
My Sitemap Page does not load, it is just blank and I am getting these errors.
[06-Nov-2019 15:03:18 UTC] PHP Fatal error: Call to undefined method zen_SiteMapTree::setParentStartEndStrings() in /home/WEBSITENAME/public_html/includes/modules/pages/site_map/header_php_site_map_zca_bootstrap.php on line 6
[06-Nov-2019 15:03:18 UTC] Request URI: /index.php?main_page=site_map, IP address: 00.00.000.000
--> PHP Fatal error: Call to undefined method zen_SiteMapTree::setParentStartEndStrings() in /home/WEBSITENAME/public_html/includes/modules/pages/site_map/header_php_site_map_zca_bootstrap.php on line 6.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Nick1973
My Sitemap Page does not load, it is just blank and I am getting these errors.
[06-Nov-2019 15:03:18 UTC] PHP Fatal error: Call to undefined method zen_SiteMapTree::setParentStartEndStrings() in /home/WEBSITENAME/public_html/includes/modules/pages/site_map/header_php_site_map_zca_bootstrap.php on line 6
[06-Nov-2019 15:03:18 UTC] Request URI: /index.php?main_page=site_map, IP address: 00.00.000.000
--> PHP Fatal error: Call to undefined method zen_SiteMapTree::setParentStartEndStrings() in /home/WEBSITENAME/public_html/includes/modules/pages/site_map/header_php_site_map_zca_bootstrap.php on line 6.
Check your copy of includes/classes/site_map.php vs a fresh download of the bootstrap template. It's in there.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
swguy
Check your copy of includes/classes/site_map.php vs a fresh download of the bootstrap template. It's in there.
Just done that and uploaded it and I am getting the same error.
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Nick1973
Just done that and uploaded it and I am getting the same error.
This doesn't have to entered into includes/modules/pages/header_php.php does it? It's in includes/modules/pages/header_php_site_map_zca_bootstrap.php
I'm upgraded to 1.5.6c by the way.
PHP Code:
<?php// -----// site_map: Update the site-map array, adding classes to the parent/child entries.//if (zca_bootstrap_active()) { $zen_SiteMapTree->setParentStartEndStrings('<ul class="list-group">'); $zen_SiteMapTree->setChildStartString('<li class="list-group-item">');}
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
Nick1973
This doesn't have to entered into includes/modules/pages/header_php.php does it? It's in includes/modules/pages/header_php_site_map_zca_bootstrap.php
I'm upgraded to 1.5.6c by the way.
PHP Code:
<?php// -----// site_map: Update the site-map array, adding classes to the parent/child entries.//if (zca_bootstrap_active()) { $zen_SiteMapTree->setParentStartEndStrings('<ul class="list-group">'); $zen_SiteMapTree->setChildStartString('<li class="list-group-item">');}
Just wondered if anybody had any ideas why a blank page is happening with the site map page please? You can see what is happening here https://ventureengravings.uk/index.p..._page=site_map
I have tried the suggestion by 'swguy'
-
Re: ZCA Bootstrap Template
I can reproduce the error by using the original ZC 156c site_map.php in \includes\classes\.
This needs to be edited or replaced with site_map.php provided in the Bootstrap template.
The lines from approximately line 93, starting with "//-bof-zca_bootstrap *** 1 of 1 ***" must be in the file.
--------
environment Dev: Zen Cart 156c; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
packages / add-ons:
ckeditor ; clone template 1.2.0; payment module fee; Direct bank Deposit V1.5.revised; zencart155 securepayxml (modified); ozpost v4.2.7;
ceon_back_in_stock_notifications.9 (modified); export_shipping_information_V1.3.5 (modified); edit_orders-4.3.5; master password 4; admin log in as customer; ZCA bootstrap template-for-156-v2.0.0c; image checker 2.0; sales report 3.2.2; email archive manager 1-8e; zenNoncaptcha v0.5
-
Re: ZCA Bootstrap Template
In Bootstrap 1.5.6-v2.0.0 the variables $flag_disable_right and $flag_disable_left are undefined.
ZC 1.5.6c defines these in \includes\templates\responsive_classic\common\ main_template_vars.php on line 26
Quote:
if (!isset($flag_disable_left)) {
$flag_disable_left = false;
}
if (!isset($flag_disable_right)) {
$flag_disable_right = false;
}
Great template. Thanks for all the work.
-----------------
environment Dev: Zen Cart 156c; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
packages / add-ons:
ckeditor ; clone template 1.2.0; payment module fee; Direct bank Deposit V1.5.revised; zencart155 securepayxml (modified); ozpost v4.2.7;
ceon_back_in_stock_notifications.9 (modified); export_shipping_information_V1.3.5 (modified);
edit_orders-4.3.5; master password 4; admin log in as customer; ZCA bootstrap template-for-156-v2.0.0c; image checker 2.0; sales report 3.2.2; email archive manager 1-8e; zenNoncaptcha v0.5
-
Re: ZCA Bootstrap Template
Hi:
I really like this template.
I do have a couple of small questions.
1 - I want my logo to go into the banner box sidebox and to eliminate the logo wrapper and tagline thereby moving the content closer to the top of the page. I want to eliminate the bannerboxHeading to do this. In the responsive classic template I just put bannerboxHeading{ display: none;} to make it disappear.
This is what I am looking for: billiardsplusonline.com
I have tried that on the bootstrap template with no success. Can someone help me?
2 - I want to eliminate the Information heading in the mobile menu. I am using the Flexible Footer Menu and don't need the Information side menu. I tried researching that on the forums but to no avail. What file do I need to edit to eliminate that heading?
My site is poolcuesexpressdotcom/156ctest
Any help would be appreciated.
Dave
-
Re: ZCA Bootstrap Template
For your first point, I did the same thing on a customers site. I can send you the files through email, if you like.
What I did is creating a new sidebox called logo, and commented out the logo code in the header.
Quote:
Originally Posted by
top hatt
Hi:
I really like this template.
I do have a couple of small questions.
1 - I want my logo to go into the banner box sidebox and to eliminate the logo wrapper and tagline thereby moving the content closer to the top of the page. I want to eliminate the bannerboxHeading to do this. In the responsive classic template I just put bannerboxHeading{ display: none;} to make it disappear.
This is what I am looking for: billiardsplusonline.com
I have tried that on the bootstrap template with no success. Can someone help me?
2 - I want to eliminate the Information heading in the mobile menu. I am using the Flexible Footer Menu and don't need the Information side menu. I tried researching that on the forums but to no avail. What file do I need to edit to eliminate that heading?
My site is poolcuesexpressdotcom/156ctest
Any help would be appreciated.
Dave
-
Re: ZCA Bootstrap Template
Hi:
Thanks for your hint but I don't want to comment out the code in the header but the header itself.
Dave
-
Re: ZCA Bootstrap Template
Quote:
Originally Posted by
top hatt
Hi:
Thanks for your hint but I don't want to comment out the code in the header but the header itself.
Dave
Then you can just comment out more. Until the desired result is reached.
-
Re: ZCA Bootstrap Template
Hi:
I'm sorry but just don't know enough about the code to use some unpublished code from someone I don't know. I had a bad turn previously.
Dave