Answers.Body: <p>Yes, you can rewrite the register now link  to or add custom text field with rewrite link as </p>
  
  <pre><code>https://domain.org/civicrm/event/add_to_cart?reset=1&amp;id=[event_id] 
  </code></pre>
  
  <p>to remove from cart</p>
  
  <pre><code>https://domain.org/civicrm/event/remove_from_cart?reset=1&amp;id=[event_id] 
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T10:13:44.503Z
Answers.Text: thanks but [event_id] doesnt seem to render. any tips?
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T10:16:33.353Z
Answers.Text: also, can the add_to_cart and remove_from_cart be automatically appear/disappear in views, depending on whichever is selected?
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T10:35:24.473Z
Answers.Text: 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
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-04T10:38:47.383Z
Answers.Text: 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
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-03T22:44:54.123Z
Answers.LastActivityDate: 2020-02-03T22:44:54.123Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>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?</p>
  
Tags: <civievent>
Title: Drupal views, show 'add to cart' button instead of ''Register now'
ThreadText: # Drupal views, show 'add to cart' button instead of ''Register now'
  
  (Asked by: username_0 on 2020-02-03)
  
  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?
  
  **Tags:** civievent
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-03. Score: 1
  
  Yes, you can rewrite the register now link to or add custom text field with rewrite link as
  
  ```
  https://domain.org/civicrm/event/add_to_cart?reset=1&id=[event_id] 
  
  ```
  
  to remove from cart
  
  ```
  https://domain.org/civicrm/event/remove_from_cart?reset=1&id=[event_id] 
  
  ```
  
  Thanks
  
  username_1
  
  > **Comments:**
  > **username_0**: thanks but [event_id] doesnt seem to render. any tips?  
  > **username_0**: also, can the add_to_cart and remove_from_cart be automatically appear/disappear in views, depending on whichever is selected?  
  > **username_1**: 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  
  > **username_1**: 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  
  
  ---
  
  