You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm currently building a custom checkout flow using swell-js and Angular. I managed to implement pretty much all of the needed functionality but I'm struggling with one issue:
How do I know, using swell-js, if a cart needs shipping? i.e. it does have physical items, not only digital ones? cart.getShippingRates() seems to return shipment services even if the cart contains only digital items, and I do not see any useful property on the cart object.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm currently building a custom checkout flow using swell-js and Angular. I managed to implement pretty much all of the needed functionality but I'm struggling with one issue:
How do I know, using swell-js, if a cart needs shipping? i.e. it does have physical items, not only digital ones?
cart.getShippingRates()
seems to return shipment services even if the cart contains only digital items, and I do not see any useful property on thecart
object.Beta Was this translation helpful? Give feedback.
All reactions