Hi, I’m trying to build an UI extension on the BxGy discount page, where Y gets automatically added to the cart (instead of the user manually adding Y for the discount to apply). For example, if a user adds two phones to the cart (X), a free / discounted cover phone is automatically added to the cart (Y).
I have followed this official tutorial on how to Build a discounts UI with Admin UI extensions (Build a discounts UI with Admin UI extensions) from the Shopify dev docs but I’m unable to add an UI extension to the discount page, so that I can add the function logic of adding Y automatically in the cart.
Is there another way to do it? Must I replicate the Buy X Get Y discount from Shopify just to add this functionality?
Thanks for the assistance