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

#   add to cart not working

##

- **[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")**
- [![tanjung.technology's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar279.gif)](/forum/user/279-tanjung-technology "View tanjung.technology's Profile") Topic Author
- [ Offline](/forum/user/279-tanjung-technology)

Less More

- Posts: 13
- Thank you received: 0
-
-
-
-

16 years 18 hours ago [\#2859](#2859) by [tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")  *[add to cart not working](/forum/4-how-to/2859-add-to-cart-not-working#2859 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")* was created by *[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")*

Hi there.
I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem?
While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page.
I can't fix it. Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI4NTktYWRkLXRvLWNhcnQtbm90LXdvcmtpbmc/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: 86593
- Thank you received: 14334
-
-

16 years 17 hours ago [\#2860](#2860) 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/4-how-to/2859-add-to-cart-not-working#2860 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")*

Hi,

Could you give a link to your website so that we can have a look at the problem ?

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

- **[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")**
- [![tanjung.technology's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar279.gif)](/forum/user/279-tanjung-technology "View tanjung.technology's Profile") Topic Author
- [ Offline](/forum/user/279-tanjung-technology)

Less More

- Posts: 13
- Thank you received: 0
-
-
-
-

16 years 17 hours ago [\#2861](#2861) by [tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")  Replied by *[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")* on topic *[Re: add to cart not working](/forum/4-how-to/2859-add-to-cart-not-working#2861 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")*

[ ](http://wetick.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=6&name=investor-sibuk&Itemid=54&category_pathway=0)
I change 'add to cart' words with 'pinjam'. When i clicked it, the page reloading a blank page and display previous title in page. Thank you.

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

- **[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")**
- [![tanjung.technology's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar279.gif)](/forum/user/279-tanjung-technology "View tanjung.technology's Profile") Topic Author
- [ Offline](/forum/user/279-tanjung-technology)

Less More

- Posts: 13
- Thank you received: 0
-
-
-
-

16 years 17 hours ago [\#2862](#2862) by [tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")  Replied by *[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")* on topic *[Re: add to cart not working](/forum/4-how-to/2859-add-to-cart-not-working#2862 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")*

[ wetick.com/index.php?option=com\_hikashop...4&amp;category\_pathway=0](http://wetick.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=6&name=investor-sibuk&Itemid=54&category_pathway=0)
I'm sorry, there's some trouble in my server so i reply again with web link.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI4NTktYWRkLXRvLWNhcnQtbm90LXdvcmtpbmc/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: 86593
- Thank you received: 14334
-
-

16 years 17 hours ago [\#2863](#2863) 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/4-how-to/2859-add-to-cart-not-working#2863 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")*

It seems that you added the add to cart button yourself in the description of the product. However, the link of the add to cart button is not valid. It is:
[ wetick.com/index.php?option=com\_hikashop...oduct\_id=0&amp;Itemid=54](http://wetick.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=0&Itemid=54)
Where It should be:
[ wetick.com/index.php?option=com\_hikashop...oduct\_id=6&amp;Itemid=54](http://wetick.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=6&Itemid=54)
You can correct that by editing the product description.

Normally, the "add to cart" button is handled automatically by HikaShop. However, if the stock of the product is 0, or if the product start sale date is in the future, or if the product end sale date in on the past, or if the "catalogue mode" of the tab display in the configuration is set to on, the "add to cart" button will be hidden from the product page. Moreover, the text of the button can easily be changed by editing the translation file under the tab languages of the configuration. You shoul not have to add that button yourself, although it is possible.

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

- **[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")**
- [![tanjung.technology's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar279.gif)](/forum/user/279-tanjung-technology "View tanjung.technology's Profile") Topic Author
- [ Offline](/forum/user/279-tanjung-technology)

Less More

- Posts: 13
- Thank you received: 0
-
-
-
-

16 years 17 hours ago [\#2864](#2864) by [tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")  Replied by *[tanjung.technology](/forum/user/279-tanjung-technology "View tanjung.technology's Profile")* on topic *[Re: add to cart not working](/forum/4-how-to/2859-add-to-cart-not-working#2864 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")*

Thanks for your solution nicholas. That's absolutely help me.
I've been using language tab to translate, but it didn't same with the meaning of that word in my language. So i change it into my language.
But i want to ask more question, how could the product_id value change into 0? I've been looking into hikashop product in my localhost server, the product_id still in 'add to cart html link' still same with the actual product_id. But it works. Why it not works in wetick.com/index.php?option=com_hikashop...t_id=0&amp;Itemid=54?
I'm sorry to ask more question, but i'm still curious.
Anyway, thanks a lot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI4NTktYWRkLXRvLWNhcnQtbm90LXdvcmtpbmc/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: 86593
- Thank you received: 14334
-
-

16 years 17 hours ago [\#2865](#2865) 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/4-how-to/2859-add-to-cart-not-working#2865 "Hi there. I've been used hikashop for my website shopping cart. The problem is: 'add to cart' button can't work like while i was used it in my localhost server. Are there any solution for this problem? While i click add to cart button, the page was refreshed into blank page that contain previous category title. I can't continue to the checkout page. I can't fix it. Thank you.")*

The value of the product_id variable in the link "add to cart" need to be the id of the product (you will see it on the listing of products on the right end of the listing). If the value of product_id is 0, it means that you are asking the system to add the product with the id 0 to the cart. Or that product doesn't exist, which is why you don't go to the checkout.
Normally, you should get an error message displayed at that point, but if your template is missing the jdoc include message tag, it won't be displayed: [ www.hikashop.com/en/support/documentation/61.html](http://www.hikashop.com/en/support/documentation/61.html)

The product_id will be 0 on the "add to cart html link" button popup only when you create a new porduct. That is because when you create a new product, the id for the product does not yet exists. We are going to change that to hide the "add to cart html link" button when the product is a new product and only display it for products already existing. That will avoid having other persons doing the same mistake.

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

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