4

Addresses are not Elements, so most import plugins will no support them as an import type. You will need to create a plugin or script that imports the addresses into the commerce_addresses table. You could do this with a SQL query, but you could also use the Commerce address service like the example below. Simply create an import.php file and place it in ...


2

Docs As you can see from both examples, the shipping address is always submitted, and the billingAddress can either be also included, or set to the same address as the shipping address with the sameAddress param. The shippings address is always submitted -> the billing address can be included or not Your statement: At the bottom is a checkmark which ...


2

Yes, you can submit all updates to the cart in the one controller action commerce/cart/update-cart


1

This is caused by the model.countryId not being defined on first page load, which means the options defaults to an empty array. Once the address is saved, the selected country that is saved will provide the countryId and therefore your states dropdown is populated the second time around. IIRC, the sample Commerce templates hide the text field and show the ...


1

It is possible to override sameAddress The trick to doing this is as follows: Checkout Step 1: Set your shipping address and use sameAddress1 <form method="POST"> <input type="hidden" name="action" value="commerce/cart/updateCart"> <input type="hidden" name="redirect" value="/checkout/shipping"> <input type="hidden" name="...


1

You would need to either 1) Delete all the countries you don't use within your site in commerce > settings > countries. 2) Simply hide them in twig with something like this: {% set allowedCountryIds = [1,3,4,6,7] %} {% for key, country in craft.commerce.countriesList %} {% if key in allowedCountryIds %} <option value="{{ key }}">{{ ...


1

As mentioned previously, addresses can not be edited on the order once the order is complete (from the front-end). Right now completed order's addresses can only be edited by admins. The only way around that at the moment would be to create your own plugin controller action that your form would post to. The controller action would look like this: public ...


1

When the order is completed a copy of the address is made which is created for that specific order, that explains why it doesn't show up in the customers_addresses table. This is so that the address is unique to that order and can be edited by an admin without affecting the customers address book. Are you wanting customers to be able to edit that address ...


1

It's not implemented, but possible. I think it should be part of Commerce core really, and done when the user is created by default. In the meantime, my Register On Checkout plugin does this - https://github.com/bossanova808/CommerceRegisterOnCheckout You could adapt this more generally I guess to listen to all user registrations and see if there are ...


Only top voted, non community-wiki answers of a minimum length are eligible