Re: ZCA Bootstrap 4 Template [Support Thread]
Every Zen Cart version has a README with recommended PHP settings.
If you can't find a README you could look at github and search for older releases. There always is a README. Zen Cart is well documented.
I looked it up for you.
-> https://github.com/zencart/zencart/releases
-> https://github.com/zencart/zencart/blob/v158/README.md
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
amebb
Hi, very inresting what you say about Php...
On my site i am using PHP 7.4.33. If i was to update that version to php 8.1 would it cause any issues too my site?
My site version is V.1.5.8a
Thank you
Zencart itself would run better at 8.1 is the recomended php. Your plugins could be a whole different story. You would have to look at each one and see what php version it supports, and then do upgrades and testing. Many plugins list an old supported php, but just kept working so there was no update. Some you have to dig through the forum to find the correct tweak for. Some you can fix using the php update doc: https://docs.zen-cart.com/dev/plugins/php_updating/
And some are just broken
OR you can just hire someone like lat9 to figure it all out for you.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
siliconbug
I finally figured out the issue of the price display box after upgrading to ZCA Bootstrap Template v3.7.x.
My site is running ZC v1.5.8a w/ PHP v7.4
After switching to PHP v8.1, the price display box shows up with ZCA Bootstrap Template v3.7.x correctly.
It looks like some functions in ZCA Bootstrap Template v3.7.x don't work well with PHP v7.4
Maybe a note can be added to remind people who still use PHP v7.4?
Nice sleuthing! With that information, I am able to recreate the issue under PHP 7.4.
The root-cause is the additional check on lines 192
Code:
if ($display_price_top === true && zen_get_products_display_price((int)$_GET['products_id']) > 0) {
and line 241
Code:
if ($display_price_bottom === true && zen_get_products_display_price((int)$_GET['products_id']) > 0) {
The zen_get_products_display_price function returns a string similar to
Code:
<span class="mx-auto w-100 p-1 productBasePrice">$35.99</span>
which fails the > 0 test on PHP 7.4 but passes on PHP 8.0+. Go figure. I'll get that worthless clause removed from v3.7.2 of the template.
See this GitHub issue for resolution: https://github.com/lat9/ZCA-Bootstra...ate/issues/414
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
The changes work on PHP v7.4, thanks!
Re: ZCA Bootstrap 4 Template [Support Thread]
Is the bootstrap version of tpl_order_status_default.php compatible with OPC so that guests can look up order status? I have overridden zc158a core files includes/templates/default/templates/tpl_order_status_default.php and includes/modules/pages/order_status/header_php.php with the OPC versions as instructed, but what should be used for tpl_order_status_default.php in bootstrap with OPC?
Dave
zc158a, OPC 2.5.2, ZCA Bootstrap 3.7.1
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Dave224
Is the bootstrap version of tpl_order_status_default.php compatible with OPC so that guests can look up order status? I have overridden zc158a core files includes/templates/default/templates/tpl_order_status_default.php and includes/modules/pages/order_status/header_php.php with the OPC versions as instructed, but what should be used for tpl_order_status_default.php in bootstrap with OPC?
Dave
zc158a, OPC 2.5.2, ZCA Bootstrap 3.7.1
That template is compatible with OPC; for bootstrap, the template's tpl_order_status_default.php should be used.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Shop Suey
Even quicker is to go to https://docs.zen-cart.com/ and click on Server Requirements. The docs are your friend.
Re: ZCA Bootstrap 4 Template [Support Thread]
v3.7.2 of the ZCA Bootstrap Template is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191
This release contains changes associated with the following GitHub issues:
#401: AJAX search's product count can be 'off' (again); variant-managed products might again 'explode' the count!
#404: Correct HTML id parameter in shipping-estimator modal.
#405: Use language-constant for modal shipping-estimator instead of hard-coded English.
#407: Reformat shipping-estimator layout to use 2-column display on medium and above viewports.
#409: Correct AJAX search not including keywords in a product's description; note, new configuration setting added!.
#410: Correct accessibility issue with shopping_cart page's template.
#413: Remove pre-zc158 processing from AJAX search class.
#414: Restore product-pricing display when the site's running on PHP 7.4.
Re: ZCA Bootstrap 4 Template [Support Thread]
Hi
Am experimenting with using bootstrap template for my next upgrade - downloaded latest version and I am tinkering with it.
Generally loving it, however I can't get font awesome social icons to work - have tried a number of permutations of v5 and v6 FA - I see conflicting info on what version is applicable.
If someone could please tell me how to get a facebook, pinterest and insta icons to appear please let me know.
Re: ZCA Bootstrap 4 Template [Support Thread]
have you tried something like:
Code:
<a class="nav-link" href="https://www.instagram.com/mygramthing/" target="_blank" rel="noopener"><i class="fab fa-lg fa-instagram"></i></a>
for fa 6 you might need to do:
Code:
<i class="fa-brands fa-instagram"></i>
or
<i class="fa-brands fa-square-instagram"></i>