Forum Replies Created
-
AuthorPosts
-
you have either not setup IPN or IPN is not working
https://support.wp-pizza.com/paypal-gateway-extension/This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.PS: for the future, please wrap code in code tags here
thanksThis reply has been marked as private.that’s got nothing to do with anything
again, what do you get when you add
file_put_contents(‘path/to/some/file.log’, print_r($details_completed, true));
directly at the top of your function you are calling with the on_order_Execute hooki.e
add_action( 'wppizza_on_order_execute', 'my_order_app', 10, 3); function my_order_app($order_id, $details_completed, $tid) { file_put_contents('path/to/some/file.log', print_r($details_completed, true)); }post the whole data that you receive in this file
furthermore -as a more direct answer to the question
a) there’s no provision for that because
b) in 99% of cases (exceptions prove the rule and all that and might work for some prices) it will not be what’s required anyway
assuming you have prices like 9.95, 7.95 and 5.95 if one were to blanket apply 10% you’d end up with 8.96, 7.16, 5.36
I dont think anyone will want these kind of odd prices so you’d have to do most of them manually anywaydoesnt it make more – or at least just as much – sense to simply apply a discount of 10% if pickup across the board ??
>Any update yet about the issue?
no, becuase epay.dk have not replied to my re-activation of my test account nor have they setup a new test account i applied for (yet, on both counts)re class: correct
have you tried a simple
file_put_contents('path/to/some/file.log', print_r($details_completed, true));right after
function my_order_app($order_id, $details_completed) {and had a look at that file
6 March, 2018 at 11:58 am in reply to: create a "view-only" menu without disabling orders globally #35637>However, when I add items on the view-only page and then navigate to regular order page, these items will be in the cart.
i cannot see how.
please show me the page / url where you experience this behaviour4 March, 2018 at 6:16 pm in reply to: create a "view-only" menu without disabling orders globally #35546simply dont put a cart of the view only page
I’m not disputing that it works for you (how could I . I dont have one of these printers)
All I’m saying is that you are causing unnecessary overheads by getting the parameters again when they already exist
and if you one day decide to add another customer formfield for example (or remove one for that matter) you will have to add it to this script again wheras a simple foreach loop in the first place would already take care of thatagain. i would suggest you change your action as mentioned, get rid of the ‘new order class’ etc and use the parameter available
(and perhaps brush up on how wordpress action/filter priorities and parameters work ) -
AuthorPosts