Forum Replies Created
-
AuthorPosts
-
Sorry,but I dont understand what exactly you mean by “manage the user directions” (looking at your IP i assume you are referring to a user address ?! )
what exactly are you trying to manage ?
>Is this likely to be a configuration issue at my end
No.In fact it was quite a deliberate decision to completely disable the whole shipping address input when being redirected to paypal as – in my opinion – it only confuses the issue of paying for an order.
That being said, there is also a filter available in the plugin/gateway that allows to to override this behaviour as it suits your needs (i assume here you know what wordpress actions/filter are and how they work).
As a starting point you could do this sort of thing
you should be able to adjust things from here as you need them to be in your particular circumstances
see
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/#paypal-checkout-page-variables
for parameters paypal acceptsadd_filter('wppizza_filter_paypal_parameters', 'myprefix_paypalfilter', 10, 2); function myprefix_paypalfilter($parameters, $order_formatted){ /* will revert the value to the default of 0 */ unset($parameters['no_shipping']); /* alternatively override to the value you want there like so */ $parameters['no_shipping'] = 0 ; /* 0. Prompt for an address, but do not require one */ /* setting some default values according to your settings, using the values returned in $order_formatted. do a print_r/vardump $order_formatted to see all order parameters . It should be obvious what is what */ $parameters['last_name'] = $order_formatted['customer']['cname']['value']; $parameters['address1'] = $order_formatted['customer']['caddress']['value']; $parameters['email'] = $order_formatted['customer']['cemail']['value']; /* and so on */ return $parameters; }Hope that helps
it really all depends on the amount of content you have and the device used (i.e ratio / width the screen has)
i dont know anything about the Mate20 Pro.
However ,having played with a few things, it seems to me it has a width of about 430 or soi can see 2 options.
a) the media queries in the original css kick in at 420 i.e it’s set to do@media only screen and (max-width: 420px){/* css stuff */}
you could change this to 440 for example (or something around that number). i.e
@media only screen and (max-width: 440px){/* css stuff */}
and the whole reshuffeling of things will occur earlieranother option would be to restrict the width that the title can take up , before it starts to linebreak
so, something like@media only screen and (max-width: 440px) and (min-width: 420px) {.wppizza-article-h2{display:inline-block; max-width:120px}}or similar – you’ll have to play with it a bit and or target only the items/categories where you need it
(or – as mentioned previously – use the “responsive style” layout to start off with which will eliminate a lot of this messing around. But I understand that you might not want to do that of course. )
PS: I would also suggest you add the float: none !important; i referred to earlier in this thread to center things under 420
but that’s up to you (if you dont like it centered that also just fine of course)generally that all sounds good.
just out of interest though, what phone are you using there you have an issue with ?coming back to the added css i suggested , you might even want to add this
float: none !important;
so the whole thing would read like this.wppizza-article-default .wppizza-article-sizes { position: absolute;top: 0;right: 0;} @media only screen and (max-width: 420px){ .wppizza-article-default .wppizza-article-sizes {position: unset !important;float: none !important;} }that will keep th eprices centered on small screen devices (if you want that). obviously , you can tweak this as you wish
PS: the easiest was/is always to simply use wppizza->layout->styles->responsive
(which always displays the title above everything else)However, I just happen to like the default layout myself (and alwasy did), but it does need a lot of css to make it work on different devices as it also depends on how many sizes there are for an item etc …
(again, that’s why the changes were made in 3.10 – to make it as usable as possible “out of the box” with any – or at least most – themes)…………
yes, i try to keep these relatively drastic changes to an absolute minimum, but it sometimes cannot be helped (to make things better for all) and if I do, I’m happy to hear about (and solve if at all possible) any issues
(Just felt the need to say this, lol)
>I’ve rolled back to a backup before the update, so that you can see, how it was and I want it to have in the future as well
the thing is, i dont think you want it like that .(hear me out)
have a look at it on a small screen , you will see that yoru prices are *above* the title.i have had quite a few reports where people ordered the wrong thing becuase they clicked on the price BELOW the title assuming – as would be pretty much expected throughout any ecommerce site – that the price below belongs to the title above it.
this is precisely the reason why this got changed ……
if you use the new version and add the below as the last of your custom css
.wppizza-article-default .wppizza-article-sizes { position: absolute;top: 0;right: 0;} @media only screen and (max-width: 420px){ .wppizza-article-default .wppizza-article-sizes {position: unset !important;} }you will get the benefits from the above problem not happening on small screen devices , plus your “original” so to speak (i.e desktop/bigger screens) to be unaffected….
i.e when resetting (i’m writing this out here – as reference to myself too – as i may even be adding this or similar as a default to the next update )
@media only screen and (max-width: 420px){ .wppizza-article-default .wppizza-article-sizes {position: unset !important;} }i.e you are doing
.wppizza-article-default .wppizza-article-additives{ display: block; /* etc */}
if you do/revert to
.wppizza-article-default .wppizza-article-additives{ display: inline-block; /* etc */}
additives are next to the title (as they are by default) and things dont move around all over the placeif you DO want the additives to be below the title (i.e keep the display:block)
then you could *add* this
.wppizza-article-default .wppizza-article-sizes { position: absolute;top: 0;right: 0;}BUT MAKE SURE you reset/remove this one again below 420px (as that’s where the media query kicks in that moves things underneath each other to cater for mobile devices )
> the additives are standing now directly after the article title
i’m not with you.
that’s the default behaviour (but you have overridden that span with display:block and whatnot which in turn pushes everything after down)it also resizes quite nicely when looking at it on a mobile device. i.e title above additives above prices – as intended and in fact the whole reason why the css/elements order was changed in wppizza 3.10
you sure you are not looking at some sort of cached version in your browser ?
>But with the custom css it worked very fine over a year and some updates
sure , as unless it is strictly necessary (and in this case it was unfortunately) , i do not change these kind of thingsthat aside.
i get a a ton of javascript errors on you site (you have done something like this<!--?php. that’s really not a good idea as it will still be read and parsed in all sorts of places)
i suspect you did that to disable your custom css (as i asked , and thanks for that)
However, looking at what we have now, i think it will be better in this case if you just leave things as you had them – including the css you were overriding – and I will see if i can come up with a line or 2 of css you can additionally add (or change) to get you back to where we were from a layout perspectivethe order of the actual wrapping div, ul etc elements (prices, content text, title etc ) was changed slightly to make it possible to make things fit on a screen (affects default style only) when viewed on small screen devices while adding/changing *some* of the css to make this look as it did before
this was simply not doable before dynamically using media queries css and in mamy cases will have resulted in quite a messed up screen when using mobile devices..
that’s just as an explanation
with your multitude of additives for your italien salad, this might well cause an issue and i’ll look if i can account for this too.
In the meantime though – might also be the case – are you using any custom css on those elements ? perhaps simply removing any custom css there will also “fix” it so to speak (one might be overriding the other)I’ll have a look here too if i can reproduce your layout and see what happens, but if you could also check any custom css you might have and let me know , that would be great
Could you also send me the url of your site so i can have a look at the actual css that is being applied ?
thanks
thanks for the link.
however, i can see that you are using an almost 2 year old version of the plugin, (v4.0.7) so I would suggest you update this (which will also fix a number of other potential issues that have since been addressed in the past 2 years)>If you mean this option
yes, that’s exactly the option I meant. As it works just fine here from what I can see, can I have a link to your site please where I can see this not working ? thanksDid you check out the options/settings of the plugin ?
perhaps also see the screenshots for the “breakfast example” here
https://demo.wp-pizza.com/wppizza-add-ingredients/our-menu/user/you must also add the one you want to have selected by default to a “preselect” group (which you may have to create – custom group type => preslect) if it does not exist yet)
You’ll have to write some sort of cronjob (or WP Cron)
you could base this on the getting and deleting orders functions here
https://docs.wp-pizza.com/developers/?section=function-wppizza_get_orders
or of course use WP_Query itself or even your own sql statementessentially you need to query the [yourprefix]_wppizza_orders table by orde_date and delete the entries as you require
be aware that every order id in that table might also have associated metadata in [yourprefix]_wppizza_orders_meta
so you will want to get those too and delete the rows in that table as well or you will end up with orphaned entries in the meta table.alternatively – if you are really quite sure you want to delete all entries, simply truncate those 2 tables at whatever time is appropriate
It follows whatever you have set in WPPizza->Layout-> Prices / Currency Symbols
>If the mail address or settings is wrong, should not I receive mail or
i cannot answer that question. it entirely depends on all your other settings
clearly though, if get the orders you are expecting to get , it works for you.
that “error” simply tells you that there’s something that’s – let’s say – somewhat suspect.
if you want to ignore it , feel free of courseI would however suggest you fix it as somewhere down the line you may *not* get your order notifications anymore as mailservers might consider this to be spam at some point if an email does not exists but you are setting it to be sent from that address – all depends on your mail server setup. (this is just a synopsis, there’s a lot of stuff that can come into play here)
You might also find that even though *you* get the emails, your customers do not .again, it all depends.
in short: use emails in your side of the setup that exist.
-
AuthorPosts