Page 1 of 1

[4.0.2.2] UPDATE / REMOVE bug on shopping cart page

Posted: Sun Jul 09, 2023 3:59 pm
by caffreys79
latest version 4.0.2.2 has an annoying bug. (it doesn't happen on 4.0.2.1) so im stickin with 4.0.2.1 for live store.
default theme, clean install version 4.0.2.2
add some items to your basket then go to SHOPPING CART PAGE where you can REMOVE or change quantity and update...
if you PRESS REMOVE OR UPDATE on any product (whether changing quantity or not) then the COMPLETE CART is ERASED and you have to ADD ALL AGAIN
i rechecked on 4.0.2.1 and it doesnt do this, maybe we could replace the file controlling this with the file from 4.0.2.1 ???
i tried some things but couldnt get it to work.
Note it only affects the actual PAGE index.php?route=checkout/cart&language=en-gb
It doesent affect the REMOVE button on the little popup box when you click on the mini cart button (top right black button)

Re: [4.0.2.2] UPDATE / REMOVE bug on shopping cart page

Posted: Sun Jul 09, 2023 10:51 pm
by Johnathan
I can confirm this bug. It's already reported on github, so hopefully Daniel will release a 4.0.2.3 with some fixes soon.

Re: [4.0.2.2] UPDATE / REMOVE bug on shopping cart page

Posted: Thu Jul 13, 2023 4:29 pm
by MaxD
In catalog/controller/startup/language.php line 7 change

Code: Select all

if (isset($this->request->get['language'])) {
to

Code: Select all

if (!empty($this->request->get['language'])) {

Re: [4.0.2.2] UPDATE / REMOVE bug on shopping cart page

Posted: Thu Jul 13, 2023 4:43 pm
by JNeuhoff
caffreys79 wrote:
Sun Jul 09, 2023 3:59 pm
latest version 4.0.2.2 has an annoying bug. (it doesn't happen on 4.0.2.1) so im stickin with 4.0.2.1 for live store.
default theme, clean install version 4.0.2.2
add some items to your basket then go to SHOPPING CART PAGE where you can REMOVE or change quantity and update...
if you PRESS REMOVE OR UPDATE on any product (whether changing quantity or not) then the COMPLETE CART is ERASED and you have to ADD ALL AGAIN
i rechecked on 4.0.2.1 and it doesnt do this, maybe we could replace the file controlling this with the file from 4.0.2.1 ???
i tried some things but couldnt get it to work.
Note it only affects the actual PAGE index.php?route=checkout/cart&language=en-gb
It doesent affect the REMOVE button on the little popup box when you click on the mini cart button (top right black button)
This is already fixed in the master branch.

Re: [4.0.2.2] UPDATE / REMOVE bug on shopping cart page

Posted: Tue Jan 16, 2024 2:11 am
by siteadvice
MaxD wrote:
Thu Jul 13, 2023 4:29 pm
In catalog/controller/startup/language.php line 7 change

Code: Select all

if (isset($this->request->get['language'])) {
to

Code: Select all

if (!empty($this->request->get['language'])) {
Very helpful - thanks!