Re: One-Page Checkout [Support Thread]
ZC 2.0.1 Bootstrap template and OPC.
Is there a way to control the layout of the checkout page in the Admin, or is it CSS or template-based?
I currently have the checkout information displayed in 3 columns underneath the text Checkout, with each column being 1/3 of the width of the container.
I want each component of the checkout section to take up the fill width of the container.
I've achieved this result in a browser using development tools, but am unsure of the correct way to go about it.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
mikecnz
ZC 2.0.1 Bootstrap template and OPC.
Is there a way to control the layout of the checkout page in the Admin, or is it CSS or template-based?
I currently have the checkout information displayed in 3 columns underneath the text Checkout, with each column being 1/3 of the width of the container.
I want each component of the checkout section to take up the fill width of the container.
I've achieved this result in a browser using development tools, but am unsure of the correct way to go about it.
That page's layout is template-based. Take a look at tpl_checkout_one_default.php and you'll see that each of the "blocks" on that page is its own element. You can re-arrange in your version of Bootstrap, changing the number of columns as well as the ordering of those "blocks".
Re: One-Page Checkout [Support Thread]
v2.5.3 of One-Page Checkout is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095
This release contains changes associated with the following GitHub issues:
#417: Correct PHP Warning when $_SESSION['opc_saved_order_total'] isn't set and debug is enabled.
#418: Correct PHP Warning during AJAX processing when $_SESSION['shipping'] isn't set and debug is enabled.
#419: Ensure that guest-checkout customers/address_book entries actually exist.
Re: One-Page Checkout [Support Thread]
ZC 2.0.1
Php 8.3
Bootstrap template
OPC. 2.5.3
I am getting the following error while trying to checkout:
Code:
[12-Aug-2024 00:54:08 UTC] PHP Fatal error: Uncaught TypeError: CouponValidation::is_product_valid(): Argument #1 ($product_id) must be of type int, string given, called in /includes/functions/functions_gvcoupons.php on line 90 and defined in /includes/classes/CouponValidation.php:14
Stack trace:
#0 /includes/functions/functions_gvcoupons.php(90): CouponValidation::is_product_valid()
#1 /includes/modules/order_total/ot_coupon.php(635): is_product_valid()
#2 /includes/modules/order_total/ot_coupon.php(138): ot_coupon->get_order_total()
#3 /includes/classes/order_total.php(72): ot_coupon->process()
#4 /includes/modules/pages/checkout_one/header_php.php(347): order_total->process()
#5 /index.php(35): require('/home/zch1akhw6...')
#6 {main}
thrown in /includes/classes/CouponValidation.php on line 14
Any help please
Thank you in advance
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
nicksab
ZC 2.0.1
Php 8.3
Bootstrap template
OPC. 2.5.3
I am getting the following error while trying to checkout:
Code:
[12-Aug-2024 00:54:08 UTC] PHP Fatal error: Uncaught TypeError: CouponValidation::is_product_valid(): Argument #1 ($product_id) must be of type int, string given, called in /includes/functions/functions_gvcoupons.php on line 90 and defined in /includes/classes/CouponValidation.php:14
Stack trace:
#0 /includes/functions/functions_gvcoupons.php(90): CouponValidation::is_product_valid()
#1 /includes/modules/order_total/ot_coupon.php(635): is_product_valid()
#2 /includes/modules/order_total/ot_coupon.php(138): ot_coupon->get_order_total()
#3 /includes/classes/order_total.php(72): ot_coupon->process()
#4 /includes/modules/pages/checkout_one/header_php.php(347): order_total->process()
#5 /index.php(35): require('/home/zch1akhw6...')
#6 {main}
thrown in /includes/classes/CouponValidation.php on line 14
Any help please
Thank you in advance
Turning Discount Coupon module off seems to be fixing the issue as an alternative.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
nicksab
Turning Discount Coupon module off seems to be fixing the issue as an alternative.
Right, that's a base Zen Cart bug. Please re-post in the Bug Reports thread.
2 Attachment(s)
Re: One-Page Checkout [Support Thread]
Any idea why the 'Guest Checkout' section does not show up in Firefox?
Chrome
Attachment 20736
Firefox
Attachment 20735
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
DML73
What version of OPC and Zen Cart? You can shoot me a link to the site so I can take a peek.
Re: One-Page Checkout [Support Thread]
It's OPC 2.4.6 and Zen cart v1.5.7d
https://www.usconverters.com/
Thank you C.
Re: One-Page Checkout [Support Thread]
I'm seeing the Guest Checkout option when I place an item in the cart and then navigate to the login page. Note that the Guest Checkout option won't show up if there's nothing in the cart.