Forum Replies Created
-
AuthorPosts
-
btw, any other plugin/theme you updated ?
(or even server software)thanks.
ignoring – for the moment at least – all the errors/notices etc that your theme and other plugins throw here
http://www.broncossandwiches.com/wp-content/debug.logcan you set your mailer – at least temporarily – (wppizza->settings->Select Type of Mail Delivery) to HTML and PLaintext (as that tends to give better error messages)
thanks, can you turn on debug please (and let me know when you’ve done so)
https://support.wp-pizza.com/topic/how-to-enable-debug-in-wordpress/link please
14 January, 2015 at 7:16 pm in reply to: do_shortcode( '[wppizza type="openingtimes"]' ); fails within switch_to_blog loop #7058$wppizzaOptions=get_option(WPPIZZA_SLUG); $opt=wppizza_frontendOpeningTimes($wppizzaOptions); echo ''.$opt.'';13 January, 2015 at 6:32 pm in reply to: opening times shortcode – make each segment on new line #7047>this css works well for that.
not saying it doesnt, but you can do the same without relying on the classnames (so it doesnt matter how the days end up being grouped13 January, 2015 at 6:30 pm in reply to: opening times shortcode – make each segment on new line #7046i might add some more classes one day (or add a filter or something), but can’t really see the point adding more bloat when it’s not required
13 January, 2015 at 6:28 pm in reply to: opening times shortcode – make each segment on new line #7044or wrap it in a div (with an id presumably) and don’t bother with the classes/classnames…
13 January, 2015 at 6:21 pm in reply to: opening times shortcode – make each segment on new line #7042the
1-4
5
etcrefer to the days that are in the same span
(1 being monday 7 being sunday so 1-4 refers to the mon to thu span etc)if you change opening times in the future than those will change (possibly, depends on the tom changes you make of course)
doesnt matter one bit though, if you wrap the whole thing in a div/span/whatever and use the appropriate selector13 January, 2015 at 6:06 pm in reply to: opening times shortcode – make each segment on new line #7040you can do whatever you like. that’s what css is for
that is already available in the delivery by postcode extension…..
(but only when used with google maps option)change
do_action('wppiza_gateway_anet_verified',$gatewayReply, $orderId);to
do_action('wppiza_gateway_anet_verified',$gatewayReply, $orderId , $this->gatewayOptions);and then do
add_action('wppiza_gateway_anet_verified','my_function',10,3); function my_function($gwreply,$orderid,$gwoptions){ /* do your cim stuff with the reply from authorize.net contained in $gwreply */ /*plugin options will be in $gwoptions */ /* fyi: $orderid is the id of the order in the wppizza_orders table ...just in case you need it for something*/ }obviously that do_action change will be in the next update
>there is no class for custom groups as a general class
sure there is (unless you are referring to something else)wppizza-ingredients-req-[x]-[y]
where [x] represents first quarter/half or second quarter/half etc and [y] the custom group id
so
wppizza-ingredients-req-3-1 is the 3rd quarter of custom group id 1
wppizza-ingredients-req-1-10 is the 1st quarter, or first half, or just the full thing if not using halfs/quarters of custom group id 10
etc etc
as there are no more than 4 quarters as max [x] will only ever be 1,2,3 or 4but you are right, it would not make it future proof when you add new custom groups, therefore…
>I think it is a realistic scenario that you have dishes with specific ingredients which only show up only at that dish.
which is precisely why you really should create meal sizes for specific meal types and then add the relevant ingredients for those as it is even a more realistic scenario I would have thought, that ALL your pizzas allow a bunch of certain ingredients and ALL your desserts (for arguments sake) allow ANOTHER bunch of ingredients.
but maybe I am missing something (!?) (always a possibility of course)
PS: maybe mealsizes should be renamed into mealsizes/types perhaps , but that’s just cosmetics
>Thanks for being so kind
you’re welcome
>unfortunately they don’t have a specific css class
there are classes and id’s all over the place, so i don’t know what else you could need to target themin any case, for your own sanity, you should probably just create it’s own mealsize for desserts and add dessert ingredients (as opposed to all ingredients for everything i would have thought)
Alternatively, use an “exclude” custom group for the ingredienst you do not need and assign that one to your desserts
any of the above will work
This reply has been marked as private.thats because i’m talking gibberish
change
add_action(‘wppiza_gateway_anet_verified’,$gatewayReply,$orderId);
to
do_action(‘wppiza_gateway_anet_verified’,$gatewayReply,$orderId);
(i edited the code above to reflect this )
the only way you can do that – *reasonably* easily- is by writing a filter using the ‘wppizza_filter_summary’ hook (that’s where i would look/try anyway)
so, something along those lines
add_filter('wppizza_filter_summary','my_custom_filter'); function my_custom_filter($summary){ /** here now overwrite/amend/do whatever you need to do overwriting, amending bits of the $summary array **/ return $summary; }PPS (sorry but just in case)
if you want to run your function “before” it gets verified again just add
do_action('wppiza_gateway_anet_reply',$gatewayReply);right after
function gateway_handle_response($gatewayReply){instead (will also be added to the next update, just for good measure)
and then do
add_action('wppiza_gateway_anet_reply','my_function'); function my_function($gwreply){ /* do your cim stuff with the reply from authorize.net contained in $gwreply */ }just thought i’d mention it in case it’s useful
as ever, any questions , just shout
PS: “my_function” should probably be changed to something more meaningful
-
AuthorPosts