Post by adamhalo » Thu Sep 29, 2016 12:28 pm

Hi all,

I'm running opencart 2.0.2 and have just installed vqmod for the first time and the modification below.
<modification>
<id>Remove "Register account" from front end</id>
<version>1.0.0</version>
<vqmver>2.5.1</vqmver>
<author>Impairedspook</author>

<etc>

Anyway, it seems to be doing stuff. Certainly, I can see that messages are being changed, and in the checkout, the "new user" panel has been replaced with simple "Continue" button. When I click on this button, I get a Javascript popup message saying "Not Found! Not Found!" followed by what looks to me like an opencart 404-type html page.

I've reverted back to the default theme to see if it makes a difference, and it doesn't.

It can be reproduced easily enough by browsing to http://www.icehaloes.com/boutique/index ... ry&path=59, selecting a product, then going to the checkout.

How can I determine what it's trying to access? Sadly, I don't have access to my webserver access logs :(

Thanks in advance!
Adam.

Newbie

Posts

Joined
Mon Jul 27, 2015 7:16 pm

Post by OSWorX » Thu Sep 29, 2016 2:47 pm

Well, that is very easy.
Your script (or what it shall be ..), is doing only the half.

After clicking the continue button, a js-function is called and inside it checks for this:

Code: Select all

url: 'index.php?route=checkout/' + $('input[name=\'account\']:checked').val(),
But these checkboxes are still not existing.

That is why you are getting this message, because the result of the above check is: undefined

And to disable this vqmod, either delete the .xml or rename it to .xml_
And delete all files inside ..vqmod/vqcache/ and as well these 2 files inside ../vqmod/
checked.cache
mods.cache

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by adamhalo » Thu Sep 29, 2016 10:10 pm

thankyou. now that that's the next day, I can see the access logs (they've been rolled over) and I can see the dodgy request:

118.209.213.61 - - [29/Sep/2016:21:40:26 +1000] "GET /boutique/index.php?route=checkout/undefined HTTP/1.1" 404 2459 "http://www.icehaloes.com/boutique/index.php?route checkout/checkout" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1"

so without trying to reverse engineer the mod, it seems I'm a bit stuck.

thanks again

Newbie

Posts

Joined
Mon Jul 27, 2015 7:16 pm

Post by adamhalo » Fri Sep 30, 2016 4:47 am

Have sorted it out, and supplying the answer in case someone else needs it.

The mod is working as designed. Unfortunately it doesn't cater/check for the restriction that opencart has whereby if you have a downloadable product in your cart, you can't use the guest checkout ( I had forgotten about that restriction).

Newbie

Posts

Joined
Mon Jul 27, 2015 7:16 pm
Who is online

Users browsing this forum: No registered users and 3 guests