• Resolved dario

    (@dariomarco)


    Hi, I created a coupon code, but at the time of insertion it gives me this error:
    Error applying discount code [1]
    Where am I wrong?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @dariomarco

    Thank you for using Paid Memberships Pro.

    What version of Paid Memberships Pro are you using?

    Do you have any JavaScript issues on your site or does your coupon code contain non-English values?

    Thread Starter dario

    (@dariomarco)

    Hi and thanks for the reply, I have version 2.2.6
    I don’t know what to do to check if I have issues with javascript
    The coupon code was auto generated with letters and numbers.

    Greetings.

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for the feedback, you are able to navigate to your checkout page and press F12 (on Windows) or CMD + SHIFT + J (on Mac) to open your console and then ensure you select the “console” tab.

    Please let me know if there are any errors.

    I have a similar problem with ITALIAN language and Discount codes. In JS there is an italian translated text with apostrophe closing the string unexpectedly. This is the line in JS from console:

    jQuery(‘#pmpro_level_cost’).html(‘<p>Il codice TEST è stato applicato all’ordine.</p><p>The price for membership is 2€ per Mese. </p>’);

    as you can see where it says “all’ordine” should be escaped, or at least avoid apostrophes in translations.

    In the meantime I resolved manually editing the translation with “Loco Translate” plugin

    Thread Starter dario

    (@dariomarco)

    Thanks for your reply, my javascript debug report on console tab:

    Content Security Policy: Ignorato “'unsafe-inline'” in script-src: è stato specificato ‘strict-dynamic’
    Content Security Policy: Ignorato “https:” in script-src: è stato specificato ‘strict-dynamic’
    Content Security Policy: Ignorato “http:” in script-src: è stato specificato ‘strict-dynamic’
    OpenGL compositor Initialized Succesfully.
    Version: 2.1 INTEL-12.10.16
    Vendor: Intel Inc.
    Renderer: Intel(R) Iris(TM) Plus Graphics 640
    FBO Texture Target: TEXTURE_2D
    Content Security Policy: Ignorato “'unsafe-inline'” in script-src: è stato specificato ‘strict-dynamic’
    Content Security Policy: Ignorato “https:” in script-src: è stato specificato ‘strict-dynamic’
    Content Security Policy: Ignorato “http:” in script-src: è stato specificato ‘strict-dynamic’

    Greetings

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Coupon code error (Error applying discount code [1])’ is closed to new replies.