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

#   Add to cart button is different if specific category is not assigned

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 10 months ago [\#365017](#365017) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Add to cart button is different if specific category is not assigned](/forum/26-product-category-display/908986-add-to-cart-button-is-different-if-specific-category-is-not-assigned#365017 "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 5.2.1  Hi!  I noticed after migration to Joomla 5, if a product is not assigned to &quot;product category&quot; then the Add to cart button says &quot;Add to cart&quot; and not &quot;Choose options&quot;. If you inspect the two buttons, the code is different.  For example, if you compare the product &quot;1710031&quot; and the &quot;51951-07-345&quot; you will see what i mean.  The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 5.1.2
-- Joomla version -- : 5.2.1

Hi!

I noticed after migration to Joomla 5, if a product is not assigned to "product category" then the Add to cart button says "Add to cart" and not "Choose options". If you inspect the two buttons, the code is different.

For example, if you compare the product "1710031" and the "51951-07-345" you will see what i mean.

The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.

Thank you

- [ ![example.png](/forum/attachment/60087) ](/forum/attachment/60087 "example.png") [ ](/forum/attachment/60087?download=1 "example.png")

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

Less More

- Posts: 86540
- Thank you received: 14299
-
-

1 year 10 months ago [\#365020](#365020) 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 button is different if specific category is not assigned](/forum/26-product-category-display/908986-add-to-cart-button-is-different-if-specific-category-is-not-assigned#365020 "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 5.2.1  Hi!  I noticed after migration to Joomla 5, if a product is not assigned to &quot;product category&quot; then the Add to cart button says &quot;Add to cart&quot; and not &quot;Choose options&quot;. If you inspect the two buttons, the code is different.  For example, if you compare the product &quot;1710031&quot; and the &quot;51951-07-345&quot; you will see what i mean.  The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.  Thank you")*

Hi,

On listings, if you have the display of the add to cart button activated, HikaShop will display it if possible.
There are several reasons which make it impossible. And in these cases, it will display a "Choose options" button instead which will direct the user to the product details page.

For example, if you have variants for a product, then the user has to be directed to the product page where he will be able to choose the variant before adding it to the cart.

Another example is if the product has options.

And a last possibility is if the product has custom fields of the table "item" which are required and the display of the custom item fields on the listing is not activated.

Since you're saying that based on the assigned category, you get the choose button or the add to cart button, I suppose that you must have custom item fields restricted based on the "categories" setting. And there must be something linked to that.

I think we would need a backend and a FTP access in order to check the situation.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 10 months ago [\#365030](#365030) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Add to cart button is different if specific category is not assigned](/forum/26-product-category-display/908986-add-to-cart-button-is-different-if-specific-category-is-not-assigned#365030 "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 5.2.1  Hi!  I noticed after migration to Joomla 5, if a product is not assigned to &quot;product category&quot; then the Add to cart button says &quot;Add to cart&quot; and not &quot;Choose options&quot;. If you inspect the two buttons, the code is different.  For example, if you compare the product &quot;1710031&quot; and the &quot;51951-07-345&quot; you will see what i mean.  The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.  Thank you")*

I sent you access and FTP.

Thank you

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

Less More

- Posts: 86540
- Thank you received: 14299
-
-

1 year 10 months ago [\#365037](#365037) 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 button is different if specific category is not assigned](/forum/26-product-category-display/908986-add-to-cart-button-is-different-if-specific-category-is-not-assigned#365037 "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 5.2.1  Hi!  I noticed after migration to Joomla 5, if a product is not assigned to &quot;product category&quot; then the Add to cart button says &quot;Add to cart&quot; and not &quot;Choose options&quot;. If you inspect the two buttons, the code is different.  For example, if you compare the product &quot;1710031&quot; and the &quot;51951-07-345&quot; you will see what i mean.  The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.  Thank you")*

Hi,

The issue is that you've activated the "frontend product listing" display setting of your custom item fields.
When having non required custom item fields with their "frontend products listing" setting activated, with the add to cart button enabed on the listing but the display of the custom item fields turned off on the products listing, HikaShop would fallback to the "choose options" button on the listing even though it should be able to display the "add to cart" button in this particular case. I've made a patch to allow for this and I checked that it fixes the problem on your test website.
Download the install package of HikaShop on our website and install it on yours in order to get the patch for your live website.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

1 year 10 months ago [\#365100](#365100) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Add to cart button is different if specific category is not assigned](/forum/26-product-category-display/908986-add-to-cart-button-is-different-if-specific-category-is-not-assigned#365100 "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 5.2.1  Hi!  I noticed after migration to Joomla 5, if a product is not assigned to &quot;product category&quot; then the Add to cart button says &quot;Add to cart&quot; and not &quot;Choose options&quot;. If you inspect the two buttons, the code is different.  For example, if you compare the product &quot;1710031&quot; and the &quot;51951-07-345&quot; you will see what i mean.  The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.  Thank you")*

Hi!

It was working up till today but now i see again the quantity and the "add to cart" instead of "choose options" button.
I reinstalled the latest version, disabled the "Front-end Product Listing" option of the item custom fields but it's not working as wanted.

Thank you

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

Less More

- Posts: 86540
- Thank you received: 14299
-
-

1 year 10 months ago [\#365103](#365103) 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 button is different if specific category is not assigned](/forum/26-product-category-display/908986-add-to-cart-button-is-different-if-specific-category-is-not-assigned#365103 "-- HikaShop version -- : 5.1.2 -- Joomla version -- : 5.2.1  Hi!  I noticed after migration to Joomla 5, if a product is not assigned to &quot;product category&quot; then the Add to cart button says &quot;Add to cart&quot; and not &quot;Choose options&quot;. If you inspect the two buttons, the code is different.  For example, if you compare the product &quot;1710031&quot; and the &quot;51951-07-345&quot; you will see what i mean.  The problem is only in products listing page. It's very strange and i cannot figure out the cause of this.  Thank you")*

Hi,

The way you configured your menu items and custom item fields, it is normal that the products have the "add to cart" button on the products listing.
If you don't want that, then either you want to activate the "required" setting of the custom fields so that the user has to enter something in them (in that case, HikaShop will know that you want the user to go through the product page and will display the "choose options" button instead of the "add to cart" button), or you actually want to turn off the "add to cart button" display option under the "products options" tab of your menu item, and activate instead the "product details" button display option.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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