how can i exclude for example an GP element for woocommerce subpages like checkout/order-received.
So basically what I am trying to achieve is to remove/add some GP elements on the checkout page of woocommerce. For this I am using the display rule Location: ‘Page’ -> ‘checkout’.
After the user submits the order, he will be redirected to the ‘checkout/order-received’ page. But on this page the display rules should no longer apply.
But actually i am not able to exclude an GP element with a filter like Exclude: ‘Page’ -> ‘checkout’ -> ‘order-received’
thank you very much.
Your solution works perfectly. Do you know if there is a plan to integrate this into the display rules editor? So that it is not necessary to add this functionality as code?
You can imagine that this makes the whole thing confusing, since the visibility of an element is controlled in 2 different places.