Jump to content

Show only field = IF OR


tiagocaus

Recommended Posts

Please help me in this configuration.

I want a part of the site is not displayed when:

 

A product is equal to: Plano Site para lgreja

Or a customizable field is equal to: N

 

 

- Using the "inspector element FF" I saw that the field name is (#customfield52)

a8ef76695717458ca44e4f4.png

 

 

- Field created:

fe4a95fb557e43cab4036ca.png

 

 

- Code created:

{if $product eq 'Plano Site para Igreja' or #customfield52 ep 'N' }
 HIDING FIELDS
{else}
 SHOWS NORMAL
{/if}

 

 

If you are wrong, as is the correct way?

Link to comment
Share on other sites

The custom fields are contained in an array called {$customfields} so you will need to iterate through the array and check each custom field to see if it matches your custom field name and value. If you add {debug} to the top of the template file you are changing, then you can see the full contents of the array in the pop up window.

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated