Display block conditioned on a specific commercial policy

I’d like to know if there is any native functionality that allows displaying a specific block conditioned to a trade policy.
Example: a user accesses the store’s address using the URL Store.com, where trade policy 3 is being used. When the user accesses via this URL, a specific block should not be rendered.

@falmeidaco I don’t think so. I believe you’d need to build a custom app for that kind of conditional.

Another option would be to implement that logic and open a pull request to the vtex conditional repository GitHub - vtex-apps/condition-layout: Allows displaying different blocks based on user-defined conditions · GitHub.

Hey Felipe (@falmeidaco), how’s it going?

Along the lines of what @carlosviniciusanania mentioned about implementing the condition by sales channel, it’s worth testing the code from @german.bonacchi who made a PR with exactly this feature, which is currently open and pending review.

Check out the changes he made to implement the condition by Sales Channel.

I think that’s the way to go.