Page 1 of 1

opencart 3 not able to add to cart

Posted: Thu Oct 17, 2019 2:41 pm
by Rubenboks
since a few days the customer can no longer add anything to the shopping cart.
I have not changed the files myself
can anyone help me ?

opencart 3.02.0

https://elenalatex.com

Re: opencart 3 not able to add to cart

Posted: Thu Oct 17, 2019 5:41 pm
by letxobnav
I have not changed the files myself
fair enough but somebody has.

1) you are mixing www and non-www url's and therefore your fonts don't show as well as your reviews.
2) add to cart php file returns nothing, hence the "undefined" alert on category page.
3) There is a syntax error in the add to cart javascript of the product page, hence the add to cart button no longer works.

so tell the somebody to undo what he/she did.

Re: opencart 3 not able to add to cart

Posted: Thu Oct 17, 2019 11:47 pm
by Rubenboks
thanks for the replay
but i do not understand what i have to do

Re: opencart 3 not able to add to cart

Posted: Fri Oct 18, 2019 12:35 am
by Mr.Pikatchu
You have to undo the changes that have been made in your site. Before making any changes in the opencart code or even installing extensions you should make a backup of your files and the SQL database just in case.

Re: opencart 3 not able to add to cart

Posted: Fri Oct 18, 2019 1:00 am
by Rubenboks
also not helping that answer ....
i did not do any changes !!!!
i day a customer mailt me, that the shop is not working

Re: opencart 3 not able to add to cart

Posted: Fri Oct 18, 2019 1:23 am
by Mr.Pikatchu
You can try to ask you web hosting service if they can restore your site.

Re: opencart 3 not able to add to cart

Posted: Sat Oct 19, 2019 11:44 am
by letxobnav
I see it works again.
Just one note, you are still putting http:// links in your html and then redirecting them to https:// when they are clicked.
That is an additional unnecessary redirect slowing you down.
If you use https:// better set both HTTP_SERVER and HTTPS_SERVER in both config.php files to https://