Forum

Thread tagged as: Problem, Members, Shop

customer_update.html

Hi Guys,

how to i call the "customer_update.html" correctly, so that it shoes all of the existing data? I tried doing it like this:

<?php
    if (!perch_member_logged_in()) {
        perch_shop_registration_form([
            'template' => 'checkout/customer_create.html'
        ]);
    }
    else {
        perch_member_form('../../shop/checkout/customer_update.html');
    }
?>

But it only shows the data for first name, last name and email. Everything else is missing.

Manuel Hügel

Manuel Hügel 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

There's an update function to use instead of re-registering have you tried that?

Hi Drew,

thanks for your quick reply. No, i didn't tried that - couldn't find anything about this in the docs. Do you have a link for me?

Best Manuel

Drew McLellan

Drew McLellan 2638 points
Perch Support

Looks like it's perch_shop_customer_edit_form() you want in this circumstance.

perch_shop_customer_edit_form();

Thank you really much.