Forum Replies Created
- AuthorPosts
-
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
hi
having had a look at the way it is right now, this might take a few more days to bring it up to scratch.
in the meantime though (in case you want to get going) you can do the following (which will be part of the next update)
on approx line 833 of wppizza-gateway-authorize.net.php you will find
function gateway_transaction_execute($gatewayReply,$orderId){
right after that just add
do_action('wppiza_gateway_anet_verified',$gatewayReply, $orderId);
so it will read
function gateway_transaction_execute($gatewayReply,$orderId){ do_action('wppiza_gateway_anet_verified',$gatewayReply, $orderId);
and so forth.
in your themes functions.php you can then go wild as in
add_action('wppiza_gateway_anet_verified','my_function',10,2); function my_function($gwreply,$orderid){ /* do your cim stuff with the reply from authorize.net contained in $gwreply */ /* fyi: $orderid is the id of the order in the wppizza_orders table ...just in case you need it for something*/ }
note, this action hook will only run when the reply from auth net has been (again) verified to make sure currencies etc match (but i guess that should be just fine, as otherwise it would mean someone has tampered with stuff somewhere)
hope that helps for the moment
> is there a way to remove the space between the £ and the Price
as it happens , this is actually hardcoded (i.e if currency value set left, its £ 1.99 if right it’s 1.99 £)
you could change this by adding/using/writing a bunch of filters (about 7 or so probably) but that sounds like overkill for such a relatively minor thing.in my book , the best idea would be for me to put this on my list of things to do (though cant give you an ETA) and make this filterable consistently by just using one filter where you decide to use a space or not.
for the moment therefore i would suggest you live with it as is (or prepare yourself for half a day of writing filters)> I can put this in a separate thread if required
don’t worry, it’s fine>I couldn’t find how to edit .wppizza-cart-fixed
you don’t “edit” this class, you just add declarations in your wppizza-custom.css
fyi: that class gets added by js to the relevant cart element as soon as it needs to /starts to scrolli would suggest add .wppizza-cart-fixed{border:1px solid red} for example to your custom css (while messing around with things) and you’ll see when it starts to get applied
actually , it might also be the case , that update checks only take place every so often (let’s say every 6 or even 12 hours or so) in which case the update would not show up until that time has expired since last check….
again, i’ll have to check exactly how that licensing thing does it’s bits..
for the time being though it’s not something you have to worry about (it’s something i need to check) - AuthorPosts