Hey everyone!
Pretty new to Shopify, I was wanting to disable my cart for the time being (disable the “Add to Cart” button, as well as the “Cart” button in the top right.) I’m using the free theme “Craft”, and I tried following this article: https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/hide-add-to-cart-buttons
But my theme doesn’t have a “product-template.liquid” file. It does have a “theme.liquid” file, which I found this code below near the end of the file:
window.variantStrings = {
addToCart: `{{ 'products.product.add_to_cart' | t }}`,
soldOut: `{{ 'products.product.sold_out' | t }}`,
unavailable: `{{ 'products.product.unavailable' | t }}`,
unavailable_with_option: `{{ 'products.product.value_unavailable' | t: option_value: '[value]' }}`,
}
I added
{% comment %}
&
{% endcomment %}
to the beginning and end of this part of the code, but the “Add to Cart” button is still visible on all products, so is the “Cart” button in the top right to view what’s in your current cart.
Any and all help would be much appreciated!!!