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 class-lp-cart.php #576

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

ptsl-admin
Copy link

protected __cart_content has no key "items". Hence the remove_item method in LP_Cart never actually worked.

Now the remove_item() method of _cart_content takes $cart_id as parameter and removes item if cart_id exists in _cart_content

protected __cart_content has no key "items". Hence the remove_item method in LP_Cart never actually worked. 

Now the remove_item() method of _cart_content takes $cart_id as parameter and removes item if cart_id exists in _cart_content
In cases if customer id is not set then run $this->init() once. 
It becomes necessary when this function is invoked while doing ajax. While doing ajax $this->_customer_id is always '' which is sorted using ->init()
@ptsl-admin
Copy link
Author

In cases if customer id is not set then run $this->init() once.
It becomes necessary when this function is invoked while doing ajax. While doing ajax $this->_customer_id is always '' which is sorted using ->init()

the $src_only argument was not being used to get the profile picture URL only
the $src_only argument was not being used to get the profile picture URL only
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

Successfully merging this pull request may close these issues.

1 participant