Hide checkout button for products with tag 'Quote Only'

Topic summary

A user is attempting to hide the dynamic checkout button for products tagged ‘Quote Only’ but their current code implementation isn’t working.

Attempted Solution:

  • Added code to both main-cart-items.liquid and cart-drawer.liquid files
  • Code checks if product has specific tags (‘quote-only’, ‘custom-tag-1’, ‘custom-tag-2’)
  • Uses JavaScript to set checkout button display to ‘none’

Current Status:

  • Code fails to function in either file location
  • The implementation appears to use Liquid templating logic combined with JavaScript
  • No responses or solutions have been provided yet

Issue remains unresolved - the user needs guidance on proper file placement or code modification to successfully hide checkout buttons for quote-only products.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

I am trying to hide the dynamic checkout button for products with the tag ‘Quote Only’. I have tried adding the code below in the main-cart-items.liquid and cart-drawer.liquid, and it doesn’t work in either section. I need the checkout button to display=‘none’ when a product has a tag of 'Qu

{% if current_product.tags not in [‘quote-only’, ‘custom-tag-1’, ‘custom-tag-2’] %}

{% endif %}