givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
239 stars 49 forks source link

Delete from Cart add one product on #106

Open Twilight-Computer opened 3 months ago

Twilight-Computer commented 3 months ago

If you have an item and select "X" to remove from cart, you get a message saying the item is removed, but the quantity increases by one

image

Twilight-Computer commented 3 months ago

Same with main cart window: image

givanz commented 3 months ago

Thanks for the bug report, it's fixed in the latest update https://github.com/givanz/Vvveb/commit/f4bfaf42f647bdf14592c172e8d56ba455448dee

Twilight-Computer commented 3 months ago

Working correctly against first image (Click X from cart icon) but clicking delete icon in second image (actual cart view) does not delete the item.

givanz commented 3 months ago

After a few tries I managed to have delete not do anything by switching back and forth from https://www.twilightcomputer.com.au/ to https://twilightcomputer.com.au/ and adding and deleting products from cart.

I think it's related to something getting stuck with multiple sessions id cookie.

Please edit /env.php and enable shared session to have the same session on all subdomains

defined('V_SHARED_SESSION') || define('V_SHARED_SESSION', true);

You will need to clear browser cookies for domain to reset session.