lundi 30 janvier 2023

Laravel - How to get all product ids and quantity in a current cart?

How to get all product ids and quantity in a current cart? I learned that i can get the total sum with , but can someone help me how to get the product id's and quantity.

I need to fill this with correct data:

contents: [
      {
        id: ''',
        quantity: X
      },
      {
        id: ''',
        quantity: X
      }],

Thank you. Keep in mind that i'm not a programmer, but i have to find a way to do it :) Laravel 5.2.

I tried everything that i saw in google.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/zOSLMhr
via IFTTT

Aucun commentaire:

Enregistrer un commentaire