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

#   Add To Cart Not Working

##

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 5 months ago [\#16204](#16204) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  *[Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16204 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")* was created by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")*

Hi everyone,

I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.

When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.

I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.

I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc =&amp; JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.

I'm really stuck now, please help.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNjIwNC1hZGQtdG8tY2FydC1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 5 months ago [\#16210](#16210) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16210 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

Hi,

Could you give a link to your shop, so that we can see the problem ?

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 5 months ago [\#16215](#16215) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  Replied by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16215 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

Hi Nicolas,

Here's the link:

[ janehamerton.co.uk](http://janehamerton.co.uk/index.php?option=com_hikashop&ctrl=product&task=listing&Itemid=160)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNjIwNC1hZGQtdG8tY2FydC1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 5 months ago [\#16218](#16218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16218 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

The add to cart button works correctly on your product pages.

I can see what you're talking about for the "confirm order" button of the entry form. The reason is simple though. You didn't add any product for your entry fields and thus, the system does not add anything to the basket and display that message. If you edit your custom entry fields and add some products to them, it should work.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 5 months ago [\#16222](#16222) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  Replied by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16222 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

Hi Nicolas,

The add to basket problem must be on my side then. It doesn't work on any of my browsers on any of my computers.

Do cookies, a router firewall, https/ssl have anything to do with it? I'm stabbing in the dark here, because I don't know where to look for the problem. Having said that, I've managed to use the add to basket earlier today and then it just stopped.

With the custom fields, where do I add a product?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNjIwNC1hZGQtdG8tY2FydC1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 5 months ago [\#16225](#16225) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16225 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

If you used the entries interface without validating your order, the system locks the cart automatically. And since you didn't configure your products in your custom fields, you are not able to validate your order. I think that's why it doesn't work on your end.
The solution is to log in/log out from your front end. That way, the session information will be reseted and you should be able to add to the cart again.

For the custom fields, when you edit a custom entry field (you need to first save it before seeing the option if you're doing a new one), on the right of the screen, you have the option related to the product.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 5 months ago [\#16228](#16228) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  Replied by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16228 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

Hi Nicolas,

Regarding add to cart:

I use two computers, one for testing and one for the back-end. I've been struggling for a while now with https access. It would let both computers access the https server and then, all of a sudden, I can't get access with one computer but I can with the other.

The reason I'm telling you all this is because it just kicked me off the https again on one computer a moment ago and when I tried the add to basket on the other computer, it worked fine.

I don't know if my router doesn't like more than one computer accessing the same secure server.

Have you ever come accross this scenario?

This is my first e-commerce site, so I'm new to everything, ie. https, ssl, shopping carts, etc.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNjIwNC1hZGQtdG8tY2FydC1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 5 months ago [\#16231](#16231) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16231 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

That's strange. No one reported such problem on HikaShop yet with SSL.
In HikaShop, it's straight forward: when you activate the SSL option of the config, it will check that you are using HTTPS on the checkout and if not, it will redirect you to the HTTPS version. That's all. The rest is handled by apache and your browser...

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 5 months ago [\#16233](#16233) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  Replied by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")* on topic *[Re: Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#16233 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

At least the problem only seems to be on my LAN and not the actual site/Hikashop.

Thanks Nicolas

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 9 months ago [\#138193](#138193) by [prathap](/forum/user/30480-prathap "View prathap's Profile")  Replied by *[prathap](/forum/user/30480-prathap "View prathap's Profile")* on topic *[Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#138193 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

i am joomla3.0 is using,nw i m creating one website by using hikashop component,but here add to cart is not working,when i m click add to cart,it gives message on webpage "webpage is not available",what mistake made here and what i have to do to work add to cart ?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#138249](#138249) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Add To Cart Not Working](/forum/3-bug-report/16204-add-to-cart-not-working#138249 "Hi everyone,  I have a few products as well as a custom entry form which I've built following the 'events' tutorial in the docs.  When I click 'add to cart' on the products or 'confirm order' in the entry form, nothing happens. All I get is a message saying my cart is empty and I get redirected to the main product page.  I've switched templates and reinstalled Hikashop Business(Version 1.4.9), but nothing changes.  I also saw on another post about add to cart not working, that '$doc = JFactory::getDocument();' should be '$doc = JFactory::getDocument();' in ..../helpers/cart.php. This is all fine in my version.  I'm really stuck now, please help.  Thanks")*

Hi,
Can you give me a link to your website so that I can test it myself ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNjIwNC1hZGQtdG8tY2FydC1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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.932 seconds

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

[](#top)
