Forum

Thread tagged as: Question, Shop

Ask user to enter shipping address

I am trying to add address entry form for billing and shipping address. For customers who already have on file, it works, but for new customers. I don't see address entry form, below is my code

 if (!perch_shop_addresses_set()) {

        perch_shop_order_address_form([
            'template' => 'checkout/order_address_points.html',
        ]);
      }else{
        perch_shop_order_addresses();
      }
sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you don't specify your own custom template, does it show the form?

No, it just shows billing and shipping address. i had custom template because I only wanted customer to select shipping address, don't need billing address.

I have never seen address entry form during checkout. it has always been address selection

Drew McLellan

Drew McLellan 2638 points
Perch Support

You have to have a billing address. You can label it as a shipping address if you like, but you need to know the location of your customer.

That is fine. But how do i get order address entry form on checkout page?

Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_shop_edit_address_form()