You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to show or hide blocks on my Woocommerce single product template based on price and shipping class. For example, I would like to show "trade-in available" and "in person delivery with expert installation" blocks to customers on my single product pages, but only if the product price is above certain thresholds.
I can also think of some uses for being able to show or hide blocks based on product tags and attributes.
I get the sense that these things are probably already possible using a PHP filter and a custom function, but I am having trouble targeting specific instances of blocks (in this case group and row blocks).
What is your proposed solution?
Add some additional rule options to the Woocommerce product control.
Alternatively, provide some additional documentation describing the attributes passed via the PHP filter, and perhaps some sample code for targeting individual blocks.
The text was updated successfully, but these errors were encountered:
What problem does this address?
I would like to be able to show or hide blocks on my Woocommerce single product template based on price and shipping class. For example, I would like to show "trade-in available" and "in person delivery with expert installation" blocks to customers on my single product pages, but only if the product price is above certain thresholds.
I can also think of some uses for being able to show or hide blocks based on product tags and attributes.
I get the sense that these things are probably already possible using a PHP filter and a custom function, but I am having trouble targeting specific instances of blocks (in this case group and row blocks).
What is your proposed solution?
Add some additional rule options to the Woocommerce product control.
Alternatively, provide some additional documentation describing the attributes passed via the PHP filter, and perhaps some sample code for targeting individual blocks.
The text was updated successfully, but these errors were encountered: