Skip to main content
Smart Cart & Discount Codes

This Article Will Give You an Overview of the Smart Cart Discount Capabilities!

Christian Sokolowski avatar
Written by Christian Sokolowski
Updated this week

Smart Cart Discounting

The Smart Cart supports various types of Shopify discount codes, allowing your customers to input these codes directly in the cart to see their discounts before proceeding to checkout. Here are the Shopify discount types that are supported by the Smart Cart:

  1. Order Discounts: Discounts that apply to an entire order.

  2. Product Discounts: Discounts that apply to a single product in an order.

  3. Buy X, Get Y Discounts: Discounts based on the total number and type of products in an order.

  4. Customer-Specific Discounts: Discounts that are specific to certain customers or customer segments.

  5. Free Shipping Discounts: Discounts that reduce the shipping price to $0, making shipping free for the customer.

Important!

If you see a situation where products are not being removed from the cart that once qualified but no longer due after the customer applies a discount, this is due to a limitation in Shopify, it's not possible to automatically remove a product from the cart after discounts are applied. This happens because Shopify doesn’t allow us to adjust the cart subtotal after the discount is calculated, and the system doesn’t share the updated subtotal with us through their API.

To work around this limitation, here are two options:

  1. You could set up a system to flag orders that don’t qualify for the free gift so you can review them manually later.

  2. Alternatively, you can set the discount or free gift threshold high enough that you’re comfortable with the possibility of the discount being applied in some edge cases.

Here’s a bit more detail: when a discount is applied, our system displays a visually updated price in the cart. However, this change is only on the front end (what you see in the cart) and doesn’t reflect the actual subtotal Shopify calculates on the backend. Since our logic relies on Shopify’s API for cart information, we can’t create rules based on this adjusted subtotal because Shopify doesn’t pass it back to us or account for discounts in its calculations.

See screenshots for a more visual representation:


Pre-requisites

  1. Create Discounts in Shopify: Use the Shopify Admin portal to create various types of discounts such as Order Discounts, Product Discounts, Buy X Get Y Discounts, Customer-Specific Discounts, and Free Shipping Discounts.

  2. Enable Discounts: Make sure to enable the discounts you've created so that they are active and ready to be applied by customers.

To utilize these discounting features with the Smart Cart, you'll need to create and manage your discounts within the Shopify Admin portal. The Smart Cart simply displays the discounts that you have set up and enabled in Shopify. It does not perform the discounting action itself.


Step-by-Step Guide to Integrate Shopify Discounts with Rebuy Smart Cart

Create Discounts in Shopify:

  • Log into your Shopify Admin.

  • Go to "Discounts" and select "Create discount."

  • Choose the discount type (e.g., Order, Product, Buy X Get Y).

  • Set up the discount details (percentage off, fixed amount, etc.).

Enable 'Discount Code Input' in Rebuy:

  • Log into your Rebuy Admin.

  • Navigate to Smart Cart settings.

  • Click 'add component' in the footer section.

  • Click on the 'Discount Code Input' option.

  • Save your settings.

Configure Discount Settings in Rebuy:

  • In Rebuy Smart Cart settings:

    • Set the Discount Code Label (e.g., "Enter Discount Code").

    • Customize the Discount Button Label (e.g., "Apply Discount").

    • Specify the Discount Invalid Message (e.g., "Invalid Discount Code").

Thats it! Your customers will now be able to use your discounts as configured within your Shopify Administrator portal.



FAQs:

Q: How do I build a Shopify discount?

A: Visit the Shopify Help Center here for more information on creating and managing discount codes.

Q: Will discounts in the Smart Cart discount at the line item level?

A: No, discount codes applied in the Smart Cart will only reduce the subtotal and will not be applied to individual line items.

Q: What does the "Disable Discount Calculation" setting do?

A: This setting disables all discount calculations in the Smart Cart. When enabled, the cart will always show the message "Code Applied in Checkout" when a discount code is added. This can be helpful for stores with complex discount interactions. The discount code will still be applied during checkout.

Q: Why are products not being removed from the cart after discounts are applied?

A: Due to a Shopify limitation, it’s not possible to remove a product from the cart after discounts are applied. This is because Shopify does not allow certain adjustments to the cart subtotal after discounts are processed. Read more in our important details section.

Did this answer your question?