Qphoria wrote:garydee77 wrote:
If I choose Guest checkout, on step 2 I fill out all details and then the following error pops up:
Code: Select all
SyntaxError: JSON.parse: unexpected character
OK
<b>Notice</b>: Undefined index: company_id in <b>/home/users/xxxxx/html/xxxxx.co.uk/catalog/controller/checkout/guest.php</b> on line <b>269</b><b>Notice</b>: Undefined index: tax_id in <b>/home/users/xxxxx/html/xxxxx.co.uk/catalog/controller/checkout/guest.php</b> on line <b>270</b>[]
If your getting that error, it is related to your theme not supporting the new company_id and tax_id fields.
For now you can try this for a temporary solution
1. EDIT 3 FILES:
catalog/controller/checkout/guest.php
catalog/controller/checkout/register.php
catalog/controller/account/register.php
2. FIND IN ALL 3:
3. AFTER, ADD (IN ALL 3):
Code: Select all
if (!isset($this->request->post['tax_id'])) { $this->request->post['tax_id'] = false; }
if (!isset($this->request->post['company_id'])) { $this->request->post['company_id'] = false; }
Good man Qphoria - this got my GUEST checkout running again but if the user chooses REGISTER Then the Region/County dropdown box still empty.... will have to see if third party template provider can provide a fix for all
Tell me this - I made a backup of my site before the upgrade - if I wanted to revert back to version 1.5.2.1 is this the process:
1) Restore the DB sql file I backed up via the OC admin control panel
2) Delete all the online files via FTP and just reupload all the files I had backed up via FTP before the upgrade??
Will that restore the site as is, or would the 1.5.3.1 upgrade script have made DB changes that would cause problems if I went backwards?
Just want to have a full working version of OC with the template I have....
PS In the fix you gave me above, the code you said to search for is not in the third page you mention i.e.
not found in:
catalog/controller/account/register.php
I did find it in the previous two pages, added your code and yes that removed the error I was having in GUEST checkout - but as I said - the REGISTER still causing probs with missin Regions dropdown box values
If you could let me know about the backwards Opencart setup I mention above Id be very grateful before doing
Thanks