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

ZCA Bootstrap 4 Template [Support Thread]

Views: 542,568

Results 961 to 980 of 1,686
8 Apr 2023, 12:43 PM
#961
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

ZCA Bootstrap 4 Template [Support Thread]

New install Zen 1.5.8a, PHP 7.3, Bootstrap 3.5.2, OPC 2.4.5 w/o guest checkout enabled.

Error:
[08-Apr-2023 08:32:23 America/New_York] Request URI: /xxxxx/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
--> PHP Parse error: syntax error, unexpected '.' in /home/xxxxx/public_html/xxxxx/includes/templates/bootstrap/templates/tpl_ajax_checkout_confirmation_default.php on line 321.

Broken piece

<div id="checkoutConfirmationDefault-btn-toolbar" class="btn-toolbar justify-content-between confirm-order" role="toolbar">
<?php echo [B]'<strong'> .[/B] $title_continue_checkout . '</strong><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?>
<?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?>
</div>

Error prevents checkout using PayPal Pro

8 Apr 2023, 4:08 PM
#962
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Re: ZCA Bootstrap 4 Template [Support Thread]

mprough:

New install Zen 1.5.8a, PHP 7.3, Bootstrap 3.5.2, OPC 2.4.5 w/o guest checkout enabled.

Error:
[08-Apr-2023 08:32:23 America/New_York] Request URI: /xxxxx/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 134.215.175.155
--> PHP Parse error: syntax error, unexpected '.' in /home/xxxxx/public_html/xxxxx/includes/templates/bootstrap/templates/tpl_ajax_checkout_confirmation_default.php on line 321.

Broken piece

<div id="checkoutConfirmationDefault-btn-toolbar" class="btn-toolbar justify-content-between confirm-order" role="toolbar"> <?php echo [B]'<strong'> .[/B] $title_continue_checkout . '</strong><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?> <?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?> </div> ``` > > > Error prevents checkout using PayPal Pro

Move the Quote thus

<div id="checkoutConfirmationDefault-btn-toolbar" class="btn-toolbar justify-content-between confirm-order" role="toolbar">
<?php echo [B]'<strong>' .[/B] $title_continue_checkout . '</strong><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?>
<?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?>
</div>

I have submitted a pull request, but it has not been actioned yet.

10 Apr 2023, 11:54 AM
#963
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,279
Plugin Contributions:
37

Re: ZCA Bootstrap 4 Template [Support Thread]

I know how to fix it =) I was reporting it so Lat could get it resolved

10 Apr 2023, 12:17 PM
#964
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

mprough:

I know how to fix it =) I was reporting it so Lat could get it resolved
PR has been accepted. I was waiting to see if there are any other issues reported and, if not, I'll get v3.5.3 released this week.

15 Apr 2023, 12:45 PM
#965
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

v3.5.3 of the ZCA Bootstrap Template is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191

This release contains corrections for the following GitHub issues:

#231: Correct PHP Parse error when payment methods "collect credit card data on-site".
#232: Correct PHP Warning logged by shopping_cart template.
#233: Correct products' model alignment on listing pages.
#234: Add language constant added for zc158 that doesn't exist in zc157.
#235: Add missing text 'lead-in' for products' quantity on listing pages.

17 Apr 2023, 7:00 PM
#966
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Not sure if this is bootstrap related, 1.5.8a related, or just something messed up in my settings.

I have a 20% off coupon with restrictions: Only allow on Category A. Category A has one product.

I added that product to my order along with an indifferent item from Category B.

Problem 1: The 20% discount being taken off is MORE than 20%. It's almost like it's factoring in tax or something?

Problem 2: The TOTAL doesn't add up correctly. It's actually shorting me out money since the total should be higher.

This screenshot should help: Attachment 20259

And here is my Coupon Settings which appear to be correct (allowing the 20% discount to only apply to items in that category): Attachment 20260

And here are the settings for the ot_coupon, where I don't have it calculating tax or shipping: Attachment 20261

Can anyone help explain why those two problems are happening?

EDIT: It's definitely related to tax in some way. I did a test with an account that didn't have tax and it calculated fine. So for some reason, the discount is being influenced by the tax, and it's miscalculating the total. Perhaps something to do with the ORDER in which the discount is applied and total is calculated?

17 Apr 2023, 8:39 PM
#967
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

In reference to the issue above, I was able to solve Problem #2 (subtotal being incorrect). This is related to the sorting order of the Order Total Modules. If I had the ot_coupon lower than the ot_tax (on the checkout page), then the ot_total was incorrect.

By changing the Sort Order so that ot_coupon was displayed higher (meaning it has a lower sort order value) than the ot_tax, that seems to have corrected the ot_total calculation.

I still cannot figure out WHY problem #1 is still happening: the coupon discount is being affected by something whenever it's used in a region with sales tax, even though I don't have sales tax being factored into my ot_coupon settings.

17 Apr 2023, 9:15 PM
#968
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

Jeff_Mash:

I still cannot figure out WHY problem #1 is still happening: the coupon discount is being affected by something whenever it's used in a region with sales tax, even though I don't have sales tax being factored into my ot_coupon settings.

Man, I'm sorry for all these posts, but I find more information after I post something!

So the issue with Problem #1 doesn't seem to be related to tax, because I reproduced it on an order without tax.

Check out this example: Attachment 20262

As you can see, it works fine with the one item (which qualifies for the discount). But when I add a second item which isn't part of the discount category, the 20% value isn't calculated correctly.

Any ideas?

17 Apr 2023, 11:12 PM
#969
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

@Jeff_Mash, you need to post these questions in the "Discounts/Coupons" thread, since they're targeted at ot_coupon's misbehaving.

22 Apr 2023, 5:00 PM
#970
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

how to install this template?

22 Apr 2023, 5:05 PM
#971
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

ckosloff:

how to install this template?

It's always worth first checking the instructions included with any template or plugin. There is a readme.html file in the docs folder of the downloaded template that will have what you need.

25 Apr 2023, 1:11 AM
#972
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I downloaded zip file and uncompressed but don't see any installation instructions.
I would like to use it from now on.
Please post installation instructions or point me in the right direction.
Thank you,
CK

25 Apr 2023, 2:40 AM
#973
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

ckosloff:

I downloaded zip file and uncompressed but don't see any installation instructions.
I would like to use it from now on.
Please post installation instructions or point me in the right direction.
Thank you,
CK
Since you've unzipped the distribution file, you'll see a /docs/bootstrap directory; the readme.html is in there.

27 Apr 2023, 2:34 PM
#974
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Re: ZCA Bootstrap 4 Template [Support Thread]

The ajax_search has a message 'ajaxTimeoutErrorMessage. But it is never defined.

includes\templates\bootstrap\jscript\ajax_search.js line 48

alert(ajaxTimeoutErrorMessage);

So if there is a timeout the pages seems to hang and the user does not know there has been a timeout.
If you have the debug consol open, you can see the message "Uncaught ReferenceError: ajaxTimeoutErrorMessage is not defined"

27 Apr 2023, 2:40 PM
#975
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

brittainmark:

The ajax_search has a message 'ajaxTimeoutErrorMessage. But it is never defined.

includes\templates\bootstrap\jscript\ajax_search.js line 48

alert(ajaxTimeoutErrorMessage);

> 
> So if there is a timeout the pages seems to hang and the user does not know there has been a timeout.
> If you have the debug console open, you can see the message "Uncaught ReferenceError: ajaxTimeoutErrorMessage is not defined"
That's not good! :(  GitHub issue opened: <https://github.com/lat9/ZCA-Bootstrap-Template/issues/237>
28 Apr 2023, 9:24 PM
#976
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

I installed template into my test site but could not launch site because got blank page.
I could access the admin but template selector did not show bootstrap.
What I did:
renamed admin folder but did not copy it over, I used my file manager to split screen and opened both admins, then copied the downloaded files into the test site's folder, so I did content to content not folder to folder. Could this be the cause?
I do have a backup of site and could restore it, but it would not have bootstrap

28 Apr 2023, 9:41 PM
#977
lat9 avatar

lat9

Administrator

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

Re: ZCA Bootstrap 4 Template [Support Thread]

  1. If you get a blank page (aka whitescreen), there's a myDEBUG*.log file in the site's /logs directory indicating what the problem is.
  2. The bootstrap template doesn't automatically become your site's template, you need to use the admin's Tools :: Template Selection.
  3. When copying the files from the distribution, all the files in the /YOUR_ADMIN directory need to be copied to your site's admin directory; all files in the /includes directory need to be copied to your site's /includes directory.
9 May 2023, 4:34 PM
#978
zamzom avatar

zamzom

New Zenner

Join Date:
Jun 2009
Location:
Europe
Posts:
60
Plugin Contributions:
0

Re: ZCA Bootstrap 4 Template [Support Thread]

[ZC 1.5.8][Bootstrap 3.5.2]
Back-to-top button is sometimes covering important buttons.
This is may be more of a style question but is there a way to push this button towards outside the main block meanwhile reducing rest of the block size especially on desktop view?
Attachment 20287

9 May 2023, 5:44 PM
#979
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: ZCA Bootstrap 4 Template [Support Thread]

Possibly just moving the button will work for you.

You might try putting this in your site specific css file:

#back-to-top {right:50%;}
```This centers the button in the center of the page just above the footer.  Should be out of the way of everything and will stay in the center no matter the screen size.

You may need to adjust the percentage silghtly for mobile portrait to make it centered better.
9 May 2023, 8:29 PM
#980
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,685
Plugin Contributions:
56

Re: ZCA Bootstrap 4 Template [Support Thread]

Adding a currency select dropdown in the footer - works but the list of options shown when you click is quite a way from the cursor position. No idea why. Any ideas?

Attachment 20288