Re: ZCA Bootstrap 4 Template [Support Thread]
Zc v157c
Zca bootstrap 4 v3.1.2
PHP 7.4 or 8.05
Hi guys, I am uprading to the latest Zencart version 1.5.7 with ZCA 3.1.2 and I have a problem at checkout where the payment selection methods page comes up blank(/index.php?main_page=checkout_payment).
The error in the log is
PHP Fatal error: Cannot declare class ot_coupon, because the name is already in use in /includes/modules/order_total/ot_coupon.php on line 14
I tried solutions from older threads without succes. The ot_coupon.php is the only core-file overwrite of the template which was copied replacing the original(no changes on original distribution). Any tips are appreciated as the next stage is to rebuilt the installation from the begining.
Thanks
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
Georgecy
Zc v157c
Zca bootstrap 4 v3.1.2
PHP 7.4 or 8.05
Hi guys, I am uprading to the latest Zencart version 1.5.7 with ZCA 3.1.2 and I have a problem at checkout where the payment selection methods page comes up blank(/index.php?main_page=checkout_payment).
The error in the log is
PHP Fatal error: Cannot declare class ot_coupon, because the name is already in use in /includes/modules/order_total/ot_coupon.php on line 14
I tried solutions from older threads without succes. The ot_coupon.php is the only core-file overwrite of the template which was copied replacing the original(no changes on original distribution). Any tips are appreciated as the next stage is to rebuilt the installation from the begining.
Thanks
Could you post the full contents of that log?
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
Could you post the full contents of that log?
[23-Jun-2021 15:33:06 UTC] PHP Fatal error: Cannot declare class ot_coupon, because the name is already in use in /Applications/Abyss Web Server/htdocs/ZC/includes/modules/order_total/ot_coupon.php on line 16
Re: ZCA Bootstrap 4 Template [Support Thread]
Noting that the full log-record will also indicate the page on which the issue was raised. I'm unable to reproduce this with the template running on zc157c and PHP 7.3.
Are there any additional order-total modules or other plugins that might be affecting the checkout processing?
Re: ZCA Bootstrap 4 Template [Support Thread]
Is there any interest in adding a user-configurable number of products per page on the listing page to this template? So the default number would be MAX_DISPLAY_PRODUCTS_LISTING, which would be a low number like 20 or 25, but users could choose larger numbers (50/100/200 for example).
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
swguy
Is there any interest in adding a user-configurable number of products per page on the listing page to this template? So the default number would be MAX_DISPLAY_PRODUCTS_LISTING, which would be a low number like 20 or 25, but users could choose larger numbers (50/100/200 for example).
While the original "product listing grid" mod had a user-selectable format choice, its implementation was clunky, so it was excluded.
While one can find lots of sites that offer user-selectable increments, in practice I find that the best usability is to set a reasonable number and just be consistent. Often more is better, unless your images are poorly optimized ... in which case, optimize your thumbnails and set the qty per page to be something like 50, which lets users get the big picture easily, and not be confused with too many choices on-screen.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
jasonshanks
I found that if I set Configuration > Product Listing > Columns Per Row -> [0]
Then in includes > modules > YOUR_TEMPLATE > product_listing.php
Around Line: 422
Change
Code:
'params' => 'class="card mb-3 p-3 centerBoxContentsListing text-center h-100 "' . $style,
to
Code:
'params' => 'class="card mb-3 p-3 centerBoxContentsListing text-center h-100 "',
I just removed the inline styling variable and the width / layout is looking great.
I am not sure if this is a perfect fixed but it is doing/looking exactly the way I want.
I apologise if this has been fixed further down the thread.
Re: ZCA Bootstrap 4 Template [Support Thread]
I've just submitted v3.1.3 of the Bootstrap-4 template for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#59: Correct duplicate sort-orders present in color configurations added in v3.1.2.
#61: Correct small-screen layout on shopping_cart page, required horizontal scroll.
#63: Remove redundant code from product_listing.php.
#64: Use common image sizing for all centerbox displays.
#65: Add 'specificity' to addresses to correct browsers' auto-fill.
#67: Add .clearBoth class styling to the template's base stylesheet.
#69: Use bootstrap message styling for the "Place Order" shopping-for message.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v3.1.3 of the Bootstrap-4 template for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#59: Correct duplicate sort-orders present in color configurations added in v3.1.2.
#61: Correct small-screen layout on shopping_cart page, required horizontal scroll.
#63: Remove redundant code from product_listing.php.
#64: Use common image sizing for all centerbox displays.
#65: Add 'specificity' to addresses to correct browsers' auto-fill.
#67: Add .clearBoth class styling to the template's base stylesheet.
#69: Use bootstrap message styling for the "Place Order" shopping-for message.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191
Re: ZCA Bootstrap 4 Template [Support Thread]
I'd like to force the listing pages to use larger product images/fewer columns - I know that Product Listing > Columns per Row is recommended to be 0; is there another option?