Forum Replies Created
- AuthorPosts
-
> 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.
>added the function from here …
that function does nothing when used with wppizza v3.x+ – that link you posted is almost 3 years old.
I have updated that particular post now though to make sure it’s obvious that this is old stuff.
Thanks for flagging it ….(unless of course you are still using wppizza 2.x, but then you would not have an option to “enable notification” in the first place…, so I would make an educated guess you are on 3.x)
>I have enabled notifications on all admin pages,
can you post a screenshot of your settings ?says it pretty much all there .
somewhere in your email settings (templates perhaps or email in your wppizza->order settings)
you have set an email of [email protected] that does not exist/is unroutableyou’ll have to speak to the mail administrator of that domain to fix that (or of course not send to that email in the first place)
> Is there anyway to use this function again?
No. this has been removed as of 3.5 (internal functions are subject to change without notice and really should not be used for precisely that reason)
See also changelog of v3.5 in the pluginrefer to:
https://docs.wp-pizza.com/developers/?section=function-wppizza_get_orders
for a replacement that should be used by 3rd party developmentdepends on what exactly you want to accomplish.
the easiest though would be to simply add some css declarations
i.e something like
#wppizza-article-prices-xxx {display:none}
or even (better probably, but depends on exactly how your prices are set up)
#wppizza-article-sizes-xxx {display:none}where the ‘xxx’ equals the id of the menu item.
(might also want to have a look at https://docs.wp-pizza.com/developers/?section=frontend-css-styles-layout )if you truly want to not display them at all (i.e not even in the sourcecode of the page) you’ll have to get your hand s dirty with some wordpress/php coding/filtering
(if you need that and are happy to do some php coding, let me know and i’ll find some filter that allows you to do that)I’m afraid, there’s no add-on or option in the plugin that would currently enable such a thing, so it would have to be programmed by someone
(But generally speaking, sure, it’s possible)
>So It seems that for some reason that a id 0…
what happens if you duplicate the one with id 0 and subsequently delete the one with ID 0 ?
(there *might* be anempty()
check somewhere – which would also return true if the id == 0 – that should beisset()
instead ) ?>product x …
simply add multiple textbox custom groups i.e
WPPizza -> Ingredients -> Custom Groups -> Select Group to Customise [– add textbox to item –] -> etc>product y…
i dont understand what you want there exactly to be honest – especially the “or” bit – but perhaps the demos here (with screenshots) will give you an idea of how things work (comment 1 + 2 are as above)
https://demo.wp-pizza.com/wppizza-add-ingredients/our-menu/user/> retrieve the currently applied discount by its ID…
you could do something like thisadd_action('init', 'myprefix_discountids_applied'); function myprefix_discountids_applied(){ /*** session are per blog if multisite ***/ if(is_multisite()){ global $blog_id; $session_key = 'wppizza_cad_'.$blog_id; }else{ $session_key = 'wppizza_cad'; } $discount_ids = $_SESSION[$session_key]['discount']; /* now do something with the $discount_ids */ }
>if I could determine if there are more than one discounts at play…
the above will tell you if there’s one or more at play (as there will be none, one, or many id’s in that array)>apply your own logic…
i suppose i could add a filter somewhere, however, if you want to apply your own logic you could also simply add your own discount(s) depending on your logic, using thewppizza_fltr_discount
filter – which is essentially what the plugin does – along these linesadd_filter('wppizza_fltr_discount', 'myprefix_apply_discounts',10, 3); function myprefix_apply_discounts($discountvalue, $session_items, $order_parameters){ /* alter the current discount value as required */ return $discountvalue; }
thanks
will be fixed - AuthorPosts