Disable quantity selector

Note: Code modifications are required. If you need help, please contact us at support@coattend.com.

We'll check if the product is an active CoAttend event and show/hide the quantity selector, accordingly. No matter where you want to apply the change (cart page, product page, cart drawer etc) the logic is the same.

A pseudo-code could be something like:

if the product is an active CoAttend event > hide the quantity selector and output the quantity
else > show the quantity selector increase/decrease buttons
  1. Navigate to Online store -> Themes - Actions -> Edit code (on the theme you wish to edit).
  2. Select the liquid file that you wish to modify.
  3. Apply the above logic (depending on your theme).

For example on your cart page, the code could be something like:

{% if item.product.metafields.coattend.enabled %}
  // Output the quantity
  {{ item.quantity }}
{% else %}
  // Display the quantity selector
  <input type="text" name="updates[]" id="updates_{{ item.id }}" value="{{ item.quantity }}" />
{% endif %}

Need help? Please contact us at support@coattend.com. We’ll be more than happy to help you integrate CoAttend into your business.