Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(let i =0; i < this.bag.length; i++) {
- if(this.bag[i].options) {
- for(let j= 0; j < this.bag[i].options.length; j++){
- carrito+= {
- id: this.bag[i].id,
- optionId: this.bag[i].options[j].id,
- cantidad: this.bag[i].options[j].quantatity
- }
- }
- } else {
- carrito+= {
- id: this.bag[i].id,
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement