Hi, I want to realize such a function:
When the user buys the specified amount of products, we will give the user a gift. We’ve created the Buy X, get Y rule in the background. And we have developed a gift pop-up layer on the page to display a list of gifts.
In this shell layer, users can enter purchase gifts. And it has a checkout button. It will jump directly to the settlement page, and this settlement page contains free gifts, and when the user enters other discount codes in the settlement page again, I didn’t want it to pass, I don’t know how to do it?
I want the user to select a gift that will be added directly to the checkout page without showing up directly on the shopping cart page. I don’t know how to do that.
I’m not sure if this can be done through the rest admin api, or if it can be done directly through js in the front page?
