Here's hoping someone can help with some OPC problems that I've unsuccessfully tried to resolve for some time.
I was using this great plugin successfully for some time on my development website (constantly changing) but started having payment-order_total interaction issues. The fix supplied at #148 in Github resolved that part (thanks lat9 :D!). But there are now other problems. Since it's a bit complicated, I provide a summary here... & then a detailed step-by-step guide later (so apologies for long post).
Summary
A. Shipping-payment module interaction issue (see Issue 1 below) that's resolved when browser is refreshed:
In Dr Byte's Square installation instructions, he cites where this can happen:
*If you find the input fields for credit card numbers are flat with no text box to type into, this typically means you're missing the jscript_square.php file as described earlier in the Installation Instructions. *
- *Or you've got a firewall or browser plugin blocking access to Square's javascript code. *
- Or you've got a plugin having jQuery conflicts.
My efforts to find possible jQuery conflicts iaw ZC forum research (e.g. uninstalling some plugins [e.g. CSS/JS Loader v1.5.2]; upgrading some jquery files - done both before and after the step-by-step sequence below) all failed to resolve this problem. However, my experience here is limited…so I may have missed something.
B. Payment-order_total interaction issues (see
Issues 2-5 below) that's resolved when OPC sends the customer back with the "…order has changed…resubmit" message.
BTW, I only remembered to get a CTRL-U dump after those steps were completed & after some last-ditch effects to address possible jQuery conflicts:Attachment #18178
Thanks for any help in advance.
Cheers…Gerri
My system:
ZC 1.5.5e
jQuery: In ...template/mytemplate/common/html_header.php: v11.1 (during step-by-step seq.) Upgraded to ZCv1.5.5f's* 1.12.4.min.js after.
*Template: clone of Responsive Sheffield Blue (modified to work with ZCv1.5.5)
OPC: v2.0.5-beta1 (i.e. v2.04 + fix for issue #148 provided in Github)
Shipping: Australia Post Shipping Module v2.3; In Store Pick-up (modified for specific postcodes iaw this thread);
Payment: Direct Bank Deposit V1.5.3-revised, Square v0.96
Order-Total: Optional Shipping Insurance v3.2.3 (was using jquery/jquery-1.6.min.js. I modified this so think it now accesses v 1.12.4 :unsure:); Payment Module Fee v1.1.0; Override Shipping No Price Module v1.1 ot_AUD_total (a clone of ot_total I modified iaw this thread - only shows up when foreign currency used)
Other plugins: Lots. E.g. of those using JQuery installed b4 from problems started: Image Handler 5.0.0Beta4, EC Analytics v1.2.2
Website: https://recoveredheritage.com.au/ (under development so Maintenance currently enabled - pls let me know & I can turn it off temporarily if needed).
STEP-BY-STEP SEQUENCE:
a. Starting point:
- [=1]OPC guest checkout disabled; OPC logging = true,
[=1]At entry into Checkout page:
- cheapest of 2 x postage options is auto-selected (Parcel Post incl P&H fee [$16.75 incl GST]); In-store Pickup is also available but not selected
- none of the 2 x payment options selected (Square CC or Direct Bank Deposit;
- In order-total box, all is correct:
- product T001 is selected ($77 incl GST of 10%);
- Insurance of $2.00 (incl GST)
- total = $95.75; GST = $8.70;
b. Change postage to Express Post ($19.75 incl GST); no payment selected yet
-
ISSUE 1: the Square CC text boxes disappear.
-
In order-total box, all is correct: $8.98 GST; total = $98.75
-
Screen dump:
[Attachment no longer available]
NOTE: Issue 1 also occurs even when In Store pickup is selected…so it's unlikely that the AU Post shipping module is the cause.
c. Payment selected - Direct Bank Deposit:
-
Nothing changes (nothing should)
-
I progress the payment without any issue.
d. OPC log file of preceding steps: Attachment #18175
e.Cleared the cache & repeated steps a-b above. Issue 1 is duplicated.
f. Payment selected - Square (CC):
-
in addition to the CC text boxes not appearing... there's another problem:
** - ISSUE 2**: a transaction fee (for CC payments) should have shown up in order-total box
-
Since I can't complete the sale, I have to refresh the browser.
g. After browser refresh, SQUARE CC text boxes appear again, no payment option is selected & order-total is correct (as it was before)
h. When CC selected:
-
Order-total box correctly shows Card Transaction Fee ($2.13 = 2.2%'of the total; I don't charge GST)
-
3 issues in order total box (numbered 1, 2 & 3 in screen dump):
** - ISSUE 3**: Express Post cost in order-total is incorrect: it quotes the ex-GST price ($17.95) instead of incl-GST price ($19.75)
** - ISSUE 4**: GST calculation is incorrect: it doesn't include the postage GST; shows $7.18 instead of $8.98 i.e. it's lost the GST for the P&H charge added within the AUPost module
** - ISSUE 5**: the total shows a rounding error: total of figure above should be $99.08, not $99.09 (I have tries various suggestions from ZC forums to correct this - but no luck yet.)
-
Screen dump:

i. If I then change payment method to Bank Deposit, Transaction Fee correctly disappears but ISSUES 3-5 remain
j Progress the CC payment:
- Change payment method back to CC, the transaction fee reappears (correct); ISSUES 3-5 remain
- Click REVIEW ORDER button
- OPC sends customer back to Checkout page with "Your order's details have changed. Please review the current values and re-submit" message
- On return, all is correct - no ISSUE 3-5. (The customer could proceed to CONFIRM - but I don't in this test environment)
k. OPC log file for preceding steps: Attachment #18177