• Resolved snakeyz81

    (@snakeyz81)


    Is it possible to add in the customer’s address, too?

    My business goes to people’s homes and I’d like to import their billing address into a google cal event. That way, when I open the event, I can possibly click the address or copy and paste to google maps.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rajesh Kaswala

    (@rstarlite)

    Hello,

    Thank you for using our plugin. As of now, this plugin only supports CUSTOMER_NAME, CUSTOMER_BILLING_EMAIL, CUSTOMER_BILLING_PHONE fields. We’re developing this plugin so that it can support all default billing and shipping fields.

    At line 70 in index.php file of our plugin, we’ve this code

    //Find and replace the placeholders with actual value
    $data['description'] .= preg_replace(
                    array('/CUSTOMER_NAME/', '/CUSTOMER_BILLING_PHONE/', '/CUSTOMER_BILLING_EMAIL/'),
                    array($display_name, $billing_phone, $billing_email),
                    $gcaleventwcb_option
    );

    Replace the above code with

    //Find and replace the placeholders with actual value
    
    $get_billing_address_1 = $order->get_billing_address_1();
    $get_billing_address_2 = $order->get_billing_address_2();
    
    $data['description'] .= preg_replace(
    array('/CUSTOMER_NAME/', '/CUSTOMER_BILLING_PHONE/', '/CUSTOMER_BILLING_EMAIL/','/CUSTOMER_BILLING_ADDRESS_1/','/CUSTOMER_BILLING_ADDRESS_2/'),
    array($display_name, $billing_phone, $billing_email, $get_billing_address_1, $get_billing_address_2),
    $gcaleventwcb_option
     );

    Please note that CUSTOMER_BILLING_ADDRESS_1 and CUSTOMER_BILLING_ADDRESS_2 are new tags to be used in our plugin setting

    Thread Starter snakeyz81

    (@snakeyz81)

    When do you think the updated version will be available?

    Plugin Author Rajesh Kaswala

    (@rstarlite)

    We can’t say exact time but we think it should be ready by end of this year.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding in the customer’s address’ is closed to new replies.