Add to Cart doesn't add product

  • Posts: 8
  • Thank you received: 0
8 years 11 months ago #224415

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome Version 47.0.2526.80 m

Not sure why this stopped working. I updated to 2.6.0 in hopes that it would fix things but that didn't help.

Anyway, the only way I can get things to add to the cart is from the individual product pages. If I try and add from the list of products, I see one of two things. If the cart is empty, the page is redisplayed and nothing is added to the cart. If I have something in the cart (added by going to an individual product page), then the Add to Cart button takes me to checkout.

Hika Shop configuration for "After a product is added to the cart" is set to "Always stay on same page" and "Use AJAX when possible
for add to cart buttons" is set to "NO" (and Joomla caching is turned off.)

I have no idea where to look as to why this is happening so any help would be appreciated

Thanks!
Dave

Last edit: 8 years 11 months ago by dyoungers.

Please Log in or Create an account to join the conversation.

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
8 years 11 months ago #224422

Hi,

You need to look at the network inspector of the developer tools of your browser when adding a product to the cart and you'll see this:
take.ms/Xv4o9
As you can see, when the updatecart URL is called (when you click on the add to cart button) on the URL component/hikashop/product/updatecart , you get redirected to the same URL but with HTTPS instead of HTTP and in the process, you loose the POST data that is sent by the browser with the request.
So the system cannot add anything to the cart since it doesn't get any parameter to work with.

So basically, the problem is with the HTTP to HTTPS redirection that you added on your website and is not linked to a problem in HikaShop itself. This redirection should not be done if the request is a POST (with data), as they will be lost after the redirection.

The following user(s) said Thank You: dyoungers

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 0
8 years 11 months ago #224490

That was it, Thanks!!!

Last edit: 8 years 11 months ago by dyoungers.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum