If you are a Shopify Plus merchant, you may want to utilize Shopify Scripts to automatically apply a different discount to the cost of each product. Currently, the ReCharge checkout is not compatible with Shopify Scripts. This guide explains why Shopify Scripts are incompatible with ReCharge, and potential workarounds to employ.
Shopify Scripts and ReCharge
Shopify Scripts do not currently work with ReCharge and subscription products. As our checkout is dependent on the data that is present in the cart.json to render the correct subscription properties for subscription products. When Shopify Scripts are used, the necessary data to create the order does not show up in the cart.json resulting in the creation of incorrect orders.
The results of Shopify Scripts applied to subscription products can vary. Below are some of the known issues that may happen as a result of applying Shopify Scripts to a subscription product:
- The total cart value at the checkout may display the discounted amount, but each line item still shows the full price.
- The charge amount at the checkout may display the correct discounted amount, however, the order total reported on the Orders Page in Shopify will show an incorrect amount.
- The discounted amount may apply to the first subscription product processed through the checkout, but does not remain on the recurring orders.
You can utilize either of the following methods to apply line-item discounts to subscription products.
Method 1 - Update the product price within the Shopify admin
You can edit the product price for each individual product in Shopify to ensure that each product has a separate discounted price attributed.
Method 2 - Custom code