wppizza-customer-details

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11232
    kaybee
    Participant

      Hi,

      Is there a way to insert wppizza-customer-details on a custom page? I have tried 5 profile plugins but they all miss the WP-Pizza Additional information in profile as fields. For example customers aren’t able to update delivery address etc…

      Any help would be much appreciated.

      Cheers.

      #11235
      Olly
      Admin & Mod

        then all those 5 are doing it wrong.
        try this one

        https://wordpress.org/plugins/theme-my-login/

        #11257
        kaybee
        Participant

          Thanks for that, almost worked really well!

          I was able to achieve everything required but unfortunately i get an error if any changes are applied in profile settings using theme-my-login. Please see below.

          Warning: Cannot use a scalar value as an array in /home/adminttph/public_html/wp-content/plugins/wppizza-delivery-by-postcode/wppizza-delivery-by-postcode.php on line 486

          Warning: Cannot modify header information – headers already sent by (output started at /home/adminttph/public_html/wp-content/plugins/wppizza-delivery-by-postcode/wppizza-delivery-by-postcode.php:486) in /home/adminttph/public_html/wp-includes/pluggable.php on line 1196

          Thanks again!

          #11261
          Olly
          Admin & Mod

            you should never output error/warnings/notices but log them instead. (as outputting them will stop sessions from working amongst other things)

            that said, i will fix this warning in the next update of course. for the time being though change

            define('WP_DEBUG_DISPLAY', true);

            to

            define('WP_DEBUG_DISPLAY', false); in your wp-config.php

            #11274
            kaybee
            Participant

              Ah ok! Thanks for the tip. I wasn’t aware!

              Thanks again for the help 🙂

              #11275
              kaybee
              Participant

                Actually It was already false…

                #11276
                Olly
                Admin & Mod

                  then it should not output anything anywhere unless it gets overwritten elsewhere

                  in any event, you can add the following (which will be default in th enext update anyway, so feel free to edit the core file)

                  in wppizza-delivery-by-postcode.php approx line 485 you will find the following

                  function wppizza_dbp_user_register_saveupdate_meta($ff){

                  right after that , add

                  if(!is_array($ff)){return $ff;}

                  so the whole function reads

                  
                  function  wppizza_dbp_user_register_saveupdate_meta($ff){
                  if(!is_array($ff)){return $ff;}
                  $ff[]=$this->wppizza_dbp_output_array();
                  return $ff;
                  }
                  

                  which should get rid of that warning

                Viewing 7 posts - 1 through 7 (of 7 total)
                • The topic ‘wppizza-customer-details’ is closed to new replies.