Zen Cart Logo
Forums / Addon Templates / ZCA Bootstrap 4 Template [Support Thread]

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,567

Results 901 to 920 of 1,686
28 Dec 2022, 2:16 AM
#901
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

ZCA Bootstrap 4 Template [Support Thread]

lat9:

@todoonada, was this a fresh install of the template on zc158? Since you aren't seeing any bootstrap-based sideboxes indicated, perhaps a click of the "Reset Settings" button, at the bottom of the admin's Layout Controller page?

@lat9
I made an upgrade from bootstrap 3.4.0.
I already tried the reset. No change. I also checked the database and there are no irregularities in the entry for the information sidebox.
I do not want to make a fresh install, because I already applied a lot of my modifications.

28 Dec 2022, 3:11 AM
#902
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

OK, I found the error.
For an unknown reason the rights to the folder includes/modules/sideboxes/bootstrap was set to 744 (rwxr--r--). Changing to 755 (rwxr-xr-x) solved the problem.
Sorry for wasting your time with this stupid error.

28 Dec 2022, 12:44 PM
#903
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

todoonada:

OK, I found the error.
For an unknown reason the rights to the folder includes/modules/sideboxes/bootstrap was set to 744 (rwxr--r--). Changing to 755 (rwxr-xr-x) solved the problem.
Sorry for wasting your time with this stupid error.
Thanks for reporting back what the issue was! That wasn't a waste of my time and it lets me and others to make sure that the permissions for any newly-added sub-directories need to be verified.

4 Jan 2023, 3:49 PM
#904
icemint avatar

icemint

New Zenner

Join Date:
Jan 2008
Posts:
32
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

ZCA Bootstrap Template - Version: v3.5.0 returns empty entries in Change the Shipping Address at check out.
I've installed this template in Zen-cart version 1.5.7d.
Attachment 20184

4 Jan 2023, 4:23 PM
#905
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

icemint:

ZCA Bootstrap Template - Version: v3.5.0 returns empty entries in Change the Shipping Address at check out.
I've installed this template in Zen-cart version 1.5.7d.
Attachment 20184
Dang it! Change line 51 of /includes/templates/{template_name}/templates/tpl_modules_checkout_address_book.php from

    $address_details = (zen_get_zcversion() >= '1.5.8') ? $address['address'] : $address[B]->fields[/B];

to

    $address_details = (zen_get_zcversion() >= '1.5.8') ? $address['address'] : $address;

That'll be corrected in v3.5.1 of the template; thanks for the report.

GitHub issue: https://github.com/lat9/ZCA-Bootstrap-Template/issues/190

21 Jan 2023, 9:39 PM
#906
barbie avatar

barbie

New Zenner

Join Date:
Jan 2023
Location:
Mississippi
Posts:
5
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I am using a new install of ZC 1.5.8 - PHP 8.1
I added Easy Populate 4.0
Then I added ZCA Bootstrap Template 3.5 plugin
Server info is below.

I made the change to fix the blank page problem for Easy Populate and uploaded products.
Added the Bootstrap template and changed colors and other settings.

At some point I lost the Search box in the very top header. I have a magnifying glass icon but no text box next to it.
Then I tried to use "Products to Categories" in Admin under Catalog and I get a blank page.
I'm also noticing that it seems to take a long time for pages in Admin to load - I have broadband so it isn't my connection.

cPanel Version 102.0 (build 26)
Apache Version 2.4.55
PHP Version 8.1.14
MySQL Version 5.7.23-23
Architecture x86_64
Operating System linux
Perl Version 5.16.3
Kernel Version 4.19.150-76.ELK.el7.x86_64

22 Jan 2023, 12:35 AM
#907
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

The bootstrap template doesn't use a search-box next to the icon, you click on the icon and a 'modal' form pops up to enable the search keywords' entry.

For the admin issue, you can install the "Display Logs" plugin that comes with zc158 (Modules :: Plugins) and that will let you see the debug-logs that were generated during the admin access. Please note that that's a separate issue and should be 'reported' on the forums with a brand-new post. If you include the contents of that admin log, be sure to xxx-out the name of your admin directory for security.

22 Jan 2023, 2:19 AM
#908
barbie avatar

barbie

New Zenner

Join Date:
Jan 2023
Location:
Mississippi
Posts:
5
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

The bootstrap template doesn't use a search-box next to the icon, you click on the icon and a 'modal' form pops up to enable the search keywords' entry.

For the admin issue, you can install the "Display Logs" plugin that comes with zc158 (Modules :: Plugins) and that will let you see the debug-logs that were generated during the admin access. Please note that that's a separate issue and should be 'reported' on the forums with a brand-new post. If you include the contents of that admin log, be sure to xxx-out the name of your admin directory for security.

Which forum should I use for the 'products to categories' blank page issue? I'm uncertain as to which installation is causing it.

This is the debug log

[21-Jan-2023 18:57:16 America/Boise] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /includes/functions/functions_categories.php on line 860

[21-Jan-2023 18:57:16 America/Boise] Request URI: /*****/index.php?cmd=products_to_categories, IP address: 138.84.230.249
--> PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /includes/functions/functions_categories.php on line 860.

22 Jan 2023, 12:45 PM
#909
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Barbie:

Which forum should I use for the 'products to categories' blank page issue? I'm uncertain as to which installation is causing it.

This is the debug log

[21-Jan-2023 18:57:16 America/Boise] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /includes/functions/functions_categories.php on line 860

[21-Jan-2023 18:57:16 America/Boise] Request URI: /*****/index.php?cmd=products_to_categories, IP address: 138.84.230.249
--> PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /includes/functions/functions_categories.php on line 860.
I'll suggest the "General Questions" thread.

23 Jan 2023, 12:35 AM
#910
valencia avatar

valencia

New Zenner

Join Date:
Jul 2010
Location:
England
Posts:
17
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi,

I hope I am in the right area to post this question.

I am working on upgrading my cart and everything is going smoothly, the only thing that is driving me slightly mad is the shopping cart update icon Fontawesome now shows up as the button_update_cart.png image.
If I switch back to responsive classic its still the .png image that is showing.
All my other Fontawesome graphics are showing just fine, just not this one.
On zc157d and Bootstrap 3.1.2 the cart update button (fas fa-sync-alt) shows up perfectly and enhanced with css styling.

Is there anyway to get the css button instead of the image.

I have zc158 installed
Bootstrap 4 template
PhP 7.4

23 Jan 2023, 1:27 AM
#911
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Crud, something in the base shopping-cart rendering of that update image changed between zc157 and zc158. The bootstrap template tries to change that image to an FA icon, but somethings' gone amiss.

GitHub tracking issue: https://github.com/lat9/ZCA-Bootstrap-Template/issues/192

23 Jan 2023, 1:47 AM
#912
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

Crud, something in the base shopping-cart rendering of that update image changed between zc157 and zc158. The bootstrap template tries to change that image to an FA icon, but somethings' gone amiss.

GitHub tracking issue: https://github.com/lat9/ZCA-Bootstrap-Template/issues/192
While you're waiting for v3.5.1 of the template to be released, you can edit /includes/modules/pages/shopping_cart/header_php_shopping_cart_zca_bootstrap.php, changing this section

for ($i = 0, $n = count($productArray); $i < $n; $i++) {
    $productArray[$i]['buttonUpdate'] = preg_replace(
        '/(<input type="image".*?\?>)(.*)/', '<button type="submit" class="btn" aria-label="' . ICON_UPDATE_ALT . '" title="' . ICON_UPDATE_ALT . '"><i aria-hidden="true" class="fas fa-sync-alt"></i></button>$2',
        $productArray[$i]['buttonUpdate']
    );  
}

to read

for ($i = 0, $n = count($productArray); $i < $n; $i++) {
    $productArray[$i]['buttonUpdate'] = preg_replace(
        '/(<input type="image".*?\/[B]?[/B]>)(.*)/', '<button type="submit" class="btn" aria-label="' . ICON_UPDATE_ALT . '" title="' . ICON_UPDATE_ALT . '"><i aria-hidden="true" class="fas fa-sync-alt"></i></button>$2',
        $productArray[$i]['buttonUpdate']
    );  
}

The underlying issue is that zc158 now renders that input without the /> at the end, just a >.

23 Jan 2023, 1:49 PM
#913
valencia avatar

valencia

New Zenner

Join Date:
Jul 2010
Location:
England
Posts:
17
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Thanks Lat9 your solution has restored my sanity, it works a charm. :D

I spent yesterday concentrating on includes/templates/MY_Template/templates/tpl_shopping_cart_default.php, wrongly thinking it must have been the problem.
:cheers:

23 Jan 2023, 4:31 PM
#914
valencia avatar

valencia

New Zenner

Join Date:
Jul 2010
Location:
England
Posts:
17
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Hi,

I have found just one more thing, the sold out gif image appears on the products listing and product info pages instead of css.
This only occurs on On zc158 and Bootstrap 4 and didn't occur on zc157d.
To over come this I have modified the following file includes/functions/functions_general.php. and reverted the code to a previous level as below.

I changed this code.

        case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
            global $template;
            $image = BUTTON_IMAGE_SOLD_OUT; 
            $alt = BUTTON_SOLD_OUT_ALT; 
            $return_button = '<span class="text-center">' . zen_image($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', '') . '</span>'; 
            $zco_notifier->notify('NOTIFY_ZEN_SOLD_OUT_IMAGE', array_merge($button_check->fields, ['products_id' => (int)$product_id]), $return_button);
            break;

With code from previous version.

    case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
      if ($_GET['main_page'] == zen_get_info_page($product_id)) {
        $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
      } else {
        $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
      }
      break;

Don't know weather this is any good, but it works.

23 Jan 2023, 7:19 PM
#915
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Valencia:

Hi,

I have found just one more thing, the sold out gif image appears on the products listing and product info pages instead of css.
This only occurs on On zc158 and Bootstrap 4 and didn't occur on zc157d.
To over come this I have modified the following file includes/functions/functions_general.php. and reverted the code to a previous level as below.

I changed this code.

    case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
        global $template;
        $image = BUTTON_IMAGE_SOLD_OUT; 
        $alt = BUTTON_SOLD_OUT_ALT; 
        $return_button = '<span class="text-center">' . zen_image($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', '') . '</span>'; 
        $zco_notifier->notify('NOTIFY_ZEN_SOLD_OUT_IMAGE', array_merge($button_check->fields, ['products_id' => (int)$product_id]), $return_button);
        break;
> 
> With code from previous version.
> 
> ```
    case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
      if ($_GET['main_page'] == zen_get_info_page($product_id)) {
        $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
      } else {
        $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
      }
      break;

Don't know weather this is any good, but it works.
I'll be updating the template to recognize that new notification for zc158+ and "do the right thing".

See this GitHub issue for tracking: https://github.com/lat9/ZCA-Bootstrap-Template/issues/196

24 Jan 2023, 8:55 AM
#916
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Zencart version 1.58 (Fresh Install)
Template: Bootstrap (cloned)
PHP: 7.4

I think I fixed my issue with paypal pro by grabbing some code on github for paypaldp. However, I still have issues with not being able to pay using a credit card. When I click the CONTINUE button nothing happens.template thinking maybe it may be something with bootstrap. I still get the same issue.

The logs give this message. I have searched on and off this forum and can't find what the problem is.

[24-Jan-2023 01:56:02 America/New_York] Request URI: /xxxxx/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: xxx.xxx.xxx.xxx
#1 require_once() called at [/home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php:158]
#2 zcAjaxPayment->prepareConfirmation() called at [/home/xxxxx/public_html/xxxxx/ajax.php:85]
--> PHP Warning: require_once(/home/xxxxx/public_html/xxxxx/includes/languages/english.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php on line 158.

[24-Jan-2023 01:56:02 America/New_York] PHP Fatal error: require_once(): Failed opening required '/home/xxxxx/public_html/xxxxx/includes/languages/english.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php on line 158

24 Jan 2023, 12:38 PM
#917
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

printchic:

Zencart version 1.58 (Fresh Install)
Template: Bootstrap (cloned)
PHP: 7.4

I think I fixed my issue with paypal pro by grabbing some code on github for paypaldp. However, I still have issues with not being able to pay using a credit card. When I click the CONTINUE button nothing happens.template thinking maybe it may be something with bootstrap. I still get the same issue.

The logs give this message. I have searched on and off this forum and can't find what the problem is.

[24-Jan-2023 01:56:02 America/New_York] Request URI: /xxxxx/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: xxx.xxx.xxx.xxx
#1 require_once() called at [/home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php:158]
#2 zcAjaxPayment->prepareConfirmation() called at [/home/xxxxx/public_html/xxxxx/ajax.php:85]
--> PHP Warning: require_once(/home/xxxxx/public_html/xxxxx/includes/languages/english.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php on line 158.

[24-Jan-2023 01:56:02 America/New_York] PHP Fatal error: require_once(): Failed opening required '/home/xxxxx/public_html/xxxxx/includes/languages/english.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php on line 158

That's a known issue with zc158, which will be corrected on the next release. See this GitHub 'commit' for the change-related details: https://github.com/zencart/zencart/commit/ed3597a64c2bc4cbe38398a917a7a5d3d97f9e56

24 Jan 2023, 3:51 PM
#918
printchic avatar

printchic

New Zenner

Join Date:
May 2009
Posts:
66
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

lat9:

That's a known issue with zc158, which will be corrected on the next release. See this GitHub 'commit' for the change-related details: https://github.com/zencart/zencart/commit/ed3597a64c2bc4cbe38398a917a7a5d3d97f9e56

I have already applied this fix but it still got the following message;
**
"PHP Warning: require_once(/home/xxxxx/public_html/xxxxx/includes/languages/english.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/xxxxx/includes/classes/ajax/zcAjaxPayment.php on line 158."**

When I go to that directory "english.php" doesn't exist. Instead it's now called "lang.english.php" however the code is looking for "english.php".

FIX:

I added 'lang.' to the code and it works. I can now click the CONTINUE button when paying by credit card and it takes me to the next page to verify my order details".

The code now looks like this: ```php
require_once(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES, 'lang.' . $_SESSION['language'].'.php', 'false'));

5 Feb 2023, 9:45 AM
#919
gsh68 avatar

gsh68

Zen Follower

Join Date:
Mar 2011
Posts:
103
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Is there a way to get a sidebox to show in mobile view?
When using a sidebox for banners for announcements (away/shipping delays etc) it's all fine in desktop view but missing in mobile view.

If not possible is there a way for a wide-banner at the top of the page to not be hidden by the navigation bar? It displays under the footer fine in both desktop and mobile view but is hidden at the top.

Thanks.

5 Feb 2023, 1:20 PM
#920
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

gsh68:

Is there a way to get a sidebox to show in mobile view?
When using a sidebox for banners for announcements (away/shipping delays etc) it's all fine in desktop view but missing in mobile view.

If not possible is there a way for a wide-banner at the top of the page to not be hidden by the navigation bar? It displays under the footer fine in both desktop and mobile view but is hidden at the top.

Thanks.
Appreciate the report; that wide-banner at the top of each page has been obfuscated by the navigation bar forever!

GitHub tracking issue: https://github.com/lat9/ZCA-Bootstrap-Template/issues/200