-
Notifications
You must be signed in to change notification settings - Fork 2
editCustomer
ThreeDeeCart::Customer.edit(customer_data, options)Bold parameters are required:
action - the desired action, either insert, update or delete
contactid - Numeric Customer id - identifies the customer. Required when alt_contactid is blank.
alt_contactid - Alternative customer id - identifies the customer. If has value, contactId will be ignored
billing_firstname - Billing first name. Required when action = insert.
billing_lastname - Billing last name. Required when action = insert.
billing_address - Billing address 1.
billing_address2 - Billing address 2.
billing_city - Billing city.
billing_state - Billing state (2 digits for US states).
billing_zip - Billing zip code.
billing_country - Billing country (ISO Country Code).
billing_company - Billing company.
billing_phone - Billing phone.
email - Email. Required when action = insert.
shipping_firstname - Shipping first name.
shipping_lastname - Shipping last name.
shipping_address - Shipping address 1.
shipping_address2 - Shipping address 2.
shipping_city - Shipping city.
shipping_state - Shipping state (2 digits for US states).
shipping_zip - Shipping zip code.
shipping_country - Shipping country (ISO Country Code).
shipping_company - Shipping company.
shipping_phone - Shipping phone.
comments - Comments.
website - Website.
pass - Password. Required when action = insert. discount - Customer group id (0 for none). Default = 0
accountno - Tax id.
maillist - Indicates if the customer is subscribed on the mailing list. Must be: 0 or 1. Default = 0
custenabled - Numeric Indicates if the customer is enabled. Must be: 0 or 1. Default = 0
additional_field1 - Additional field 1
additional_field2 - Additional field 2.
additional_field3 - Additional field 3.
Bold parameters are required:
storeURL - 3dCart Store URL from which the information will be requested. i.e.: www.3dcart.com
data = ThreeDeeCart::CustomerData.new(:action => :update, :contactid => 123, :pass => "123123")
ThreeDeeCart::Customer.edit(data, {storeUrl: "http://www.3dcart.com"})