Forum Replies Created
- AuthorPosts
-
Hi
can you please send me an email to dev[at]wp-pizza.com with this topic as a reference ?
thanks
Just to add to this here (for completeness sake I guess)
Even though it may be permitted to add surcharges by your particular country’s law, it might not necessarily be permitted by the agreement of the payment processor in question !
PayPal for example expressly forbid surcharges in their agreements and I hazard a guess others – like Apple Pay etc – will have the same restrictions, but of course it will depend on each payment processor as to what their exact T&C’s are .
Just saying.
>how should i write the code?
you should write it depending on the parameters you will find in $order_details (it should be quite obvious what is what if you output that array somewhere ) and your requirements/conditionals as needed.
I don’t understand the question here
i’ll have to check. will take a bit though no doubt
added as of 3.3.4
(but not “Uhr” – not for the time being anyway – as this is not a universal thing )@petroni417
you might want to also have a look here then to start off with
https://docs.wp-pizza.com/developers/?section=filters-actions-functions>In any case: thanks again so much for your personal support here!!
you’re welcomehappy to have gotten to the root cause of this finally and having it here on the forum is most certainly a good place to perhaps help others
(or even if it’s just for myself at some point to look up again)most of the time, hosters/host support are quite helpful though with these sort of things
(I don’t want to – yet – randomly accuse people here 🙂 )>I did some digging in the backend…and in a sub-sub menu found an error log for the hoster…probably is not caching but rather some security protocol that they have running, no?
and there is your problem.
i.e it’s ‘mod_sec’ (mod security) throwing a false positive , only your host will be able to fix this (having had a bit of a rummage through some sites , and seeing the id being “33340156” (according to your logs), there might be a way to bypass things for this particular mod sec rule (htaccess or some other way)
but that’s really something you have to take up with your hostPS: and before you come back to me telling me that your host says “it’s insecure so we will not do anything about this”
ask them why the *same* script works the next time round when you increase/decrease the quantity after you’ve deleted an item
(not to mention it’s working just fine for thousands of users and i have mod_sec too installed here without any such issues)perhaps you can also ask your host if there is *any* kind of serverside caching going on
thanks for getting it to the bare bones – i’d also suggest you disable all additional other gateways (though i dont think it’s caused by those either, but makes things easier)
in any even though, what happens is this in all circumstances:
you put a few things in the cart,
lets say here https://pizza.taverne.at/speisekarte/pizza/ I am adding
3x Käse-Pizza
6x Margherita Pizza 21cm
1x Margherita Pizza Ø 31cmand i can add / remove / alter as i like. so far so good
when i now go to the order page (https://pizza.taverne.at/orders/)
i can see all those things in the cart as expected
if i now try to change *any* quantity (up or down) it throws the 403
if i *delete* one of the items i can subsequently change things as needed
and do whatever i like after that it seemsthis somehow looks to me like a db and/or cache and/or session issue
check this :
a) clear your cache
b) put something into cart
c) go to orderpage
d) STOP doing anything else
e) check the [prefix]_wppizza_orders table for a new entry (corresponding to the current time if you already have orders in there, alternatively truncate that table beforehand so it’s easier to see)
f)if there’s nothing in there, than there’s the issue – i.e a db entry has to be added when a user goes to the order page the first time
g) let me know and we’ll see if we can pin things down a bit further perhapscan you also please post your wppizza->tools->system output here separately ? (make it “set as private” if you want)
another take (from the uk gov no less – in 2018 – so way before Brexit)
https://www.gov.uk/government/news/card-surcharge-ban-means-no-more-nasty-surprises-for-shoppers
there’s no gray area here according to this. i.e unequivocally no surcharging for paypal !
Again, this seems different per country somewhat so it would be for you to find out what the story is in your particular case …. just passing on infore surcharges:
as I understand it, it varies between countries (and even within countries there seem to be discussions – just as a random link, see here https://www.osborneclarke-fintech.com/2019/11/15/are-surcharges-for-paypal-and-sofort-transactions-in-germany-allowed/)
in any event, the terms and conditions of most third-party providers already prohibit you from surcharging end customers for using their services.(i.e Paypal and I assume Apple does the same)Disclaimr: I am not a lawyer of course and am only following these things out of interest. What you decide to do is your decision naturally. I’m just passing on info or indeed voice my opinion (which may or may not be correct)
generally, you could copy the gateway and rename all relevant ‘mollie’ instances/strings to something else (you cannot ever have the same class multiple times. it will never work)
other than that, if I understand you correctly, you want to add surcharges depending on payment method.
If you are in the EU this is illegal (since 2018) – though scope varies from country to country as I understand itfilter(s) added as of 1.3.1
see: https://docs.wp-pizza.com/developers/?section=wppizza-autoprint>I have now added a removal script for Jquery and a plugin “Updating Jquery” to try to make sure latest is loaded
except that it made no difference. you are still loading the same stuffi would also seriously suggest you do not load an external jquery library but use the one wp provides
(at least until you know it all works)
have a read here: https://pippinsplugins.com/why-loading-your-own-jquery-is-irresponsible/and generally of course:
have you disabled all other non-wppizza plugins and used a default theme ?
do you still have the same issue if you do ?@petroni417
it’s not very likely that there will be an y extra fields along those lines (as no doubt everyone will want something different based on different things)
However, I am happy to add a filter to the plugin in an update that allows people to set printids on whatever order value they want to base it onyou are also loading an external (and outdated at that ) version of jquery
sorry, but i dont understand what a 403 has to do with any kind of minimum order
and i’d also like you to talk me through the issue you are describing on your site.
i want to see thatLol. you need to get out more 🙂
- AuthorPosts