Seems like everything is fine until I test the check out page.
In chrome I get "SyntaxError: Unexpected Token ILLEGAL"
After I click on the shipping option and click on "Continue" in the shopping cart.
i have tried other browers seamonkey, IE, and firefox.
The later three give me the "SyntaxError: JSON.parse: unexpected character"
So I have no idea as to fix it. If I knew which php or java is being called then maybe.
The only reference that is helpful I found is this but is unrelated to open cart:
"For weird characters it's always safer to use the ["@items"] notation instead of the (dot) notation .@items."
So I am assuming the fix in open cart is very close to this or similar somewhere If I had an idea where to go and look.
Anyone else?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
with API username and password....
Same issue still exists....going to reupload all files. If that does not work, I am going delete database, reinstall open cart, and check this area first for this issue..
wish me luck...
You are running a fresh install
You are running no custom modules
You are trying to check out with the paypal modules.
Did you disable the other paypal module? Getting the same error on the same step if the culprit payment is still enabled will yield the same result. Disable ALL payment modules and only enable Cash on delivery
Then refresh the checkout page and checkout from the start. Did you get to step 6? Good
Now enable paypal standard
Repeat the process. What happens.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter

Trying to add the sku field so that it's included in the returns info, done a lot of code changes, it's late and i probably cant say exactly what i've changed in full detail to affect this. I figured that the sku can't get passed to the returns detail unless it has already populated the db, so i've set up new fields in 'return_product' & 'order_product' for the sku, without really knowing what the result will be to be honest. I think (more so hope) i'm almost there.
What i can say is, in catalog/model/checkout/order.php, if i change this:
Code: Select all
$this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "'");
Code: Select all
$this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', sku = '" . $this->db->escape($product['sku']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "'");
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
I am using Paypal std.
I also added Cash on Pickup as an option recently?
Opencart Version 1.5.1.3
https://www.opencart.homebrewinn.com.au/shop/
Opencart Version 1.5.1.3
https://www.opencart.homebrewinn.com.au/shop/
1. Did a fresh installation of 1.5.1.3
2. Enabled two payment modules (One COD and other Paypal)
3. Went to the site and added couple of products to the cart and clicked checkout
4. Chose "Register Account" and went on to add a billing address and shipping address.
5. Chose the shipping method on step 4 and clicked continue. That's when I got the error "SyntaxError: syntaxerror: unexpected token <"
Let me state again that this is a FRESH install and I have not made any changes to the default theme, code what so ever.
But here is what happened next.
1. I closed the pop up error window and went back to the shopping cart and clicked checkout
2. Since the account had already been created, I was automatically logged in
3. So I proceeded with the checkout and this time it all went through smoothly without any issues.
So the issue is, I went back to the cart and restarted the checkout process but a customer may not want (or know) to do that. I may need to put a note on the website regarding this error to help out the customers in case they face the same error but would be great if it can be addressed so that this error doesn't show up.
Nevertheless, this is an awesome opensource cart.
Raj Padhi
Raj Padhi
wisemusings.com
This time I went on to use IE9, added products to cart and wen through the process of registering new account and such. But when I clicked continue after chosing delivery method, the continue button dimmed a bit and a circle went round and round without going forward or giving any error.
So it is confirmed that this error happens after adding items to the cart and then checking out while going through the register account process. Browser type doesn't matter but will give it a try in Opera and Safari, just in case. Of course, there is Firefox as well.
Raj Padhi
wisemusings.com
I have no idea how I can replicate this myself to even see the error message to try to fix it.
Users browsing this forum: No registered users and 7 guests