ZC v1.5.5f
PHP 7.1.9
Mods: css_js_loader (I've tried with this disabled), DPU, SBA, CEON URI
Following up on my posts a couple of pages back, a reinstall of OPC 2.0 and I'm still having problems. I'll clarify again now that I know a bit more.
I have removed/disabled all shipping and payment modules except cod payment and per item shipping. I have no Zones.
For a Full Account Checkout (multiple stored addresses) I don't see the drop down list for selecting a different shipping address. I am however able to edit and save the default shipping address and the jscript that allows this is working.
If I edit the address and click 'Cancel' the drop down list appears.
If I delete the following code from tpl_modules_opc_shipping_address.php, the list appears and all seems to work well - selecting, changing, saving etc.
The code that creates a list in tpl_modules_opc_address_block.php says:Code:$opc_disable_address_change = $editShippingButtonLink;
'If the address can be changed and an account-bearing customer has previously-defined addresses, create a dropdown list from which they can select.'
I can change the address, manually, so I can't figure out why the dropdown list is not appearing.
Things I've tried,
disabled all javascript other than that needed to run OPC on the checkout page.
switched to Classic template
changed PHP versions
checked for browser console errors
enabled OPC debug - although I'm not sure what I should be looking for.
Last edited by simon1066; 13 May 2018 at 12:23 PM. Reason: mods added
@simon1066, what happens if you change the line you identified to read
Code:$opc_disable_address_change = !$editShippingButtonLink;
You're a star! I had tried a couple of similar changes but not that one.
Thank you.
LOST IN V 2.0
Was working fine before the upgrade from 1.5 but now I have two problems .
First the Enable One-Page Checkout? true false setting on the configuration - doesnt work !
I get the correct "The One-Page Checkout plugin was successfully upgraded from [] to [2.0.0 (2018-04-27)]." message Enable One-Page Checkout?OPC does not kick in and there is no apparent difference between checkout sequence with either setting - I have reloaded it three times.
I tried dropping back to the previous version 1.5.0 which does work. Am I just being really stupid and missing something ??
Second editing the confirmation email (I want to miss out a few Divs) now seems to have no effect
Surely that hasnt gone to a new file ?
Not very urgent - 1.5 does all i require - but I am puzzled!
What, specifically, do you mean when you say that OPC does not "kick in"?
Have you verified that OPC is, in fact, enabled through its configuration?
Did you make any template-override customizations to OPC 1.5? Many of the templates changed significantly going from 1.5 to 2.0.
Your question regarding confirmation email is outside of the OPC's changes and would be best asked outside of this support thread.
First - yes indeed the Confirmation Email I would expect to be totally a different issue - but the problem did/does go along with the change from 1.5 to 2 - so I mentioned it. But it seems we can just put that to one side.
However I have a working install ZC 1.5.5f using responsive classic which works fine with OPC1.5.
Indeed there are a number of changes I have made but nothing I can see which would be SO basic as to just stop OPC dead.
I have a full backup code and DB which I am using as reference - done BEFORE the original 1.5 OPC install .
I install 1.5 - all works as expected
Starting from the same point I install OPC 2.
I get the confirmation message - "The One-Page Checkout plugin was successfully upgraded from [] to [2.0.0 (2018-04-27)].
I set Enable One-Page Checkout? to true.
So far exactly as 1.5
BUT the Checkout sequence remains as standard !
So wheel off somewhere - I am a bit suspicious that I may have problem with template definition but cant see where.
So the simple question is - if the OPC says it is installed and the switch is set to true - what would stop the OPC firing and the standard one running??
I am IT guy of tens of years of experience - but could I just check precisely what you mean when you talk about merging files just in case your definition is not the same as mine - i am using WinMerge.
I have a file " The old ONE " from ZC I have a file "the new one" from the OPCInstall
They are different .
By Merge do you mean
Retain all the old code but overwrite any differences including additions from the New or
Aditionally dump any parts of the old code which do not exist in the new
or do I simply replace the old with the new?
May seem obvious but always good to check !
If no one can give me a pointer then I shall do an install from base ZC and add OPC 2 from scratch
@shayne, the "brains" of the One-Page Checkout is /includes/classes/OnePageCheckout.php, working in conjunction with /includes/classes/observers/class.checkout_one_observer.php. If either of those are "damaged" (especially the observer-class), then the page-to-page handling won't kick in.
Bookmarks