Not sure if this is just me, but I was able to wallet connect and verify an NFT for a discount.
Once “Add” is clicked, the item is added to the cart with the discount text, but no actual discount is applied. I added the same type of item without the discount just to be sure, and both are the same price.
Steps were:
- Set up a campaign with 2 discount tiers, based on the NFT found
- Wallet connected and signed the transaction
- Clicked the Apply Discount button
- Clicked Add on the eligible token
- Dialog was closed, confetti thrown around, and item was automatically added to the cart
- Go to checkout straight from the product page and price still remains unchanged
It looks like the checkout button that displays from the app block in the cart is what kicks off the process to create the discount code and apply it to the item.
The flow I have in my store allows users to go straight to the checkout page from any page on the site, skipping the cart page entirely.
Is there a way I can still trigger this event without passing through the cart page, even if it means adding some sort of event handler onto the button I have that takes users right to checkout?
Thanks for any help with this.