WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Gateways › Epay.dk (Payment Window) › No receipt after payment has completed
- AuthorPosts
- 25 March, 2015 at 11:15 am #8720
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,
Lars25 March, 2015 at 11:23 am #8721got a link to your site ?
can’t guess really (though i have a possible idea – depends)25 March, 2015 at 12:16 pm #872325 March, 2015 at 12:28 pm #8725you 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:10429 March, 2015 at 9:33 pm #8842Cleaned 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
29 March, 2015 at 11:25 pm #8845can you please turn on debug and see if you get anything in your debug.log when you complete an order / payment
30 March, 2015 at 11:45 am #8851Yes, I will. Thanks.
1 April, 2015 at 10:21 am #8892Hi 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, Lars1 April, 2015 at 10:54 am #8893can’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
1 April, 2015 at 11:10 am #8894btw, 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 ?1 April, 2015 at 12:28 pm #8896Thanks.
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’));1 April, 2015 at 12:29 pm #8897And will do as on your first post.
/Lars2 April, 2015 at 11:20 am #8908Hi 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
2 April, 2015 at 11:40 am #8910ok.
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
2 April, 2015 at 3:14 pm #8918Very nice. Thanks.
9 April, 2015 at 1:11 am #8998>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
- AuthorPosts
- The topic ‘No receipt after payment has completed’ is closed to new replies.