Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove item in cart? #1

Open
kenjisoul opened this issue Oct 27, 2016 · 2 comments
Open

How to remove item in cart? #1

kenjisoul opened this issue Oct 27, 2016 · 2 comments

Comments

@kenjisoul
Copy link

I want to make remove item button on each row, when click button that row item will remove.
How to write code to remove item?

$cart = new Cart();

in this $cart have many item how to access each item? such as edit qty by click add button to increase qty.

Thank you!

@Serrenho
Copy link

in Cart.php has the:
public function remove($rowid)
You can use this function with a link into the buttom to remove the item. Don't forget to pass the ID.

@Serrenho
Copy link

To update just use the
public function update($items = array())
The code is very well documented.
Reading the php file you will be able to figure out how to use it;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants