Announcement

Collapse
No announcement yet.

Conditonal display based on items in the cart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Conditonal display based on items in the cart

    When there is a specific item in the cart I want to display a check box form element. So far I can get it to display w/o conditions (but that's the easiest part) but when I put the
    Code:
    mvt:if
    into the section it get compile errors.
    This is what the block looks like -- https://privatebin.net/?7f9d7038bb48...ipztU1F4iirnK4

    #2
    The solution was to use a better value in the `mvt:if' statement
    Code:
    <mvt:if expr="l.settings:group:product:code EQ '_code_'">
    instead of
    Code:
    <mvt:if expr="g.settings:product param="Read_Product_Code( g.Product_Code, '_CODE_', l.settings:product:customfield_values:customfields:_CODE_)" />
    Last edited by cpp-dev; 05-12-20, 02:19 PM.

    Comment

    Working...
    X