> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.cornercart.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# CornerCart Troubleshooting: Issues in B2B or wholesale Discounts

if you are a store serving both B2B (Business-to-Business) and B2C (Business-to-Consumer) customers, you may encounter issues with discount targeting or integration conflicts. This article explains our recommended setup and how to troubleshoot unexpected discount behavior.

### 1. **Recommended Setup: How to Target B2B Customers for Discounts**

To ensure B2B customers receive their specific discounts using CornerCart, we recommend using customer tags and our **Target Audience** feature:
* **Step 1: Tag Your B2B Customers**
    * Make sure all your B2B customers have a unique, specific **tag** attached to their Shopify customer profile.
    * *Example Tag:* `b2b-wholesale` or `corporate-client`. This tag should be applied **only** to B2B customers.
* **Step 2: Use Target Audience in Your Campaign**
    * Create a new Cart Goal Campaign (or edit an existing one) intended for B2B customers.
    * Go to the **Target Audience** settings within the campaign editor.
    * Set the rules to target customers who meet **both** of these conditions:
        1. **Logged In Status:** Select **Logged in customers**.
        2. **Customer Tag:** Target customers with the specific B2B tag you created (e.g., `b2b-wholesale`).
This setup ensures that the B2B campaign (and its associated discount) is **only** visible to customers who are logged in and identified as B2B by their customer tag.

![](https://storage.crisp.chat/users/helpdesk/website/-/4/5/6/9/4569684e50e4f800/image_1xtuzaq.png)


### 2. **Troubleshooting: Discount Not Applying Correctly**

Even after setting up the targeting correctly, sometimes you might find that the discount applied to a B2B customer's cart is not correct or behaving abnormally.
* **The Likely Cause: Third-Party B2B Apps**
This issue often occurs when you are using a third-party app to manage B2B operations in your store, especially if that app is managing discounts or the checkout process.
The problem commonly stems from B2B apps that:
    * Use **Draft Orders** to create B2B purchases, rather than leveraging Shopify's native checkout and discount mechanisms.
    * Have complex code that interferes with standard cart discount applications.
    * Or apps that override our checkout button

### 3. **Action: Contact Support for Integration Review**

Because B2B app conflicts can be unique to your store's setup, the fastest way to resolve the issue is to let our team investigate.
* **Action:** Reach out to us with details about the B2B app you are using.
* **What We Do:** Our engineers can quickly **pinpoint the exact issue** (often related to the Draft Order API) and advise you on the necessary next steps to get CornerCart working seamlessly alongside your B2B setup.
**How to Contact Support:**
1. **Live Chat:** Use the **chat icon** at the bottom-right corner of the CornerCart app dashboard.
2. **Email:** Send a detailed message to **care@usecorner.io**.