- Posts: 9
- Thank you received: 0
Add To Cart Button Issues
I'm not sure exactly when it stopped working (we had some server issues and we also had to swap out our SQL files yesterday and flush our expired cache today) so it may or may not be a result of either of those, but I just inherited the site from another webmaster and am not that familiar with Joomla to make any big changes to try and troubleshoot in the blind.
Any help would be very much appreciated. The product having the issue is here .
Please Log in or Create an account to join the conversation.
Here is the URL ued by HikaShop in AJAX:
energytrainingresources.com/videos-world...xpbmcvY2hlY2tvdXQ%3D
If you open it, you will see that it returns the content of the cart with the correct HTML. However, the HTTP return code is 404 and not 200. That's really strange as it should not return the HTML in that case and moreover not the correct one.
I don't have a perfect solution for you. What you should start with is to turn off the option "Use AJAX when possible for add to cart buttons" of the config of HikaShop. That will remove the AJAX call and use instead a normal form submit. That might help circumvent the problem.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 1
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Could you turn on the joomla debug mode in the joomla config and try again ? Do you get any error at that point ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Did you do ? Did you get any error ?
What I proposed was a way to circumvent the problem that you have on your website where the HTTP status returned by the add to cart page is 404 instead of 200. What you could try is the remove the tmpl parameter of the URL which might be the reason why the website doesn't produce a 200 return code. For that, you could try to add the line below after the first <?php tag of the file "cart" of the view "product" that you can edit via the menu Display->Views:
JRequest::setVar('tmpl','');
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Since you also seems to have a similar problem on the checkout, I would say that there is something interfering with HikaShop on you website. What are the system plugins installed on your website ? What are the options of your template ?
It's either coming from an extension on your website or the way your server is configured.
If you didn't see anything particular with the debug mode on, it means that you don't have any mysql error and that rules out a problem of database setup during the install/update process of HikaShop. So it reinforces my idea of something else interfering with HikaShop on your website...
Please Log in or Create an account to join the conversation.
Thanks again for all this help.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Search Engine Friendly URLs: No
Use Apache mod_rewrite: Yes
Add suffix to URLs: No
Please Log in or Create an account to join the conversation.
It works on our end with such setup. We even have that setup on our own website.
Please Log in or Create an account to join the conversation.
Edit: Ok, so I've resolved everything. The .htaccess file needed some alterations. Basically I needed to have added a period in front of htaccess which is why none of my SEF changes were being made correctly. Everything (to my knowledge) now works.
Thank you lots for the help.
Please Log in or Create an account to join the conversation.