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

Update error #17

Open
tecnoweb opened this issue Jul 17, 2021 · 1 comment
Open

Update error #17

tecnoweb opened this issue Jul 17, 2021 · 1 comment

Comments

@tecnoweb
Copy link

Hello,
i have try to add update of product not quantity but attribute
I use Ajax

$poscart->update(5, 2, [ 'price' => 8.00,'name'=>'New name']);

but not work ... where I make error ?

@dineshuprety
Copy link

Change your attributes data to a string:
$poscart->update(5, 2, [ 'price' =>strval(8.00),'name'=>'New name']);

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