Display a WooCommerce coupon input field anywhere with a shortcode
问题 I have a small project on what I need to insert Woocommerce coupon field into any page, but this seems complicated for me. I searched on Google about this, but don't have any resources about this. Found this codes about inserting field. Inserted into a text block this code: <div class="redeem-coupon"> <form id="ajax-coupon-redeem"> <p> <input type="text" name="coupon" id="coupon"/> <input type="submit" name="redeem-coupon" value="Redeem Offer" /> </p> <p class="result"></p> </form><!-- #ajax