Page 1 of 1

4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Thu Jun 16, 2022 4:39 pm
by Chaos Lucifer
1. OpenCart Version 4.0.0.0
2. Default Theme

Did a clean install of OpenCart v4 and from there on notice issue with "Product Compare" and "Wishlist" count is off. It only updates when I refresh the page. This is not an issue for the cart as the shopping cart updates instantly when I add items to the cart. Any reason why this is the case. I notice on "http://www.bigmax.ch/shop/" from the admin it work perfectly. I am tempted to grab that version and use it instead but the v4 has some nice functionally I like.

I did notice the button code is different
v4

Code: Select all

<button type="submit" formaction="http://localhost/00000_MyProjects/XXX/index.php?route=product/compare|add&amp;language=en-gb" data-bs-toggle="tooltip" title="" data-bs-original-title="Compare this Product" aria-label="Compare this Product"><i class="fas fa-exchange-alt"></i></button>
v1.5.6.5 (working one from "http://www.bigmax.ch/shop/") with this portion added [onclick="compare.add('1521');"]

Code: Select all

<button type="button" data-toggle="tooltip" title="" onclick="compare.add('1521');" data-original-title="Add to Compare"><i class="fa fa-exchange"></i></button>
wishlist also have something similar [onclick="wishlist.add('1521');"]

Code: Select all

<button type="button" data-toggle="tooltip" title="" onclick="wishlist.add('1521');" data-original-title="Add to Wish List"><i class="fa fa-heart"></i></button>
Do you know if I can grab all the extension from the OC v.1.5.6.5 and installed it into the v4.0.0.0? Or there is going to be version combability issues?

Thanks for the help!

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Thu Jun 16, 2022 11:36 pm
by straightlight
Chaos Lucifer wrote:
Thu Jun 16, 2022 4:39 pm
1. OpenCart Version 4.0.0.0
2. Default Theme

Did a clean install of OpenCart v4 and from there on notice issue with "Product Compare" and "Wishlist" count is off. It only updates when I refresh the page. This is not an issue for the cart as the shopping cart updates instantly when I add items to the cart. Any reason why this is the case. I notice on "http://www.bigmax.ch/shop/" from the admin it work perfectly. I am tempted to grab that version and use it instead but the v4 has some nice functionally I like.

I did notice the button code is different
v4

Code: Select all

<button type="submit" formaction="http://localhost/00000_MyProjects/XXX/index.php?route=product/compare|add&amp;language=en-gb" data-bs-toggle="tooltip" title="" data-bs-original-title="Compare this Product" aria-label="Compare this Product"><i class="fas fa-exchange-alt"></i></button>
v1.5.6.5 (working one from "http://www.bigmax.ch/shop/") with this portion added [onclick="compare.add('1521');"]

Code: Select all

<button type="button" data-toggle="tooltip" title="" onclick="compare.add('1521');" data-original-title="Add to Compare"><i class="fa fa-exchange"></i></button>
wishlist also have something similar [onclick="wishlist.add('1521');"]

Code: Select all

<button type="button" data-toggle="tooltip" title="" onclick="wishlist.add('1521');" data-original-title="Add to Wish List"><i class="fa fa-heart"></i></button>
Do you know if I can grab all the extension from the OC v.1.5.6.5 and installed it into the v4.0.0.0? Or there is going to be version combability issues?

Thanks for the help!
If the extension version is compatible from the Marketplace page on the website, or from a third party website where you may have downloaded the extension originally, does provide the OC compatible version for your past downloaded extensions, I would first suggest to try the extension on a test store environment prior to use it for production.

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Fri Jun 17, 2022 2:47 pm
by Chaos Lucifer
Thank you very much for the reply.

I download the OpenCart v4.0.0.0 from "https://www.opencart.com/index.php?route=cms/download" and the compare count does not update when i click on the button to add items to the compare. Only when i refresh the page does the count increase. I haven't installed any extension so that is definitely not the issue. Please let me know if there is something that should be done to fix it or is this a bug that the compare count doesn't update properly?

Thanks!

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Sat Jun 18, 2022 5:26 pm
by Chaos Lucifer
Can anyone help? Localhost running the server and add to cart updates fine but not wishlist amd comparison until I refresh the page. It should update when I click on it.

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Sat Jun 18, 2022 8:07 pm
by IP_CAM
Well, I am not familiar with the OC Release you use, but I assume, that the latest OC Github v.4 Edition already contains a range of fixes, as it most likely is the case.
https://github.com/opencart/opencart/tree/master/upload
However, OC v.4. is still in it's early development stage, as one can find out easy, by searching the many OC Forum postings, and it should better not be used at this time already. One possible Solution could be found on the Github Page listed below, someone seems to be very busy, to keep it updated to latest knowledge. You may download it and make some tests, to find out, if it works as planned.
Good Luck!
Ernie
https://github.com/IP-CAM/Opencart-v.4. ... ion=IP-CAM

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Sun Jun 19, 2022 1:15 am
by Chaos Lucifer
Thanks IP_CAM the 2 link you provided definitely have the same issue with wishlist and product comparison count not updating until you refresh the pages. Definitely an annoying bug as it gives the impression that there is something wrong on the site if you are a customer or vendor. Your links at the bottom were really helpful too that how I found 3 version of OC v4 to install lol... The one you posted for OpenCart v.1.5.6.5 V-PRO seem to be fully functional on your demo site. The few demo I have seen for OC v4 never works and even the latest one I download on Github doesn't work...

I think I am going to download the OpenCart v.1.5.6.5 V-PRO you have and see if I am able to set it up prefectly or not.

Actually do you know which version basically have almost no fixed required? I would think the OC v4 would have all the issue from v1 thru v4 fixes rolled up included so was expecting to not run into issue on v4.

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Sun Jun 19, 2022 1:41 am
by IP_CAM
Well, famous Condor2's latest OC v.3.x would most likely satisfy your needs, he's an active Contributor of OC v.1.5.x to v.3.x knowledge and can be of assistance, if you need a Professional. He's also active at the Opencart Forum as xxvirusxx. OC v.4.x is not yet ready to be used, as you found out already ... ;)
OC v.1.5.6.5 V-PRO has partly been tested with PHP v.8.0.x, but it won't be usable (yet) with PHP v.8.1.x, just to have it mentioned too.
https://github.com/IP-CAM/Opencart-v.3. ... by-Condor2

Re: 4.0.0.0 Clean install of OpenCart v4 and there notice issue with "Product Compare" as count is off

Posted: Sun Jun 19, 2022 3:24 am
by Chaos Lucifer
I notice that the one OC v1.5.6.5_rc_V-Pro is giving me issue to so definitely it is something with the setup on my side as I notice your site didn't have this issue at all. I follow the instruction for XAMPP install to get local server working and then run the install for this and got all these issues... Your v1.5.6.5 on your work flawlessly: http://www.bigmax.ch/shop/index.php?rou ... eme=2theme
When I run the exact copy from your github file it looks like below: https://github.com/IP-CAM/Opencart-v.1. ... P-v.7.4.30

So I assume there is definitely some issue on my setup side... But your suggest for the latest for OC v4 definitely fixed some minor issues but not the wishlist and product comparison. I also notice OC v4 the wishlist and product comparison count goes up when refreshing the page for CHROME but Microsoft EDGE never update the count... something is really wrong there as it is browser dependent.