Theme Builder + WooCommerce - custom display conditions for single product #20221
Replies: 1 comment
-
Hey! Were you able to figure out how to make this happen? I'm trying to do the same with no success so far for single product template conditions. Still learning here. Here's a draft that adds the wc product types as sub-conditions, but only works on 'singular' templates, not single product as needed! elementor-wc-product-type-conditions-draft.php
Registering sub-conditions under the sub condition 'product_single' fails to return condition instance: path: /elementor-pro/modules/woocommece/conditions/woocommerce.php
Anyone have any advice on how to do this correctly, without modifying core files? |
Beta Was this translation helpful? Give feedback.
-
Trying to extend the Elementor Pro Theme Builder to include custom display conditions for Single Products. Using the docs here: https://developers.elementor.com/docs/theme-conditions/
Can get the custom condition displaying fine as a general condition, but I can't work out how to get it as a sub condition for single products (therefore it's not currently usable on single product page templates).
Here's the code I'm currently working with - any hints greatly appreciated!
(Function names and logic generalised for client privacy)
Beta Was this translation helpful? Give feedback.
All reactions