Code

Discussion on WooCommerce Multiple Customer Addresses & Shipping

Discussion on WooCommerce Multiple Customer Addresses & Shipping

Cart 2,337 sales

vanquish supports this item

Supported

984 comments found.

i have created multiple fields through checkout page editor , will this pligun support these fields or i need to add code for these fields?

Fields are retrieved by invoking the native WC()>countries>get_address_fields() method.

If a plugin is inserting custom fields using the woocommerce_billing_fields/woocommerce_shipping_fields filters should work, but they need to be a simple type (like text or select field). If they are implementing custom types like radio or conditional fields, most likely they won’t work. The address popup is not designed to manage those special fields.

To be sure the plugin will work, I warmly recommend using it without the usage of any custom field.

can i bought and try it if its work or i can refund it , more likely it will work or i will custom code if needed, will your support help i need help ?

No, the refund policy doesn’t include refunds for this kind of scenario.

The support service doesn’t include any customization service and doesn’t cover issues related to custom code. If you need customization after the purchase, I can evaluate the task and eventually give you a quotation.

Hello, does the plugin work with the new FSE in WooCommerce v9.6? Does the plugin have blocks or any shortcodes?

Best Regards ;)

Hello,
no, the plugin hasn’t any support with blocks. It automatically renders its controllers (the address selector) in the Checkout template. The checkout block doesn’t implement any method for 3rd party to inject their data, so if you plan to use the plugin, you need to switch to the default checkout template.

Before buying this plugin, i have one question as per my requirement,

I want to add Shipping address after fetching from some API, so my complete requirement is as below.

- I will fetch Shipping Address from some API, which I will handle my self. - I want to add those shipping addresses to this plugin through code,

how can I achieve this adding shipping addresses through code

Hi,
The plugin has the following method that allows you to add an address:
global $wcmca_customer_model;
$wcmca_customer_model->add_address($user_id, $address);
where the $address in an array containing the new address data:
array(15) {
  ["type"]=>
  string(7) "billing" 
  ["address_id"]=>
  string(2) "13" 
  ["address_internal_name"]=>
  string(2) "test" 
  ["user_id"]=>
  string(1) "1" 
  ["billing_first_name"]=>
  string(4) "Dead" 
  ["billing_last_name"]=>
  string(4) "Shot" 
  ["billing_company"]=>
  string(0) "" 
  ["billing_email"]=>
  string(19) "dadshot@noemail.com" 
  ["billing_phone"]=>
  string(9) "123231231" 
  ["billing_country"]=>
  string(2) "IT" 
  ["billing_state"]=>
  string(2) "BA" 
  ["billing_address_1"]=>
  string(2) "st" 
  ["billing_address_2"]=>
  string(0) "" 
  ["billing_city"]=>
  string(6) "Gotham" 
  ["billing_postcode"]=>
  string(6) "123123" 
  ["billing_vat_number"]=>
  string(0) "" 
}

You can use the that snippet to insert the data you read from the API

Hello, I want to show the Billing & shipping details to YITH Woocommerce Quote Request page. How can i do it ?

Hello,
I’m sorry, but you should ask that plugin help staff on how to show that data in their plugin.

Good Morning Developer,

We are currently making use of this plugin in our woocommerce store and enabled the ‘send a copy to shipping address email’ when an order status has been updated , but it only seems to stil send an email only to the billing address email ?

Please assist ?

Kind Regards,

Hello,
I’m sorry, to which send a copy to the shipping address email option are you referring? The plugin doesn’t have such an option.

Hi. Is it possible to import delivery addresses directly to the database (not with your importing tool)?

We need automatically update them from another system. Already tried and i see them imported from backend, but not in dropdown box, when i want to make an order as user.

Thanks

Hi,
yes you could. The addresses are stored in a single usermeta key named _wcmca_additional_addresses for each user. The array has the following structure:
array(2) {
  [0]=>
  array(15) {
    ["type"]=>
    string(7) "billing" 
    ["address_id"]=>
    string(2) "11" 
    ["user_id"]=>
    string(1) "1" 
    ["address_internal_name"]=>
    string(15) "Home" 
    ["billing_first_name"]=>
    string(9) "Valentino" 
    ["billing_last_name"]=>
    string(5) "Rossi" 
    ["billing_company"]=>
    string(6) "Amazon" 
    ["billing_country"]=>
    string(2) "IT" 
    ["billing_state"]=>
    string(2) "PU" 
    ["billing_address_1"]=>
    string(3) "Via" 
    ["billing_address_2"]=>
    string(0) "" 
    ["billing_city"]=>
    string(6) "Pesaro" 
    ["billing_postcode"]=>
    string(6) "123456" 
    ["billing_phone"]=>
    string(5) "55555" 
    ["billing_email"]=>
    string(17) "example@gmail.com" 
  }
  [1]=>
  array(12) {
    ["type"]=>
    string(8) "shipping" 
    ["address_id"]=>
    string(2) "12" 
    ["address_internal_name"]=>
    string(14) "Office" 
    ["shipping_first_name"]=>
    string(4) "John" 
    ["shipping_last_name"]=>
    string(6) "Doe" 
    ["shipping_company"]=>
    string(0) "" 
    ["shipping_country"]=>
    string(2) "AL" 
    ["shipping_state"]=>
    string(9) "stato_bho" 
    ["shipping_address_1"]=>
    string(3) "via" 
    ["shipping_address_2"]=>
    string(0) "" 
    ["shipping_city"]=>
    string(6) "Tirana" 
    ["shipping_postcode"]=>
    string(6) "123456" 
  }
}
In this example, the customer has two addresses.

Please advise if this is compatible with Elementor Pro. I have a customized checkout page using E Pro and a sticky header.

Thank you.

I’m sorry, the plugin doesn’t support customized checkout pages.

Hello!

I need soe help! I bought your plugin Multiple Customer Addresses to offer the option to store and use several delivery addresses. I am using the newest wordpress and woocommerce with the them storefront. It seems that you plugin is not compatible. Please help me to make it run the way it should.The domain is www.fenix-profil.de .

Thank you and till soon

Andreas

Hello,
what do you mean that is not compatible? Could you provide a more detailed description of the issue?

Please, ensure you are not using WooCommerce block, but the standard WooCommerce checkout template. As reported int he Custom checkout form notice paragraph, altering the checkout page in any way, might lead the plugin to not work as expected.

Can this plugin allow for custom code? We were looking to add an additional text field such as “Account Number” in the Address Book.

We were going to test on the demo site but we need access to the server in order to alter the functions file.

The plugin doesn’t have any feature to allow the creation of new fields.

You can however create that field by just hooking to the woocommerce_billing_fields filter:
add_filter( 'woocommerce_billing_fields', 'your_function', 10 );
function your_function( $fields ) 
{
$fields['billing_account_number']  = array(
    'account_username'   => array(
        'type'        => 'text',
        'label'       => __( 'Account Number', 'woocommerce' ),
        'placeholder' => _x( 'Account Number', 'woocommerce' ),
    )
return $fields;
}

and it will appear in the address book.

Why is the plugin throwing this headers sent error? My log file is FULL of this error.

PHP Warning: session_start(): Session cannot be started after headers have already been sent in /home/websitename/public_html/wp-content/plugins/woocommerce-multiple-customer-addresses/classes/com/WCMCA_Session.php on line 11

Hi,
that’s a warning, not an error. It seems that something in your installation is outputting text before in the headers and send to the clients before the plugin can init its self.

Try disabling the other plugins one by one (and eventually the theme as well) until you find the interfering one. Once done, you need to report to its developer.

Hi!

Does your Plugin support different languages like German?

Hi,
the plugin supports the WPML plugins for localization and the po/mo system to translate static strings. You need, however, to translate those strings in the language you need by yourself.

Hello, you don’t close sessions and this is causing issues on the site: session_start() should be closed with session_write_close() as well.

Hello,
should no must be closed. It could be closed if the plugin was sure that no other component was using the session to store their data. Closing without knowing that, could cause other components to not work as expected. The plugin just creates a user session if it is not existing, this doesn’t cause any kind of issue.

Not sure I follow, why do you need to keep that one session open, why can’t another be opened if needed? As I understand open sessions like these can cause load issues. Wordpress lists it as critical issue: “A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.”

Because the plugin needs it to properly work and open if it is not already opened. In the case of REST API, the plugin doesn’t even init (check line 33 on the main woocommerce-multiple-customer-addresses.php script file)

I have contacted you before I am getting purchase code invalid

Please do not open different threads regarding the same matter. It won’t make you acquire more priority, it just makes it harder to keep track of your ticket.

Unfortunately, the support service is not an instant service, it requires time to answer because, in the meanwhile, I’m assisting other clients.

Please give a look the the other comment you left.

Hi Vanquish

On our checkout page, the dropdown address selections are disabled.

They have data in the source code, but you can’t use the drop down until I remove the select2-hidden-accessible class from the select element.

Hi,
without any further clue, it is quite hard to determine the cause. Most likely something is interfering. Please try disabling the other plugins (and eventually switching the theme) to see if the issue still occurs. If not, re-enable one by one until you find the interfering one.

Hi,

I bought multiple shipping address plugin for my website. I am getting warning on my website. Help me to fix the issue.

checkout/:166 Scripts that have a dependency on [wc-blocks-checkout] must be loaded in the footer, flexible-shipping-ups-blocks-integration-frontend was registered to load in the header, but has been switched to load in the footer instead. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5059 (anonymous) @ checkout/:166

Hi,
I’m sorry, but the plugin doesn’t depend on wc-block. Furthermore, the warning message you report does not reference the WooCommerce Multiple Customer Addresses plugin.

Hello, the error message appears on our website: PHP Warning: session_start(): Cannot start session when headers already sent in /mnt/data/home/873692.cloudwaysapps.com/mtuyusnqtw/public_html/wp-content/plugins/woocommerce-multiple-customer-addresses/classes/com/WCMCA_Session.php on line 11

How can I solve it?

Thank you. Martin

Hi Martin,
That message is usually displayed when something is outputting text before the header is rendered. You need to find which is outputting that text.

Please note that is a warning not an error message. It means that no script is crashing preventing the site to work as expected

Hi there, I bought multiple shipping address plugin for my site and i have 2 queries regarding functionality and performance of this plugin. 1. Why its not using Google api to auto complete address ? I have already installed other plugin Address autocompletes but when as user i am adding any address in this plugin on checkout page its not auto-completing it. I don’t know why. It would be great if there is any setting in this plugin will allow user to use google api to complete address so user wont make mistakes.

2. first i have uploaded this plugin on my staging site and entered license key for testing now when i installed this on my production site i can’t activate this even though i have deactivated from staging site. Can you please help me. I have used same license key which was mentioned in pdf file for but for production it’s not activating.

Hi, thank you for purchasing
  1. Thank you for your suggestion, I’ll try doing my best for a future release
  2. Which kind of error are you getting? Have you used a fully HTML5 compliant browser like Chrome or Firefox? Could you try disabling the other plugins? If you send me via private message (click on my name then use the low-right box) reporting your email, wp-admin access, and FTP access I can perform some further analysis

Unethical behavior by the author, forcing a wrong version number in the update to show that there is an update even though there is no update. The trick is get him paid for nothing.

All the updates are available on CodeCanyon once approved by the Envato platform.

The customer who has a valid support license can download the update via the Plugin dashboard. Unfortunately, as anyone who works in IT knows, software maintenance and development are not zero-cost tasks. The support license supports me and my family in a job, a support license that costs a few dollars and can be tax deducible.

If not willing to use that feature, the user can always download the latest update available on codecanyon and update manually.

You should reconsider your decision, like others.

Hi there, we are updating the plugin from version 11.2 to version 24.9 on the site and have run into a fatal error. Our support has expired now but I’m hoping you can offer some guidance? Our dev team have asked:

In the latest update the class WCMCA_Customer() is no longer initiated on load – instead it has now moved from the main file into another file and the new function: function wcmca_eu()

And this only seems to be called within /classes/com/WPMCA_Global.php (this file is loaded) if a variable $lmca2 is not set… that variable is never set in the whole plugin.

Can you advise what $lmca2 is and if we are able to load the class any other way for use in our theme.

HI the full error is

PHP Fatal error: Uncaught Error: Class “WCMCA_Customer” not found in /nas/content/live/wundadev/wp-content/themes/wundatrade/woocommerce/myaccount/my-address.php:47#012Stack trace:#012#0 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()#012#1 /nas/content/live/wundadev/wp-content/themes/wundatrade/woocommerce/myaccount/form-edit-address.php(29): wc_get_template(‘myaccount/my-ad…’)#012#2 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(’/nas/content/li…’)#012#3 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(207): wc_get_template(‘myaccount/form-...’, Array)#012#4 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3359): WC_Shortcode_My_Account::edit_address(’’)#012#5 /nas/content/live/wundadev/wp-includes/class-wp-hook.php(324): woocommerce_account_edit_address(’’)#012#6 /nas/content/live/wundadev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(’’, Array)#012#7 /nas/content/live/wundadev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#8 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3269): do_action(‘woocommerce_acc…’, ’’)#012#9 /nas/content/live/wundadev/wp-includes/class-wp-hook.php(324): woocommerce_account_content(’’)#012#10 /nas/content/live/wundadev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#012#11 /nas/content/live/wundadev/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#12 /nas/content/live/wundadev/wp-content/themes/wundatrade/woocommerce/myaccount/my-account.php(37): do_action(‘woocommerce_acc…’)#012#13 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(’/nas/content/li…’)#012#14 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(108): wc_get_template(‘myaccount/my-ac…’, Array)#012#15 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(57): WC_Shortcode_My_Account::my_account(Array)#012#16 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_My_Account::output(Array)#012#17 /nas/content/live/wundadev/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(115): WC_Shortcodes::shortcode_wrapper(Array, Array)#012#18 /nas/content/live/wundadev/wp-includes/shortcodes.php(434): WC_Shortcodes::my_account(Array, ’’, ‘woocommerce_my_…’)#012#19 [internal function]: do_shortcode_tag(Array)#012#20 /nas/content/live/wundadev/wp-includes/shortcodes.php(273): preg_replace_callback(’/\\[(\\[?)(woocom…’, ‘do_shortcode_ta…’, ‘[woocommerce_my…’)#012#21 /nas/content/live/wundadev/wp-includes/class-wp-hook.php(324): do_shortcode(‘[woocommerce_my…’)#012#22 /nas/content/live/wundadev/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[woocommerce_my…’, Array)#012#23 /nas/content/live/wundadev/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘[woocommerce_my…’)#012#24 /nas/content/live/wundadev/wp-content/themes/wundatrade/loop-templates/content-page.php(21): the_content()#012#25 /nas/content/live/wundadev/wp-includes/template.php(812): require(’/nas/content/li…’)#012#26 /nas/content/live/wundadev/wp-includes/template.php(745): load_template(’/nas/content/li…’, false, Array)#012#27 /nas/content/live/wundadev/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)#012#28 /nas/content/live/wundadev/wp-content/themes/wundatrade/page.php(28): get_template_part(‘loop-templates/...’, ‘page’)#012#29 /nas/content/live/wundadev/wp-includes/template-loader.php(106): include(’/nas/content/li…’)#012#30 /nas/content/live/wundadev/wp-blog-header.php(19): require_once(’/nas/content/li…’)#012#31 /nas/content/live/wundadev/index.php(17): require(’/nas/content/li…’)#012#32 {main}#012 thrown in /nas/content/live/wundadev/wp-content/themes/wundatrade/woocommerce/myaccount/my-address.php on line 47

But can you please read the initial question and dont copy/paste reply as its a genuine question as we debugged the error and found where its thrown… we need you to assist please.

It seems that your installation doesn’t properly init all the classes that are part of the plugin. Make sure it is properly installed and that no 3rd party plugins are interfering with the initialization process.

Note also that the latest version is the 25.3

Please update the download verison to the latest. I am so sick of you having an update and not releasing it, only to waste my time downloading an old version.This happens all the time with this plugin, this must be a violation of Envato terms. What a joke!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey