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

#   Product undefined error while adding to cart

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 5 months ago [\#333185](#333185) by [srisimha](/forum/user/61543-srisimha "View srisimha's Profile")  *[Product undefined error while adding to cart](/forum/27-checkout/902711-product-undefined-error-while-adding-to-cart#333185 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox 89.0 -- Error-message(debug-mod must be tuned on) -- : &quot;{product name} undefined&quot;  I created a menuitem for a product page in hikashop on myself site  In the frontend when I click on the &quot;Add to Cart&quot; button in that product page, a slider popups at the top right saying &quot;product undefined&quot;. Nothing is added to cart.  Please help.")* was created by *[srisimha](/forum/user/61543-srisimha "View srisimha's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : Firefox 89.0
-- Error-message(debug-mod must be tuned on) -- : "{product name} undefined"

I created a menuitem for a product page in hikashop on myself site

In the frontend when I click on the "Add to Cart" button in that product page, a slider popups at the top right saying "product undefined". Nothing is added to cart.

Please help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjcxMS1wcm9kdWN0LXVuZGVmaW5lZC1lcnJvci13aGlsZS1hZGRpbmctdG8tY2FydD90bXBsPW1hcmtkb3du) 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: 14327
-
-

5 years 5 months ago [\#333216](#333216) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product undefined error while adding to cart](/forum/27-checkout/902711-product-undefined-error-while-adding-to-cart#333216 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox 89.0 -- Error-message(debug-mod must be tuned on) -- : &quot;{product name} undefined&quot;  I created a menuitem for a product page in hikashop on myself site  In the frontend when I click on the &quot;Add to Cart&quot; button in that product page, a slider popups at the top right saying &quot;product undefined&quot;. Nothing is added to cart.  Please help.")*

Hi,

I'm not able to access your URL:
[ i.imgur.com/Pa8Gvex.png](https://i.imgur.com/Pa8Gvex.png)

I would guess that this error is because of some customization of the product page, either made by you or your template. But without being able to look at the situation, that's just a wild guess and it could totally be something else. It could also be a new bug from the 4.4.3, since we released it only a few days ago.
However, one thing you can do is try to switch to the default template of Joomla and display again that product details page and try again to add the product to the cart. If it works with the default template, then it's likely linked to a customization. If not, then it's likely a bug.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 5 months ago -  5 years 5 months ago [\#333286](#333286) by [srisimha](/forum/user/61543-srisimha "View srisimha's Profile")  Replied by *[srisimha](/forum/user/61543-srisimha "View srisimha's Profile")* on topic *[Product undefined error while adding to cart](/forum/27-checkout/902711-product-undefined-error-while-adding-to-cart#333286 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox 89.0 -- Error-message(debug-mod must be tuned on) -- : &quot;{product name} undefined&quot;  I created a menuitem for a product page in hikashop on myself site  In the frontend when I click on the &quot;Add to Cart&quot; button in that product page, a slider popups at the top right saying &quot;product undefined&quot;. Nothing is added to cart.  Please help.")*

Thank you.

I moved the site to a new location to make it easier for me to test this. This is what I did:

I created a menu item to a product page in hikashop. In site frontend, I clicked on "Add to Cart" button in product page. The message "product undefined" appears at the top right in the sliding window, but it looks like the product got added to the cart.

1) I tried in 4.4.2 and 4.4.3 hikashop versions and the undefined message occurs in both.
2) I switched to protostar and tried adding the product to the cart. The undefined message still comes up.

I then tried getting the add to cart link from product page and added it to a href link inside of an article. When I click the link it got added. Looks like in this case no Ajax request is made and hence no error.

Please let me know if you need more information.

Last edit: 5 years 5 months ago by [srisimha](/forum/user/61543-srisimha "View srisimha's Profile").

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 5 months ago [\#333287](#333287) by [srisimha](/forum/user/61543-srisimha "View srisimha's Profile")  Replied by *[srisimha](/forum/user/61543-srisimha "View srisimha's Profile")* on topic *[Product undefined error while adding to cart](/forum/27-checkout/902711-product-undefined-error-while-adding-to-cart#333287 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox 89.0 -- Error-message(debug-mod must be tuned on) -- : &quot;{product name} undefined&quot;  I created a menuitem for a product page in hikashop on myself site  In the frontend when I click on the &quot;Add to Cart&quot; button in that product page, a slider popups at the top right saying &quot;product undefined&quot;. Nothing is added to cart.  Please help.")*

I was troubleshooting the page, and found another notification plugin that has been triggering a js error causing this as well. Disabling that plugin is loading this message fine.

Sorry for the trouble.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjcxMS1wcm9kdWN0LXVuZGVmaW5lZC1lcnJvci13aGlsZS1hZGRpbmctdG8tY2FydD90bXBsPW1hcmtkb3du) 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: 14327
-
-

5 years 5 months ago [\#333301](#333301) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product undefined error while adding to cart](/forum/27-checkout/902711-product-undefined-error-while-adding-to-cart#333301 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.16 -- Browser(s) name and version -- : Firefox 89.0 -- Error-message(debug-mod must be tuned on) -- : &quot;{product name} undefined&quot;  I created a menuitem for a product page in hikashop on myself site  In the frontend when I click on the &quot;Add to Cart&quot; button in that product page, a slider popups at the top right saying &quot;product undefined&quot;. Nothing is added to cart.  Please help.")*

Hi,

No worries. So it's all good now ?

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

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