Forum

Thread tagged as: Question, Shop

Delete Shop addresses

I have some customers that have created 10-15 addresses in their account and they would like to remove some of them. Is there a way to delete addresses from the Shop "Address Book"?

Justin Jojola

Justin Jojola 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What process are you using to enable them to create the additional addresses?

I'm not using a process for that. I think the "perch_shop_order_addresses();" keeps creating a blank address. What am I doing wrong?

<?php
                            if (perch_member_logged_in()) {
                                if (perch_shop_addresses_set()) {
                                    perch_shop_cart(array(
                                        'template'=>'cart/cart_static.html'
                                    ));
                                    perch_shop_order_addresses();
                                    perch_shop_payment_form('manual');
                                }else{
                                    perch_shop_order_address_form();
                                }
                            }else{
                                perch_shop_registration_form(array(
                                    'template' => 'checkout/customer_create.html'
                                ));
                            }
                        ?>
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_shop_order_address_form() captures a new address. If you're editing an address, use perch_shop_edit_address_form()

Then how does a user select a different address?

Is it "perch_shop_order_address_form()"? When I use this, and a user selects a different address (for billing or shipping) it creates a new blank address instead of making the address selection change.

Drew McLellan

Drew McLellan 2638 points
Perch Support

How they select the address depends on the UI you want to build. Can you post your diagnostics report?

I keep running into so many problems. I'm frustrated and apparently too stupid to figure this out. Can you suggest a developer to help with this? Ugh...

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you checked out https://grabaperch.com/developers ?