Skip to content

  • Home
  • About Us
  • Add-ons
  • Services
    • Shopify Development Services
    • Shopify Maintenance services
    • Shopify PageSpeed Optimization
    • Shopify Training
    • Shopify App Development
    • Shopify App Integration Services
    • Shopify Email Marketing
    • Shopify Web Design Agency
  • Blog
  • Contact Us
  • Search button

Add The Ability To Stop Purchase

Jul 22, 2022Nov 16, 2022
Disable Purchase option in Shopify

If you want to keep your store running but you want to Disable Purchase option offer checkout functionality, you can pause your store in the Shopify Admin (under Themes> Customize > Product Pages). This will make your store “dormant”, which stop offers checkout. To do this, you simply have to write this is to your theme.

Shopify checkout is optimized for mobile and it’s easy to get started. You can customize it to match your store’s look and feel, integrate it with your favorite apps and make selling online easier than ever
before all without making major changes to your store’s backend code.


Shopify checkout is built to be the fastest and easiest way to collect payments from customers. It can be integrated into your own website and apps, or used embedded on a third-party website to
run a checkout process for your products. A successful checkout strategy is critical to acquiring and retaining customers. For instance, Shopify Checkout lets you display product offers after customers have checked out, right before the order confirmation page. This increases your chances at upselling effortlessly.

Editing your theme code to add the Ability to stop purchase feature

  • Section directory, open the product-template.liquid and find add to cart button, the cart button looks like the following in the debut theme and other themes contains this code <button type="submit" name="add" :
&amp;amp;amp;amp;amp;lt;div class="product-form__item product-form__item--submit{% if section.settings.enable_payment_button %} product-form__item--payment-button{% endif %}{% if product.has_only_default_variant %} product-form__item--no-variants{% endif %}"&amp;amp;amp;amp;amp;gt;
              &amp;amp;amp;amp;amp;lt;button type="submit" name="add"
                {% unless current_variant.available %} aria-disabled="true"{% endunless %}
                aria-label="{% unless current_variant.available %}{{ 'products.product.sold_out' | t }}{% else %}{{ 'products.product.add_to_cart' | t }}{% endunless %}"
                class="btn product-form__cart-submit{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}"
                data-add-to-cart&amp;amp;amp;amp;amp;gt;
                &amp;amp;amp;amp;amp;lt;span data-add-to-cart-text&amp;amp;amp;amp;amp;gt;
                  {% unless current_variant.available %}
                    {{ 'products.product.sold_out' | t }}
                  {% else %}
                    {{ 'products.product.add_to_cart' | t }}
                  {% endunless %}
                &amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;gt;
                &amp;amp;amp;amp;amp;lt;span class="hide" data-loader&amp;amp;amp;amp;amp;gt;
                  {% include 'icon-spinner' %}
                &amp;amp;amp;amp;amp;lt;/span&amp;amp;amp;amp;amp;gt;
              &amp;amp;amp;amp;amp;lt;/button&amp;amp;amp;amp;amp;gt;
              {% if section.settings.enable_payment_button %}
                {{ form | payment_button }}
              {% endif %}
&amp;amp;amp;amp;amp;lt;/div&amp;amp;amp;amp;amp;gt;
  • Add this code above of the button code {% unless section.settings.disable_cart %} and add this {% endunless %} right after the button code.
  • In the same file find the {% schema %} and locate settings, go to the ] in the settings and add the following code right above the ] :
,
    {
      "type": "checkbox",
      "id": "disable_cart",
      "label": "Disable Purchase",
      "default": false
    }
  • Congrats you’ve completed the coding part. Now it’s available in the Themes>Customize>product pages. Now you can enable or Disable Purchase option in Shopify the Add to cart button which will Add the ability to stop purchase checkout in your store

Enjoy this feature and contact us for development related feature  ðŸ™‚

Posted in Shopify Tutorials

Post navigation

Prev Add Different Slideshow For Mobile
Next Add A Cookie Consent Banner To Shopify Store

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest Posts

  • Shopify vs Squarespace: Which Is Best for Your Business in 2023?
    Shopify vs Squarespace: Which Is Best for Your Business in 2023?Jan 23, 2023
  • Shopify Hydrogen and Oxygen Supporting Shopify Storefront
    Discover Shopify Hydrogen and Shopify Oxygen: The Future of Shopify Storefront ShopifyJan 19, 2023
  • Magento To Shopify Migration – A Detailed Guide
    Magento To Shopify Migration – A Detailed GuideJan 16, 2023
  • How to use Shopify API Integrations with other tools or platforms?
    How To Use Shopify Api to Build Custom Integrations With Other Tools Or Platform?Jan 7, 2023

Subscribe Now

Follow Us

  • facebook
  • twitter
  • instagram
  • linkedin2

OriginateWeb.com is the realization of a dream. Our founder previously spent several years working for a large website development company.

Quick Links

  • Shopify Services
  • About Us
  • Shopify Theme Add-ons
  • Blog
  • Contact Us
  • Careers

Services

  • Shopify Theme Add-ons
  • Website Development
  • Page Speed Optimization
  • App Development
  • Maintenance
  • Training

Need Help?

  • Licensing Agreement
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • facebook
  • twitter
  • instagram
  • linkedin2

© 2023 Originate Web. All Rights Reserved