Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
themeDJango
## This tests for a purchase:
## $cart.isPurchasing("fancy_teacup")
## This tests for the opposite:
## ! $cart.isPurchasing("fancy_teacup")


<!-- Custom message for anyone not purchasing fancy_teacup -->
#if (! $cart.isPurchasing("fancy_teacup"))
    <div class="row">
        <div class="columns small-16">
        You really should buy some fancy_teacup
        </div>
    </div>
#end


<!-- Custom message for anyone not purchasing fancy_teacup and not purchasing fancy_saucer -->
#if (! $cart.isPurchasing("fancy_teacup") && ! $cart.isPurchasing("fancy_saucer"))
    <div class="row">
        <div class="columns small-16">
        You really should buy some fancy_teacup and/or fancy_saucer.  They are simply delightful.
        </div>
    </div>
#end

Now we'll need to position it properly within the template.  You can see we've placed it just above the output of the cart itself and clicked save.

...