Hide product price until added to cart

  • Posts: 144
  • Thank you received: 4
  • Hikashop Business
7 years 6 months ago #282144

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.1.11

We're bidding on a site that requires specific products to not display their price until the product is added to the cart. I don't recall this as a hikashop feature.

I suspect it will require a hidden custom field for the product to serve as a flag, and a modification of the product divs and the product details page to check for that flag and hide the product price (and modify the add to cart button text to read "Add to cart to view price") if the custom flag field is set to true for that product.

Is this the best path to follow?

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
7 years 6 months ago #282150

Hi,

That's indeed what I would recommend you to do.
Note that to easily know which view to edit to change the price display, you can use the "display view files" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/1...-display.html#layout

The following user(s) said Thank You: icomex

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

Time to create page: 0.055 seconds
Powered by Kunena Forum