Knowledgebase:
Yes conditional logic checkboxes
Posted by , Last modified by on 07 February 2018 11:16 AM

Disclaimer

This will work for stores on Miva Version 9.07.00 - 9.07.03.Note that this will require making template changes. Make sure you make sure you are aware of what version was active before any changes are made. These edits are low-risk but if you feel uncomfortable with making these changes then we advise you to seek help from a developer. 


 

Issue

At the moment all existing (pre 9.07.00) customfield checkboxes are returning 'yes' until you cahnge their state.

After they are re-activated they will return 1. You may have a mixture of 'yes' and 1 for the same product.

 

 

Examples:

<mvt:if expr="g.my_customfield_checkbox_var EQ 'yes'"> <---- WRONG

<mvt:if expr="g.my_customfield_checkbox_var NE 'yes'"> <---- WRONG

<mvt:if expr="NOT ISNULL g.my_customfield_checkbox_var"> <---- CORRECT matches yes and 1

<mvt:if expr="ISNULL g.my_customfield_checkbox_var"> <---- CORRECT matches an empty field or not assigned variable

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?