[Skip to main content](#vessel-content)

#   Add to Cart doesn't add product

##

- **[dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile")**
- [![dyoungers's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34492-dyoungers "View dyoungers's Profile") Topic Author
- [ Offline](/forum/user/34492-dyoungers)

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#224415](#224415) by [dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile")  *[Add to Cart doesn't add product](/forum/27-checkout/881144-add-to-cart-doesnt-add-product#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 &quot;After a product is added to the cart&quot; is set to &quot;Always stay on same page&quot; and &quot;Use AJAX when possible for add to cart buttons&quot; is set to &quot;NO&quot; (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")* was created by *[dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile")*

-- 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: 10 years 11 months ago by [dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTE0NC1hZGQtdG8tY2FydC1kb2VzbnQtYWRkLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 11 months ago [\#224422](#224422) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to Cart doesn't add product](/forum/27-checkout/881144-add-to-cart-doesnt-add-product#224422 "-- 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 &quot;After a product is added to the cart&quot; is set to &quot;Always stay on same page&quot; and &quot;Use AJAX when possible for add to cart buttons&quot; is set to &quot;NO&quot; (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")*

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](http://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](/forum/user/34492-dyoungers "View dyoungers's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTE0NC1hZGQtdG8tY2FydC1kb2VzbnQtYWRkLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile")**
- [![dyoungers's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34492-dyoungers "View dyoungers's Profile") Topic Author
- [ Offline](/forum/user/34492-dyoungers)

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#224490](#224490) by [dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile")  Replied by *[dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile")* on topic *[Add to Cart doesn't add product](/forum/27-checkout/881144-add-to-cart-doesnt-add-product#224490 "-- 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 &quot;After a product is added to the cart&quot; is set to &quot;Always stay on same page&quot; and &quot;Use AJAX when possible for add to cart buttons&quot; is set to &quot;NO&quot; (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")*

That was it, Thanks!!!

Last edit: 10 years 11 months ago by [dyoungers](/forum/user/34492-dyoungers "View dyoungers's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4MTE0NC1hZGQtdG8tY2FydC1kb2VzbnQtYWRkLXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
