Closed WidgetCharmer closed 3 months ago
@WidgetCharmer
You can set custom sale cart discount via https://shopify.dev/docs/api/app-bridge-library/apis/pos#cart-propertydetail-applycartdiscount and line item discount via https://shopify.dev/docs/api/app-bridge-library/apis/pos#cart-propertydetail-setlineitemdiscount
@henrytao-me Unfortunately, I'm talking about items/products, not discounts. We need the ability to add custom items/custom products to the cart like we can in the App Bridge 3.
Describe the feature you’d like
We realized that the 4th version of App Bridge doesn't allow apps to add a "custom sale" product to the cart as it works in the 3rd version of SDK. We must have that feature to migrate.
Here is the reference - https://shopify.dev/docs/api/app-bridge/previous-versions/actions/cart#add-line-item.
The old version of SDK allows us to add a product with a custom name and a custom price. The new SDK allows us to add existing items only.
Describe alternatives you've considered
Unfortunately, there are no alternatives to add a custom sale to the cart for now.
Additional context
Will it be planned for the next releases? Thanks!