#happycappie

1 messages · Page 1 of 1 (latest)

blazing auroraBOT
vocal grove
#

I believe you would have to compare the different states of the Checkout Session object to do this (e.g. store the original Checkout Session object in your own database then listen for checkout.session.succeeded and compare the number of line_items )

#

There isn't currently an easier way to do this as far as I'm aware

woven star
#

thank you @vocal grove , this seems like it would be a very useful webhook to receive! checkout.session.completed_with_cross_sell

vocal grove
#

That's a good point. This is a new feature and I'd be willing to bet the product team has this feature on their radar already, but I will make sure that feedback reaches them regardless

woven star
#

thanks, in the meantime we'll try tracking line_items_original and compare to line_items_final .

#

another key cross-sell feature would be the ability to enable/disable cross-sells on Products via the Products API. Currently you can only do this via the web interface, which has limited utility.