Cannot disble add to cart on products page

  • Posts: 15
  • Thank you received: 0
  • Hikashop Essential
3 months 2 weeks ago #358288

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.0
-- PHP version -- : 8.1.13
-- Browser(s) name and version -- : firefox 121.0.1
-- Error-message(debug-mod must be tuned on) -- : no message. configuration function not working

Configuration > DEFAULT PARAMETERS FOR PRODUCTS > Display ‘ Add to cart’ Button – YES NO
Selecting NO does not remove the ‘Add to button’.

I do not want customers to be able to add to cart from the products page, I want them to go to the details page before they can add to cart.

Anything that I try using CSS removes the button from both the products and the details page.

See attached images.

Attachments:

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

  • Posts: 81567
  • Thank you received: 13077
  • MODERATOR
3 months 2 weeks ago #358291

Hi,

This setting is the DEFAULT setting for new menu items and modules.
For existing menu items and modules, you need to edit the menu item and module via the Joomla menu / module manager. And under the "Products options" tab ("HikaShop options" tab), you'll find an add to cart button display setting which you can turn off.

Regarding the CSS, that's because you need to specify a parent element class.
Instead of just .hikacart{ display: none; } you need to do something like that: .hikashop_products_listing .hikacart{ display:none; }

The following user(s) said Thank You: MalcolmB

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

  • Posts: 15
  • Thank you received: 0
  • Hikashop Essential
3 months 2 weeks ago #358320

Thank you Nicolas that workred perfectly.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum