Payment methods: authorize (AIM), check/money order, PayPal Express.
Shipping methods: USPS
Order Totals: Coupons, Free Gift Chooser, Group Pricing, GV, Low Order Fee, Shipping, Subtotal, Tax, Total.
Template: yourstore (from Perfectus).
OPC is latest and greatest. 2.2.2
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.
Rats, I completely missed that.
I would be willing to overwrite some template files from yourstore if I could get this to work - please let me know if that's an option.
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.
Got the log, thanks @swguy. There are two discrepancies between the before payment and totals' processing and the after processing which are causing that redirect back
1. The payment method (moneyorder) isn't being recorded into the session prior to the "Confirm" button click.
2. OPC looks for the order's current total via jQuery/HTML selectors; on entry to the confirmation step, it's found 'Total:' but the total value after processing is (more correctly) $23.30.
Each of those discrepancies is sufficient to cause the redirect. The latter is what I've seen before with the yourstore (and other Perfectus) templates; I'm puzzled by the lack of recording of the payment method.
Issue #2 turned out to be what broke OPC. If you want to use yourstore + OPC be prepared for mucho CSS hacking, but beyond that, the key fix I added is in includes/classes/order_total.php.
Code:--- a/includes/classes/order_total.php +++ b/includes/classes/order_total.php @@ -96,7 +96,12 @@ class order_total extends base { } } else { // use a template file for output instead of hard-coded HTML - require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php'); + global $template_dir; + if ($template_dir == "yourstore" && defined('CHECKOUT_ONE_ENABLED') && (CHECKOUT_ONE_ENABLED == 'true')) { + require(DIR_WS_INCLUDES . '/templates/template_default/templates/tpl_modules_order_totals.php'); + } else { + require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php');^M + } } } }
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.
I recently loaded this plugin to a brand new site that I am working on.
I am using the latest version of zen cart 156c
I am getting the following error when opening my admin panel
The One-Page Checkout plugin has been disabled. The file "/home/xxxxxx/public_html/xxxx/includes/templates/westminster_new/jscript/jscript_framework.php" is required for the plugin's proper operation.
I admit I am not great at adding plugins so I have no idea what this error means. I did find in the plugin that there in the docs folder there seems to be some jscript files.
Do I need to load these and if so where?
Thanks in advance for any help.
You'll need to copy the file /includes/templates/responsive_classic/jscript/jscript_framework.php to /includes/templates/westminster_new/jscript/jscript_framework.php.
OPC 2.2.2, Zen Cart 1.5.6c.
Entering a coupon code on the checkout_one screen causes the success message to be shown twice. See image.
Seems to happen on all templates (here shown on responsive_classic).
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.
Bookmarks