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
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?
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).
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
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.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.