I am using the drawer card for my shop. I want to insert a field for a discount code there.
Can anybody give me a code for this? I know where to insert it in the liquid then.
Unfortunately, it is not possible to do with liquid. Also, Shopify has no direct api to process discount codes. There are couple of apps and you can apply this logic to cart.
I recently come across the app. Cart drawer looks this way now: