No receipt after payment has completed

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Gateways Epay.dk (Payment Window) No receipt after payment has completed

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #8720
    Lars
    Participant

    HI Olly
    I am testing the epay gateway plugin and after the payment has completed and the overlay closes and the order page reloads it does not show a receipt but just stating that I have an empty cart.

    What did I do wrong?

    Same with both version 1.3 and 1.4

    Regards,
    Lars

    #8721
    Olly
    Admin & Mod

    got a link to your site ?
    can’t guess really (though i have a possible idea – depends)

    #8723
    Lars
    Participant
    #8725
    Olly
    Admin & Mod

    you need to fix your javascript errors on that page first of all

    Uncaught TypeError: Cannot read property ‘top’ of undefined
    my-scripts.js?ver=4.1.1:104

    #8842
    Lars
    Participant

    Cleaned up the scripts if you can have a look. Let me know if any thing else is in your way. A lot of temporary things are there still but I hope they wont be in your way but let me know of they are.

    /Lars

    #8845
    Olly
    Admin & Mod

    can you please turn on debug and see if you get anything in your debug.log when you complete an order / payment

    #8851
    Lars
    Participant

    Yes, I will. Thanks.

    #8892
    Lars
    Participant

    Hi Olly

    I got this:
    [01-Apr-2015 09:17:15 UTC] PHP Notice: Undefined index: addinfo in /var/www/html/sites/pizzaria.escendo.dk/wp-content/plugins/wppizza/classes/wppizza.actions.inc.php on line 3364
    About a hundred times or so for one order. Hope it will tell you something.
    Regards, Lars

    #8893
    Olly
    Admin & Mod

    can’t be that. (although i will fix that notice)

    can you please use the default theme and/or switch off all other plugins and see if that issue remains. if it behaves with everything else turned off , turn things on one by one and see where it falls over .

    and let me know what you find

    #8894
    Olly
    Admin & Mod

    btw, just installed the theme you are using here and this works just fine…
    did you add stuff to the functions.php perhaps that needs investigating ?

    #8896
    Lars
    Participant

    Thanks.

    Added this for js scripts:

    if(is_page( ‘bestil’ ) ) wp_enqueue_script(‘bestil_script’, get_template_directory_uri() . ‘/assets/js/bestil.js’, array(‘jquery’));
    if(is_page( ‘orders’ ) ) wp_enqueue_script(‘orders_script’, get_template_directory_uri() . ‘/assets/js/orders.js’, array(‘jquery’));
    wp_enqueue_script(‘jquery-cookie’, get_template_directory_uri() . ‘/assets/js/jquery.cookie.js’, array(‘jquery’));
    wp_enqueue_script(‘googlemaps’,’http://maps.googleapis.com/maps/api/js?sensor=false’, array(‘jquery’));

    #8897
    Lars
    Participant

    And will do as on your first post.
    /Lars

    #8908
    Lars
    Participant

    Hi Olly

    Found out that I broke it somehow and removing some jquery functions and cookies made it work. I did some temp workarounds just to present the user flow and now I will implement it correctly and see if it breaks it. Case closed for now. Thanks for your help.

    /Lars

    #8910
    Olly
    Admin & Mod

    ok.

    PS: i assume you had the cookie thing in there so as to keep the information the user entered in the orderform.
    although these automatically get saven in a session when using any gateway that redirects to their own page this is not the case (or at least seems to be) when using any kind of form of payment windows (like epay.dk for example.
    i will do something about that soon.

    so, unless you are using your cookie js to do something more than that, i would suggest you just skip that one and i will sort this out from here and make it part of the plugin itself

    #8918
    Lars
    Participant

    Very nice. Thanks.

    #8998
    Olly
    Admin & Mod

    >and i will sort this out from here and make it part of the plugin itself

    should not be an issue anymore as of 2.11.8.10

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘No receipt after payment has completed’ is closed to new replies.