• Resolved covalenciawebs

    (@cowalenciawebs)


    Hi, first of all, great plugin, thanks!

    I have a shop with a custom add to cart content in woocoomerce loop shop. I have searched in the plugin but I haven’t find any function or validation that returns true/false so I can do an If condition to hide the content if it’s in vacation.

    Is there anyway to do it? Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Saji

    (@gookaani)

    Hey there, thank you for reaching out!

    The plugin adds the woo-store-vacation-shop-closed class name to the body while the store is in vacation mode, so you can hide the button using CSS. Alternatively, you can use the woo_store_vacation_vacation_mode action hook to remove your custom button.

    For more information, please refer to our developer guide.

    Enjoy your summer ?? ??!

    Thread Starter covalenciawebs

    (@cowalenciawebs)

    Thank you for your answer. Perfect, with the hook and the class everything works.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.