Custom product page block filter
From version 3.12 it is possible to assign a custom-designed layout per category or single product from the backend (previously this was only globally possible for all products).
If you would like to take some specific designs a little bit further, you can do so by using the
flatsome_product_block filter and assign any custom product block layout on your conditions.
This snippet serves as an example, be aware that the snippet returns the first block where a condition is true and prioritized from top to bottom.
Block setup used in the snippet (where the prefix CPL indicates 'custom product layout')
- 3.12.0 or greater