Post by imb » Fri Nov 15, 2013 5:28 am

I'm new to Opencart, and have been putting an e-shop together for the last few weeks. I've looked extensively in the forums, and can find nothing about what I suspect must be an issue others have experienced.

I can add products to the cart OK, both singly and in multiples. However, once I go to cart view I am unable to update the number of products in it by using the update quantity button - it just flicks back to the original number of items added to the cart from the product page. I have tried reloading the original versions of all of the set-up files that I have changed whilst putting the e-shop together, to no effect! Does anyone have any advice please? I'm guessing that it's probably a very simple glitch.
Last edited by imb on Sun Nov 17, 2013 5:44 pm, edited 1 time in total.

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by inactiveaccount9912 » Fri Nov 15, 2013 11:36 am

If you use a custom theme, enable the default one and test there, if it works in the default one might be because of the custom theme compatibility, also keep in ming that you need to click update cart in order for the new qty to apply.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by imb » Fri Nov 15, 2013 5:21 pm

Many thanks for the suggestion. I'm using the default theme, so that would seem not to be the issue. However, I have made modifications to some of the files - but, whilst trying to chase this down, replaced all of these with the original files, to no avail. Re clicking the 'update cart' button, that's the exact problem. When I change the item quantity in shopping cart view and then click 'update', the desired quantity is over-written by the original quantity (and, not surprisingly, the total due does not change to reflect the desired quantity). Interestingly, the 'remove item' button functions correctly. A possibly linked behaviour is that, when I click 'get quotes' for shipping, the correct shipping cost is displayed - but, when I then click 'apply shipping', it does not appear to do so on that page - however, if one then proceeds through the checkout process, the shipping IS applied correctly! The website is http://www.preceptscotland.org/webshop, and I'm using version 1.5.6. I hope this helps, and would be very grateful for any suggestions!!!

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by inactiveaccount9912 » Sat Nov 16, 2013 4:11 am

Try disabling the ssl and then test again or atleast disable the redirect you have to https , doesnt seem corect the way you did it.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by imb » Sat Nov 16, 2013 5:42 am

I disabled the ssl setting in the admin panel, closed the browser, and retried but no joy - same symptoms. But, now I am unable to access the admin panel, as the admin password does not work! What do I do PLEASE?!

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by butte » Sat Nov 16, 2013 5:54 am

Go back stepwise . . . first enable redirect. In this see lower pair of links on SSL, http://forum.opencart.com/viewtopic.php ... 80#p439397 .

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by imb » Sat Nov 16, 2013 6:23 am

Thank you for being there to help, but I still cannot access the admin panel. Right or wrong, I disabled ssl in the server tab in the admin panel, and now am unable to access the admin panel. I've tried the advice in http://forum.opencart.com/viewtopic.php?t=22585 but without success. And I'm afraid I do not under stand your instruction to "Go back stepwise . . . first enable redirect." Could you please spell out STEP BY STEP exactly what I should do to regain access to the admin panel? Thank you so much.

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by butte » Sat Nov 16, 2013 6:54 am

(1) SSL itself is correctly installed (http://www.sslshopper.com/ssl-checker.h ... tland.org/).

(2) You may have made the mistake of protecting admin with it. The tutorials are meant to go over basics.

(3) Florinsmith suggested turning off SSL and the redirection, I assumed you did both, so reverse would be redirection back on then SSL back on.

(4) You still can't get in. In phpMyAdmin you can force SSL back on. You an also remove all https:// from the few lines on admin in the two config.php files.

(5) If the only reason you can't get in is the password, then you can use ocreset.php (read the instructions, download it, upload it, use it, delete it as soon as you're in). READ his http://forum.opencart.com/viewtopic.php?t=15626#p76531 and THEN download his http://www.jaygilford.com/download/ocreset so that you proceed safely. It will change on the spot, no mail.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by imb » Sat Nov 16, 2013 7:19 am

Thanks butte, I really appreciate you sticking with me. I have uploaded the ocreset ok, and can see that I can reset the password. But, before actioning it, I just want to be sure which way the two config.php files should be configured. If the ssl is now disabled (which currently it is), do I need to make the admin redirects http as opposed to https first, before actioning the ocreset?
Also, looking at your paragraph 4, please tell me precisely how to access phpMyAdmin, as that looks a really sensible way to reverse what has happened.
Thank you so much.

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by inactiveaccount9912 » Sat Nov 16, 2013 7:39 am

You might have disable ssl from admin but you didnt disable the redirect which is why you cant access admin either(same issue as with the cart, you go to admin login page, are redirected to https, but the login info is sent to http because the ssl is now disabled so thats why it doesnt work, in the carts instance is practicly the same, except that enabling ssl doesnt solve the cart issue because the cart page is not a part of the secured pages in opencart).

If you are not familiar with phpmyadmin, edit admin/config.php file , the first line is the http server defined, change in that line the http:// to https:// , now you should be able to reaccess the admin , go and reenable ssl , then you can revert the change from admin/config.php.
Now you are back to square one, you redirected all http to https I assume in htaccess, you should remove that, and if you really want to have all your pages secured (unecessary), you can edit the root config.php and at http server also add the https in the address.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by imb » Sat Nov 16, 2013 7:50 am

Thank you SO VERY MUCH florinsith - editing the first line in the admin/config.php file to https did the trick. So, I'm now back to square one, so can look again at trying to take your original advice.
When you have a moment, could you please give me very specific instructions about how I should manage the redirect, given that I mucked it up first time around??!!

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by inactiveaccount9912 » Sat Nov 16, 2013 7:56 am

To test what i said, edit the main config.php and do the same like you did for admin (at http server change from http:// to https://), if youll now be able to change the qty than you can:
1. Keep the change in the config.php and remove the force ssl from htaccess and have all your pages secured
2. Revert the change in the config.php and also disable the redirect in htaccess (and have only the checkout and account pages secured in frontend as is by default).

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by imb » Sat Nov 16, 2013 8:08 am

Absolutely awesome stuff - thank you again!! The quantity update and apply shipping costs now both work correctly!! :D
To be absolutely clear, I'll go route 1 - so, please now give precise instructions about removing the force ssl from htaccess.

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by inactiveaccount9912 » Sat Nov 16, 2013 8:16 am

post content of htaccess , more precisesly the line containng word https and 3 lines below and above it. thos I dont think it hurst to leave it now since the condition cant be matched anymore as https is allready on.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by imb » Sat Nov 16, 2013 8:28 am

Thank you again, you've saved the day! I'll leave the htaccess unchanged then since, as you say, the condition can't be matched any more as https is already on.

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by butte » Sat Nov 16, 2013 12:15 pm

You reach phpMyAdmin in your host control panel, but under the circumstances this is not a good time to tinker there with the database. The two config.php differ a little bit, but their HTTP, HTTPS, and DIR sections mustn't send the machine in different directions. Follow florinsmith's lead.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by imb » Sat Nov 16, 2013 6:36 pm

Thanks again florinsith and butte. I really appreciate all of your help and advice! :)

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by butte » Sun Nov 17, 2013 12:19 am

You still need to do this part: "post content of htaccess , more precisesly the line containng word https and 3 lines below and above it."

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by imb » Sun Nov 17, 2013 1:31 am

Hi butte, thanks for your persistence! Please spell out exactly what you mean by post htaccess. Also, there are two htaccess files, one in the root, and one in admin.

imb
Newbie

Posts

Joined
Thu Nov 14, 2013 10:51 pm

Post by butte » Sun Nov 17, 2013 1:51 am

florinsmith asked you to "post content of htaccess , more precisesly the line containng word https and 3 lines below and above it" -- but now with the second admin .htaccess sitting there, too, post the foregoing (as florinsmith asked) plus the admin .htaccess content.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 7 guests