• Resolved sarbel

    (@sarbel)


    hi

    when clicking on “accept offer” I get error: the is a problem accepting your offer. also same error on decline.

    what could be the problem?

    tnx
    simon

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi Simon,

    Can you try removing your Accept Options and re-adding them? Also please ensure you are on the latest version of the plugin.

    Sometimes this can also happen if you’re on a site where admin-ajax.php cannot be accessed. This is commonly due to having an Apache .htpasswd defined. Turn that off and the problem will go away.

    Would be great if you could shoot me a screenshot too if the issue persists.

    Let me know how you go!

    Cheers,
    Josh

    Thread Starter sarbel

    (@sarbel)

    tried to remove accept option but that didnt help

    how can I disable htpasswd in apache?
    im on godaddy shared hosting. will this affect other aspects of my website?

    you can see the problem your self if you add 3 impression kits to the cart:
    https://www.pink-perfect.com/product/impression-kit/

    • This reply was modified 8 years, 1 month ago by sarbel.
    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi Simon,

    I replicated the problem. Its nothing to do with htpasswd so please ignore that suggestion.

    The actual problem is that it appears some URLs are reporting back as https, eg. the admin-ajax.php is reporting back as the secured link. This means when the plugin goes to accept the offer it’s calling up the https version of the site and it throws a security error (you can see this reported back in the javascript console).

    I recommend you run https across your whole site and redirect any non-http visits to the secure URL. Running both on your site will only cause problems, choose either secured or non-secured. This might be something you need to get your host/web developer to help with.

    Hope this helps!

    PS. You also have a JS error in the console. It’s to do with a link in your header from the google analytics tracking code.

    https://snag.gy/wxWVDN.jpg

    You probably need to update your google analytics plugin I’d say, they have a newer version. Likewise any extra tracking scripts (this looks like it might be part of the ecommerce tracking?).

    Cheers,
    Josh

    Thread Starter sarbel

    (@sarbel)

    hi

    thanks for the suggestion but I prefer to have the site use only http (and https for checkout)

    will look for other solution

    S

    Thread Starter sarbel

    (@sarbel)

    hi josh

    are you willing to accept a donation in exchange for supporting mixed http/https mode?

    tnx
    simon

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi Simon,

    The problem is actually not within Just-In-Time Sales Offers. WordPress itself is reporting a http URL for the generated admin-ajax.php URL which is where all the AJAX endpoint go through.

    While it does work having just the cart and checkout on https, I believe WooCommerce themselves also recommends using HTTPS across the whole site.

    There’s another way around it which would be to put the backend of the site on https as well. This would then force the admin-ajax.php URL to report back with a https version of the URL.

    You can do this quite easily using a plugin like WordPress HTTPS. Hope this helps!

    Cheers,
    Josh

    Thread Starter sarbel

    (@sarbel)

    strange
    im already using using this setting: define( ‘FORCE_SSL_ADMIN’, true);
    so my backend is loading on https

    but still ….

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi Simon,

    I just checked your site again, what happens is that the front end Cart page is NOT loading on SSL, but the admin-ajax.php URL provided by WordPress IS loading on SSL.

    So it’s a mixture of https/http as I mentioned but the opposite way around.

    Can you load your /cart page on https?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘problem accepting offer’ is closed to new replies.