Handlebar Helpers to remove end digits from coupon code?

Answered

Comments

2 comments

  • Stephen Brandt Documentation Manager Community moderator
    Celigo University Level 4: Legendary
    Engaged
    Great Answer
    Top Contributor

    Hi, Jake Naydock.

    Borrowing from a recent post, I think this snippet should trim the last couple chars as expected:

    {{substring coupon 0 (subtract coupon.length "2")}}

     

    1
  • Jake Naydock
    Engaged

    Hi Stephen Brandt,

    This is excellent, thank you so much! I will give this a try, and will update this post if it works. Hopefully it will help someone else in the future as well.

    1

Please sign in to leave a comment.