WPPizza – A Restaurant Plugin for WordPress › Support › General Support › wppizza-customer-details
- AuthorPosts
- 27 July, 2015 at 11:59 am #11232
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.
27 July, 2015 at 1:56 pm #11235then all those 5 are doing it wrong.
try this one28 July, 2015 at 10:05 am #11257Thanks 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!
28 July, 2015 at 1:28 pm #11261you 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.php29 July, 2015 at 9:38 am #11274Ah ok! Thanks for the tip. I wasn’t aware!
Thanks again for the help 🙂
29 July, 2015 at 9:42 am #11275Actually It was already false…
29 July, 2015 at 5:54 pm #11276then 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
- AuthorPosts
- The topic ‘wppizza-customer-details’ is closed to new replies.