• Hi,

    followed all instructions for a mailchimp webhook.

    I cant get it to work – no email, no discount.

    In analyzing the issue, i send a POST with postman – of which the code is copied below:
    POST /?trigger-special-discount=true&discount-key=93556439be HTTP/1.1
    Host: https://www.funkybabystuff.nl
    Content-Type: multipart/form-data; boundary=—-WebKitFormBoundary7MA4YWxkTrZu0gW
    Cache-Control: no-cache
    Postman-Token: 2e6ad934-7809-4afb-a99e-72d6d25ba8a4

    ——WebKitFormBoundary7MA4YWxkTrZu0gW
    Content-Disposition: form-data; name=”type”

    subscribe
    ——WebKitFormBoundary7MA4YWxkTrZu0gW
    Content-Disposition: form-data; name=”data[email]”

    [email protected]
    ——WebKitFormBoundary7MA4YWxkTrZu0gW
    Content-Disposition: form-data; name=”data[merges][FNAME]”

    hello
    ——WebKitFormBoundary7MA4YWxkTrZu0gW–

    The site returns the homepage, no email is sent and no discount created.
    It runs on wordpress 4.9.8 and woocommerce 3.4.5

    Any ideas on how to proceed?

    thks!
    B

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter btermorshuizen

    (@btermorshuizen)

    got it to work with debugging:
    mailchimp-discount.php line 118 should be:
    $letters_array = array_combine( range( 0, 25 ), range( ‘a’, ‘z’ ) );

    cheers, Bart

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin doesnt seem to respond to callback’ is closed to new replies.