Forum Replies Created
- AuthorPosts
-
hmm, so i cloned your site here as is , did a COD and a paypal order (using my own paypal credentials of course) and in both cases received the address information just fine.
the only thing I changed was
a) the paypal credentials (and there’s absolutely no reason i can think of that this could be the issue)
b) added the following to the wp-config.php before the /* happy blogging etc */ replacing your current WP_DEBUG etc cnstantsdefine('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);/*this should NEVER be true for production sites*/ define('WP_MEMORY_LIMIT', '256M');
Admittedly I would be really surprised if adding those constants to your wp-config.php on your installation would suddenly fix the issue as they are somewhat addressing completely different things.
However, please try adding those to your wp-config.php (most certainly increasing your memory limit would be a good idea in any case) , do a paypal order (sandbox or live) when you get a chance and let me know.
I do NOT actually expect this to fix the issue you are having – I’d be quite surprised in fact if it did – but let’s make sure neverthelessthanks
(if the above does not make sense to you / is too ‘techie’ , let me know and i’ll explain in more detail)
6 February, 2021 at 1:34 am in reply to: Force users to pay online if they proceed a preorder #53923first of all,
$preorder
is not an existing parameter/value in any event in this context, so this will never work .you probably want to use the
wppizza_filter_gateways_payment_options
filter to begin with https://docs.wp-pizza.com/developers/?section=gateway-filter-frontend
in conjunction with thewppizza_get_order_meta
function referred to here https://docs.wp-pizza.com/developers/?section=preorderi.e use
wppizza_filter_gateways_payment_options
and within that filter action get the preorder value useing ‘wppizza_get_order_meta’ function and do your conditionals depending on that meta value returnedThis reply has been marked as private.maybe there’s the issue . (just trying to narrow things down)
are you saying when you go to wppizza->templates -> email (or print, doesnt matter which)
and expand the details in the templates to see all the fields, you do not see an – additional – field in the “Customer Details” section that refers to that address from the post/zipcode plugin ?let me check something here. will get back to you
does the following work please ?
UN-check/DIS-able “Apply above position to all print/email templates. Disable to set position/display ….etc ” in the plugin options setting.
then go to wppizza -> templates (emails and print) and enable the post/zipcode fields there instead>No string translations activated
there’s the problem. it needs to be active if want to you use WPML with wppizzato be honest, it does not really make too much sense to not have it active / installed.
90%+ of the actual functionality of WPML depends on it – unless you have a very specific setup requirement i am not aware ofsomething along these lines i guess
https://docs.wp-pizza.com/developers/?section=preordersorry, didnt properly read this.
obviously, you have wpml installed (as you said)
– which WPML version are you using though
– do you have string translation installed and activated too though (also, which version please if it is)do you have WPML installed (if so, which version) , some other translation plugin or no translation plugin at all ?
i’m sure there’s a filter in there somewhere already you can use, let me digg around a bit and i’ll post it here
(due to the nature of email , it wont be as trivial as adjusting the css of printing templates, but, most likely, doable nevertheless)
first issue: easily added / amended in the next update of the preorder plugin
second one: will be added as an optional additional shortcode attribute in the next wppizza plugin update (something like order_delete=’1′ i guess. BUT, this will only do anything if the user is logged in and has order delete privileges in the first place)
>Would this be of interest?
yes it would (i suspect this will work just fine if you do that , but certainly worth double checking)i’ll also see if i can also perhaps somehow reproduce what you are experiencing here first of all. maybe some race condition . will get back to you when i can say something
> It was just strange that they disappear even if there was dates to order.
absolutely.
will be fixedSo the good thing is, i can reproduce this now. This happens only when all following days from today in a given month are closed. as you are closed on sat’s and sun’s , when going to your site on the 30th of Jan – a Saturday – you were closed for the rest of the month so no timeslot available for january at all. Same is going to happen on the 27th Feb (again, a Sat), but I would very much think this will be fixed well before that . (also has something to do with showing “asap” instead of timeslot for first available , but i’ll spare you the details )
PS / for your info: it is however completely intentional that those buttons also do not show up if there are no dates/times available in the following month. i.e if you have preorders for only 10 days now on the 2nd of Feb, they are NOT going to show up by design as there wont be anything to select in March of course
just did a quick test on your site (COD as you seemingly have Paypal disabled currently) and that seems fine.
so do you experience this issue only with paypal ?
also – as it’s disabled – what integration have you chosen for paypal? is it the “normal” redirect ?thanks
will see what i can reproduce here and get back to youits the opening times i need too please
i.e
/wp-admin/edit.php?post_type=wppizza&page=openingtimesthanks
hmm, very strange
i did actually respond yesterday , but maybe i made a mistake and did not post it after all or something else went wrong there as it – obviously – doesn’t show up here ….Anyway, the question(s) I need to ask you is this:
do you have “Apply above position to all print/email templates.” *enabled* in
http[s]://[yourdomin]/wp-admin/edit.php?post_type=wppizza&page=wppizza_dbp&tab=frontend-settingsif not, do you have the post/zipcode field enabled in your emails (templates) to the admin ?
http[s]://[yourdomin]/wp-admin/edit.php?post_type=wppizza&page=templates> you can see they have visibility:Hidden hardcoded
sorry, but it’s just not true. that’s done/added dynamically by js
so of course the element inspector will show thisas you have seemingly different settings now, show me a screenshot of your settings (general opening times as well as perorder plugin option settinsg) and i’ll see what happens here first of all as this all works just fine from what i can see
- AuthorPosts