Display add to cart button on a per product base

  • Posts: 19
  • Thank you received: 3
  • Hikashop Business
2 days 17 hours ago #369909

-- HikaShop version -- : 6.2.0
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.0
-- Browser(s) name and version -- : every
-- Error-message(debug-mod must be tuned on) -- : none

First of all, thank you for a great product!
Because the world is never easy, I need to change some items in our webshop so customers can no longer just buy them, but they have to contact us directly. I already did add the contact button on a per product base and activated it for the product.
However, it still shows the add to cart button, it would be great if I could also disable (hide) this button on a per product base.

Is there a solution for this at the moment? I could also hide the button on a brand-level perhaps?

best regards!

Please Log in or Create an account to join the conversation.

  • Posts: 84881
  • Thank you received: 13827
  • MODERATOR
2 days 14 hours ago #369914

Hi,

One option is to not have a price for these products and turn off the "display add to cart button for free products" setting of the HikaShop configuration.
Another option is to set the "quantity" (stock) of the product to zero. This will display an "out of stock" message for these products instead of the add to cart button. You can use a translation override of that text in order to change it to adapt it to your situation:
www.hikashop.com/download/languages.html#modify

If you want to apply these to a bunch of products at once, you can select them on the products listing, click on the "actions" button, and in the popup, you can use the action "update the values" to modify all the products at once.
For example, you could apply the action on the "product_quantity" column, with the value "0" to make all the selected products out of stock at once.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 3
  • Hikashop Business
2 days 14 hours ago #369916

thank you for the very quick reply!
Setting the stock to 0 works fine, together with the translation, however, it also disables the possible options.
(in this case customers can buy a 1 year or 3 year license, but with a stock of 0, no options are displayed, except for the "NO VALUES FOUND" message.

link: www.3dstudio.nl/webshop/product/autodesk-3dsmax

Or did I forget some setting for the options? (product characteristic)

Please Log in or Create an account to join the conversation.

  • Posts: 84881
  • Thank you received: 13827
  • MODERATOR
2 days 10 hours ago #369917

Hi,

If the stock of the main product is set to zero, and the variants have a stock set to unlimited, the variants will automatically use the stock of the main product as their own stock and thus, the variants will also be out of stock.
And if the "display out of stock products" setting is deactivated in the HikaShop configuration, the variants without stock will be removed automatically from the product page, which will lead to the "no values found" error because the system sees that you have characteristics for the product, but no variants available for the product. And thus a selector cannot be generated.
I suspect that this is your situation.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 3
  • Hikashop Business
1 day 23 hours ago #369922

awesome, exactly what happened! Thank you very much, it now works!
Have a great day!

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum