Woocommerce coupon shortcodes

Posted in

I’m attempting to configure my coupon shortcodes to display only when they are active based on the publishing date. No matter what I try active, draft, or valid statuses, it always shows the codes regardless of the condition.

Is there a way this can be done?

3 Responses to Woocommerce coupon shortcodes

  1. George September 28, 2021 at 7:13 pm #

    You’re welcome Vincent.

    Cheers

  2. Vincent September 28, 2021 at 3:18 pm #

    Thanks, George! That’s exactly what I needed to know. Everything is good now… Cheers!

  3. George September 28, 2021 at 3:03 pm #

    Hi Vincent,

    Welcome to our support channel.

    I would recommend you to have a look at the supported shortcodes for coupons provided by WooCommerce Coupon Shortcodes plugin as described in the plugin documentation:
    https://docs.itthinx.com/document/woocommerce-coupon-shortcodes/

    Please also keep in mind that a coupon is considered active when it hasn’t expired and hasn’t reached its usage limits. If you wish to conditionally display a coupon’s code or information based on the date it has been published, then you need a custom shortcode for that purpose, which will check if the coupon is active and also compare the publishing date with the date of reference you decided.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share