Request for individual coding

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #9989
    maherali
    Participant

      Hi this is a bit of a strange request but I think would be very profitable for yourself Olly and help people get what they want out of this plugin (however may not be possible due to your other commitments).

      I am not a coder in fact I have done nothing related to web design/development until creating my website with wordpress and using your plugin – this is all very foreign to me.
      I basically want two bits of coding done and sure I can learn how to do it myself given time but I run my own business and i’d rather invest my time elsewhere if possible (a lot of days I hand out leaflets for 6-7 hours prior to work then I go to work for 6-7 hours so my time is limited) – I am happy just to know the basic and change the menu and a few style changes.

      I would like:

      1, When I the status on the order history page to ‘DELIVERED’ for the website to send an automatic email to the customer (a template which i’d provide).

      2, I use the add ingredients extension to do a set meal with 5 options – I would like the printout to print every item on a seperate line rather than ‘item1,item2,item3,etctec’.

      I have absolutely no qualms about paying you to do this in fact I insist on it as it’s a request for me personally and may not benefit others – for what would probably take you less than 10 minutes and me hours (if not days I may just not understand it).

      So is this possible?

      I know my first request you already have provided a code snippet but I just can’t get my head around it… and i’d want the specific code for my website if possible.

      Let me know what you think Olly.

      #9990
      Olly
      Admin & Mod

        in short:

        if i were to take on customisations, development of the plugin and extensions/gateways would stop dead right here

        i am already spending way too much time dealing with stuff that has nothing to do with the plugin in the first place or indeed providing/writing codesnippets so someone can do something that is not in the scope of the plugin.

        there are – quite literally – millions of developers out there that build and customise wordpress based websites to your exact specifications. I’m sure you should be able to find one somewhere that can do what you want to do

        #9991
        Olly
        Admin & Mod

          in any event, i also have a number of (non-wppizza) clients anyway so capacity==0

          #9992
          maherali
          Participant

            If anyone reading this thread can make these changes please post!

            #10002
            Olly
            Admin & Mod

              re 1) that codesnippet already exists

              https://www.wp-pizza.com/topic/send-email-on-admin-status-update/

              quick fix re 2) – in your themes functions.php

              
              add_filter( 'wppizza_filter_print_order_single_item', 'myprefix_add_ingredients_items_linebreaks');
              function myprefix_add_ingredients_items_linebreaks($item){
              $item['addinfo']=str_replace(', ','<br />',$item['addinfo']);	
              return $item;
              }
              #10003
              maherali
              Participant

                Thank you Olly! This will make life a lot easier on Thursdays as the bills were hard to read foe the chefs when we’re busy. I have seen the code snippet for my first request but I can’t get my head around it but I will have a go tomorrow to see if I can customise it to the email I want sent – currently we email each customer 1 by 1 when dispatched which is very time consuming especially on a busy day.

                #10038
                maherali
                Participant

                  Hi Olly I have managed to get there 99% with the send email on order status update. Editing who from etc and message was easy enough and I have deleted the order info as I didn’t want that in a follow up email.

                  I am having trouble figuring out how to set it so that it only sends an email when status has been changed to ‘delivered’ rather than just every status update (as in my place we changed to acknowledged that does a print popup then again to delivered when it’s been sent out or ready for collection).

                  I know I must edit this bit of code but I can’t figure out what exactly it should be could you help me please?

                  if($postdata[‘vars’][‘type’]==’statusupdate’){// could also add a ” && in_array($postdata[‘vars’][‘type’],array(‘PROCESSED’,’REJECTED’,’REFUNDED’))” to only send when status changed to those

                  I changed ‘statusupdate’ to ‘DELIVERED’ but it did not work. I changed the text after type from “==’statusupdate’)” to “,array(‘DELIVERED’)” and that did not work either. Obviously i’m doing something very wrong could you advise me where please?

                  Thank You

                  #10056
                  Olly
                  Admin & Mod

                    you havent read the comments properly

                    could also add ….

                    (though there is a mistake as that it should say [‘status’] of course ) – now updated in the original documentation too)

                    i.e

                    
                    if($postdata['vars']['type']=='statusupdate' && in_array($postdata['vars']['status'],array('DELIVERED'))){
                    /******etc*****/
                    
                    #10057
                    maherali
                    Participant

                      That did the trick Olly thank you! I did try that too but it didn’t work for me I must have messed some other bit up. What part of the code do I need to alter so that the popup dialog only comes up when I change the status to ‘DELIVERED’?

                      With the code as it is if I change it to any status it will come up with a blank popup message but if I changed it to delivered it will come up with the ’email sent’ popup which I only want for delivered.

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • The topic ‘Request for individual coding’ is closed to new replies.