• Hi Jeroen,

    Prefixes: From what I understand from the discussions on Github (dkvadratu, robert777, …) there has been code available to create coupons with specific prefixes since 2017. As you don’t include this option in the code creation process of the plugin by default, could you please give a short guidance of where to put the code you gave and how to use it? I’m referring to $random_code = apply_filters(‘woocommerce_coupon_generator_random_coupon_code’, $coupon_code );

    Last used settings: Would it be possible in the next update that if a user generates a batch of coupons with some settings, the next batch will have the last used settings?
    Context: I need to create 10 coupons of 5€, then 10€, 15€ etc up til 250€, with the same characteristics.
    (Alternatively to giving this option in the next update, if you think of a code to do this right away, that would be super useful)

    Cheers,

    M

    • This topic was modified 2 years, 1 month ago by maps1990.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Here’s a blog post about adding code snippets: https://aceplugins.com/how-to-add-a-code-snippet/

    Re last used settings: its an interesting idea, but not something that is requested before. I can see both value in using the last used settings, but also starting clean. I don’t expect something like this will be added to the base plugin in the short term.

    Cheers,
    Jeroen

    Thread Starter maps1990

    (@maps1990)

    Hi,

    – Re last saved settings: ok

    – Re prefix: I know how to add snippets to functions.php, what I was asking for was more precise guidance on what steps to take to add prefixes to coupons. 4 people have given different code bits on Github between 2017 and 2020 (dkvadratu, robert777, n9yty, douglsmith), but not being a dev myself, more precise steps would help: what code is to be added, which part goes where, then where to you put the prefix string you want to see in your coupons, etc.

    Thank you,

    M

    Thread Starter maps1990

    (@maps1990)

    Any feedback about the prefixes?

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Sorry, I personally can’t provide additional guidance on customizations. I suspect the Prefixes can be configured within the snippets you’ve found.

    Cheers,
    Jeroen

    @maps1990 , I’m also looking for a way to add a simple prefix/string in front of each coupon code. Could you perhaps point me to the Github link where you found a code snippet for this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Prefixes // Loading last used settings’ is closed to new replies.