• Hi,
    I have scheduled the opening/closing hours and have ordering status disabled in the scheduling page and also ‘hide add to cart’ and ‘remove payment gateway’ ticked. This all works well when the store is closed, there is a closed notice on the cart and the regular ‘add to cart’ buttons are disabled…except (in the theme I am using) there are also overlay ‘add to cart’ buttons on the product photo, unfortunately these ‘add to cart’ buttons are NOT hidden, is there a way around this? Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author bizswoop

    (@bizswoop)

    Each Theme may use unique styling and use cases for the ‘add to cart’ buttons, but it’s difficult for us to support all by default. As a result, we released a hook allowing developers to optimize the plugin for the Theme they are using. For Themes and page builders that are not hiding the Add to Cart button, if this is something you would like to support for your website, we’d recommend you use our hook for the store status.

    The store status hook will allow you to understand the store status. Knowing the store status, you can develop a function to hide the add to cart button based upon the code used by your theme or page builder.

    To check if plugin is active

    defined(“\Zhours\ACTIVE”) && constant(“\Zhours\ACTIVE”)

    To get current store status
    \Zhours\get_current_status()

    Hopefully this helps and enables you to develop a solution to also hide that Theme overall ‘add to cart’ buttons.

Viewing 1 replies (of 1 total)
  • The topic ‘Overlay ‘add to cart’ buttons not hidden/disabled when store closed.’ is closed to new replies.