Activate conditional templates for a specific page

Why do it

This feature allows you to use different graphic templates for the same type of page (for example, the Product page) based on specific conditions that the user must meet.


Procedure to activate conditional templates for a page

1. Locate the section related to the page for which you want to activate conditional templates (for example, the "Cart" page).

2. Click the Activate button located in the top right corner of the section. The page section will become active.

3. Scroll down within the page section and click Add template. A new configuration row will be created.

4. In the field labeled What is the name of the template?, enter a descriptive name for your conditional template (e.g., "Template for Premium users").

5. In the field labeled Under what circumstances do you want to call this template?, define the necessary conditions for this template to be displayed (for example, "If the user has the 'Premium' tag").

6. If you want to add additional conditional templates for the same page, repeat steps 3, 4, and 5. Templates are evaluated in the order they are listed.

7. Save changes to make the activation effective.

> Note: Once conditional templates are configured, you can modify their content through the Pages module, where they will appear with the name you specified (Step 4).