I would like show 'add to cart' button instead of ''Register now' for a drupal views I have created for upcoming events, is it possible?

1 Answer 1


Yes, you can rewrite the register now link to or add custom text field with rewrite link as


to remove from cart




  • thanks but [event_id] doesnt seem to render. any tips?
    – Tapash
    Feb 4, 2020 at 10:13
  • also, can the add_to_cart and remove_from_cart be automatically appear/disappear in views, depending on whichever is selected?
    – Tapash
    Feb 4, 2020 at 10:16
  • by [event_id] i meant to add event id field and exclude from display and replace [event_id] with the token found in replacement pattern Feb 4, 2020 at 10:35
  • Nope the view won't do it automatically you can do it by using views conditional check participant status for the event. If pending cart than show remove from cart else add to cart Feb 4, 2020 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.