i have a fb collection-cart ( contains the products added to cart - each file in the cart carries a inv_reference )
as popular e com apps like amazon and flipkart allows customers to order all items in cart, i want to do the same .
now on a action trigger(button-'proceed to checkout' )
i want to create multiple document in another firebase collection called 'orders' . i want all the files in cart (along together with inv_ref field )to be recreated/copy/transfer in my orders collection . i want each product file to be created separately in orders collection .
summing up altogether - how do i create multiple documents/files in firebadse collection with the field data coming from a variable (cart collection query) .
please enlighten me with your precious knowledge or u can tell me an another way around this problem