I want to know if we can pre populate the discount code in the checkout/cart page when customer clicks a button from a page.
Aim is when customer clicks a button from a page it should redirect them to checkout/cart with the product in cart (could grab it from the session) but I want to apply a discount code at same time
Is this possible