Custom Coupon type woocommerce wordpress

In newer versions of WooCommerce, you will need to Register a custom coupon type Validate the coupon Calculate & Apply the discount Register custom coupon type Validate the coupon Calculate & Apply Discount Sources: @raju_odi’s answer on this exact question @Chris Morris’s answer to Woocommerce custom coupon type with custom discount always return 0

WordPress get_template_directory_uri() not returning https and only return http

Make sure the WordPress and Site Address URL under the general settings include https  The image shows, http, you need https get_tample_directory_uri() uses the site_url() , tacking on the name of your WordPress content directory, and the location of your theme plus its name. site_url will return http if is_ssl() is false, which depends on your General Settings, as stated above.