Send additional fields values to checkout
Is there any way to send additional field's values like "Shipping Address" and "Contact Number" to Checkout along with cart data?
I'd also like the ability to "extend" the ngCart object to include custom fields like: description, size, etc.
+1
Hei, @webiox! Did you find a way to resolve this? I also want to send some customer data along with the cart data.
Hi @Intergalactik, I solved this by storing the form data in an array
this.formData = {};
And then "getting out" the cart info from the directive
this.productData = ngCart.$cart;
Then adding both objects and then sending an unique http request
this.checkoutData = angular.extend(this.formData, this.productData);
this.submitForm = function() {
$http.post('process.php', this.checkoutData)
};
Hope this can help you!
Oh, @Jesus82 , thank you! :+1:
The same issue I am having , in cart page I need to send set of extra fields:
- Delivery (either express or fast) , in form of radio burtons.
- Shipping note and few more.
It will be great if anyone can prepare a plnkr or fiddle source and share it over here. Will be great help.
Thanks