I have a site with Toolset and WC and would like to restrict the "Buy button" of the product page to specific hours ranges (ie from 10am to 2pm and from 5.30pm to 10.30pm)
Is there a way to do this thanks to access or with specific code?
Thanks for the info.
I've just tested the plugin and it works ... only if you use the Woocommerce product template. If you use a Toolset product template, then, the hour function does not work !
In this case you will need to create a completely custom shortcode or some form of custom code in order to implement this with the custom templates.
Unfortunately such a custom code would be out of the scope of our support form. So I would recommend that you would contact one of the registered contractors in order to get this custom code done for you. https://toolset.com/contractors/
I'm still asking myself why Toolset shortcode that I have integrated inside the Toolset template is not able to manage the same way than the WC template !!!
Is there a difference in the "add to cart" shortcode Toolset is proposing compared to the way the button is manage inside WC?
There is no guarantee that this would work since it is a 3rd party plugin that i did a quick check to see if a solution existed. I suspect that the plugin hooks in the default templates and is not able to recognize custom templates.
Though all our Toolset shortcodes do is pull the default HTML for generating the button from woocommerce so that it can be placed in a different position on the page.
Our plugin makes no modification to the default structure of the button itself, however the plugin might be expecting the default template.
Understood.
I'm still thinking that this kind of feature should be integrated in the future inside Toolset Access (ie : extending the access management to not only roles but also timing ...).
Regard
Pat