If you already know your customers' address details, you may want to populate the cart automatically via the SDK. To do so, use the below example:
Shoprocket.Cart.ShippingAddress({ email: "[email protected]", company_name: "Company Name", name: "Customer Name", address: "Address", city: "City", postcode: "N1 5AE", country: "United Kingdom", state: "London", number: "07955492093", });
Shoprocket.Cart.BillingAddress({ email: "[email protected]", company_name: "Company Name", name: "Customer Name", address: "Address", city: "City", postcode: "N1 5AE", country: "United Kingdom", state: "London", number: "07955492093", });