Skip to main content

How to hide Cash on Delivery based on No of products in the Cart

This guide will walk you through the steps to hide the Cash on Delivery (COD) payment option for customers when the number of products in their cart exceeds 10. By following this guide, you can control the availability of COD based on cart size.


Step-by-Step Instructions

Step 1: Install Advanced Cash on Delivery App

Go to the Shopify App Store and install the Advanced Cash on Delivery app.

image.png


Step 2: Open the Advanced Cash on Delivery App

  1. Navigate to Apps in your Shopify admin dashboard.
  2. Select Advanced Cash on Delivery to open it.

/image%201.png


Step 3: Access COD Limitation Settings

Once the app is installed, click on the Limit COD Based on Cart Configure button.

image.png


Step 4: Select Your Payment Method

From the Payment Method dropdown, select your Cash on Delivery (COD) payment method.

image.png


Step 5: (Optional) Toggle COD Fee

If you've already added a fee for COD, toggle the button to enable it.

Add your Cash on Delivery shipping method to ensure compatibility with the app settings.

image.png


Step 6: Enable the Number of Products Setting

Click on the Number of Products option and change the status to Enabled.

image.png


Step 7: Configure Product Count Operator

From the Product Count Operator dropdown, select Greater Than.

image.png


Step 8: Set Product Count Value

In the Product Value field, enter 10.

image.png


Step 9: Save Changes

Click on Save Changes to finalize your configuration.

image.png


Testing the Configuration

Test 1: Cart with More Than 10 Products

  1. Open Your Online Store

    Navigate to your Shopify store's online storefront.

  2. Add More Than 10 Products to the Cart

    Select any combination of products, ensuring the total exceeds 10 items.

  3. Proceed to Checkout

    At checkout, confirm that the COD payment option is not visible.

    image.png


Test 2: Cart with Fewer Than 10 Products

  1. Open Your Online Store

    Navigate to your Shopify store's online storefront.

  2. Add Fewer Than 10 Products to the Cart

    Select any combination of products, ensuring the total is below 10 items.

  3. Proceed to Checkout

    At checkout, confirm that the COD payment option is visible.

    image.png


Conclusion

You've successfully configured your Shopify store to hide the Cash on Delivery (COD) payment option when the number of products in a customer's cart exceeds 10. This ensures better control over your payment methods and enhances the customer experience.