- Posts: 15
- Thank you received: 0
Cannot disble add to cart on products page
2 years 10 months ago #358288
by MalcolmB
Cannot disble add to cart on products page was created by MalcolmB
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
2 years 10 months ago #358291
by nicolas
Replied by nicolas on topic Cannot disble add to cart on products page
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; }
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.
2 years 10 months ago #358320
by MalcolmB
Replied by MalcolmB on topic Cannot disble add to cart on products page
Thank you Nicolas that workred perfectly.
Please Log in or Create an account to join the conversation.
Time to create page: 0.068 seconds