From 86a4511eb54c00df068bb04d039daacf918f5827 Mon Sep 17 00:00:00 2001 From: xf039 Date: Mon, 3 Aug 2020 01:06:57 +0200 Subject: [PATCH] Update README.md Changed qty to quantity --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c831f2f..e17c2eb 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ foreach($items as $row) { echo $row->id; // row ID echo $row->name; - echo $row->qty; + echo $row->quantity; echo $row->price; echo $item->associatedModel->id; // whatever properties your model have @@ -800,7 +800,7 @@ Cart::add(array( // Now, when iterating over the content of the cart, you can access the model. foreach(Cart::getContent() as $row) { - echo 'You have ' . $row->qty . ' items of ' . $row->model->name . ' with description: "' . $row->model->description . '" in your cart.'; + echo 'You have ' . $row->quantity . ' items of ' . $row->model->name . ' with description: "' . $row->model->description . '" in your cart.'; } ```