Olly

Forum Replies Created

Viewing 20 posts - 3,861 through 3,880 (of 4,441 total)
  • Author
    Posts
  • in reply to: Orders no longer sending email #7073
    Olly
    Admin & Mod

      link please

      Olly
      Admin & Mod
        
        $wppizzaOptions=get_option(WPPIZZA_SLUG);
        $opt=wppizza_frontendOpeningTimes($wppizzaOptions);
        echo ''.$opt.'';
        
        in reply to: opening times shortcode – make each segment on new line #7047
        Olly
        Admin & Mod

          >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 grouped

          in reply to: opening times shortcode – make each segment on new line #7046
          Olly
          Admin & Mod

            i 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

            in reply to: opening times shortcode – make each segment on new line #7044
            Olly
            Admin & Mod

              or wrap it in a div (with an id presumably) and don’t bother with the classes/classnames…

              in reply to: opening times shortcode – make each segment on new line #7042
              Olly
              Admin & Mod

                the
                1-4
                5
                etc

                refer 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 selector

                in reply to: opening times shortcode – make each segment on new line #7040
                Olly
                Admin & Mod

                  you can do whatever you like. that’s what css is for

                  in reply to: Show adress in multi google maps #7029
                  Olly
                  Admin & Mod

                    that is already available in the delivery by postcode extension…..
                    (but only when used with google maps option)

                    in reply to: authorize.net CIM Addon Suggestion #7020
                    Olly
                    Admin & Mod

                      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

                      in reply to: only show custom groups ingredients #7011
                      Olly
                      Admin & Mod

                        >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 4

                        but 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

                        in reply to: authorize.net CIM Addon Suggestion #6999
                        Olly
                        Admin & Mod

                          >Thanks for being so kind

                          you’re welcome

                          in reply to: only show custom groups ingredients #6998
                          Olly
                          Admin & Mod

                            >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 them

                            in 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

                            in reply to: authorize.net CIM Addon Suggestion #6991
                            Olly
                            Admin & Mod
                              This reply has been marked as private.
                              in reply to: authorize.net CIM Addon Suggestion #6990
                              Olly
                              Admin & Mod

                                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 )

                                in reply to: Extra charge per main category #6984
                                Olly
                                Admin & Mod

                                  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;
                                  }
                                  
                                  in reply to: authorize.net CIM Addon Suggestion #6975
                                  Olly
                                  Admin & Mod

                                    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

                                    in reply to: authorize.net CIM Addon Suggestion #6974
                                    Olly
                                    Admin & Mod

                                      PS: “my_function” should probably be changed to something more meaningful

                                      in reply to: authorize.net CIM Addon Suggestion #6973
                                      Olly
                                      Admin & Mod

                                        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

                                        in reply to: Sidebar Cart Scrolling Background #6967
                                        Olly
                                        Admin & Mod

                                          > 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 scroll

                                          i 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

                                          in reply to: Display issue with comments from Add Ingredients #6955
                                          Olly
                                          Admin & Mod

                                            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)

                                          Viewing 20 posts - 3,861 through 3,880 (of 4,441 total)