Home › Forums › Basel support forum › Showing wrong result on shop page.
Showing wrong result on shop page.
- This topic has 41 replies, 3 voices, and was last updated 4 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 9, 2020 at 10:45 am #224841
[email protected]ParticipantHi,
We’re having two problems.
1. It shows 545 products within the first category. It should say 69, as you can see to the right. See image.
2. On category page Leksaker > Gåcyklar it shows Visar 1–20 av 28 resultat, but using the infinite scroll feature doesn’t load the rest 8 products!
Thanks!
Attachments:
You must be logged in to view attached files.September 9, 2020 at 10:46 am #224845
[email protected]ParticipantAlso… it doesn’t update the counter in the top when infinit have loaded new items.
It still says showing 1-20…September 9, 2020 at 11:27 am #224862
[email protected]ParticipantHi again,
It was associated with the a permalink plugin. So it loads products again.
But it doesn’t update the counter in the top when new items have loaded…
Still also, the 545 count is wrong.
September 9, 2020 at 12:55 pm #224888
Elise NoromitMemberHello,
Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue, If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
if the problem remains, even after the plugins deactivated leave the plugins to deactivated for us to check and provide your site admin access to the private area.
If you cannot keep the site without the plugins confirm the permit for us to deactivate for the while of checking what may take up to 15 minutes.
Best Regards
September 11, 2020 at 7:17 pm #225591
[email protected]ParticipantHi,
Ok I need to explain a bit more. We use WP All Import
to do the product imports.So I disabled ALL plugins except:
WP All Import Pro (Needed for import)
WP All Import – WooCommerce Add-On Pro (Needed for import)
WooCommerce
XTEMOS Post Types pluginWe have used WP All Import for manual imports, if we do this,
the count is correct with 67. But if we run the import with
a cron job it shows 542. I noticed if I do a Recount terms under
WooCommerce > Status > Tools. It sets it back to 67..Ive been in contact with WP All Import, so we are working on it.
But do you guys have ANY idea why this might be happening?
Thanks!
September 11, 2020 at 8:40 pm #225603
Elise NoromitMemberHello,
You see this functionality does not relate to our theme. And we have not tested WP All Import plugin with our theme thus, for now, no idea why. Such an investigation is a time-consuming process and that is not covered by our support policy, that is why let’s wait for the solution which would be suggested by the plugin team.
Best Regards
September 12, 2020 at 9:32 am #225660
[email protected]ParticipantHi,
Thanks. Yes I do understand that. I will continue talk to them.
But, the part with 1-20 not being updated when infinite scroll is used.
Have a check on the link. Scroll down, infinite is loading, now
scroll up and it still says 1-20…September 12, 2020 at 9:35 am #225661
[email protected]ParticipantYour demo site has the same problem…
September 12, 2020 at 10:27 am #225668
Elise NoromitMemberHello,
Even though you set the infinite scrolling, the page has the configured number of products shown on the page, and it is shown. This value is not updated.
Best Regards
September 12, 2020 at 3:53 pm #225726
[email protected]ParticipantHmm that is not that good…
It should work like that.Anyway, I talked to WP All Import about the problem with wrong counts for products.
This is what they said:
“I copied your site to a local installation and was able to replicate the count issue by running the import via cron. However, if I disable your theme and then run the import via cron, the counts are correct after the import.
You’ll have to ask your theme developer for help with this.”
So there is obviously something wrong in the theme when using Cron.
WP All Import is a very popular import plugin.September 12, 2020 at 8:49 pm #225752
[email protected]ParticipantHi again,
Ive tried importing with Wp All Import using the twenty eleven wordpress
theme and the product count for the first category in the list turns out correct.
So. There is something wrong in your theme.Its only the first category that is affected by this, it adds
a count for all products currently in woocommerce to that count.…I only want to find a solution so how can we reset the count for products
so it show the correct count?If I go into categories in woocommerce admin, it says 67 products for
the first category. So nothing is wrong there.What controls the widget product category?
September 13, 2020 at 8:25 am #225795
Artem TemosKeymasterCould you please send us a screenshot of the categories widget with a default WordPress theme where it says 67 instead of 541?
September 13, 2020 at 1:29 pm #225837
[email protected]ParticipantHi again,
I got a response from WP All Import.
“Me >> I still don’t understand why it works when I do a manual import with the theme we are using. How can the imports differ?
WP All >> A manual import performs operations as the logged in user that’s running the import. A cron job import is an anonymous user. So, the theme must be doing something differently based on whether the user that’s updating products is logged in or not.”
Can this help in anyway?
September 13, 2020 at 2:26 pm #225846
[email protected]ParticipantHi, ok have a look at the image.
Attachments:
You must be logged in to view attached files.September 14, 2020 at 6:19 am #225928
Artem TemosKeymasterPlease, switch to the default theme temporarily and send us your admin and FTP access so we can check what is wrong.
September 14, 2020 at 6:58 am #225944
[email protected]ParticipantHi,
Thanks you so much!
September 14, 2020 at 7:03 am #225947
Artem TemosKeymasterIt seems to work correctly now https://gyazo.com/ffb042734b8084d9c71f2390b59b2080
September 14, 2020 at 8:12 am #225967
[email protected]ParticipantNo where did you login. You are on the wrong domain.
Im using a temp dev environment.Its not correct.
See below.
September 14, 2020 at 8:22 am #225970
Artem TemosKeymasterOn the default theme it also shows 541 products instead of 67 https://prnt.sc/ugw8xx
September 14, 2020 at 8:24 am #225972
[email protected]ParticipantYes! Because it is wrong.
It combines all product into that category when we do a cron import.
Something is probably messed up with the theme when a user is not logged in…when adding products and categories.
September 14, 2020 at 8:24 am #225973
Artem TemosKeymasterBut why it is a problem with our theme if it doesn’t work well with other themes as well?
September 14, 2020 at 8:27 am #225974
[email protected]ParticipantWe did an import without Basel theme activated. Just running WP default theme.
And it showed up 67 products. Which is correct. So something is wrong when we import having your theme activated, it then shows 541!September 14, 2020 at 8:27 am #225975
Artem TemosKeymasterOK, please, provide us a step by step instruction how to run this import with the default theme and then do this with Basel so we can see the difference.
September 14, 2020 at 8:32 am #225978
[email protected]ParticipantOk. The import process runs correctly when we do a manual import.
It is through Cron it doesn’t work. So. Probably the user not being logged in is causing this. It just a guess…For you to put all this up and run a cron job would be some effort…but if you would like to sure. Sorry, I cannot give you access to our cpanel..
Just login, activate your theme. Then run it with WP All Import, on the lower left
in main menu admin. Then run the one called _produkter only the other one is for variants.
It will come out as 67… but if I run a cron on these. It shows 541.September 14, 2020 at 10:34 am #225981
Artem TemosKeymasterSorry, but we can’t fix the problem if we don’t have a mechanism to reproduce it. First, we have to run it a few times to see the problem. Then, we will need your files access and be able to run it a few more times to troubleshoot it.
September 14, 2020 at 10:53 am #226022
[email protected]ParticipantOk I see.
Wouldn’t it just be easier to clear the product data and reproduce the count somehow?
I mean, within WooCoomerce Categories it says 67, but on the page it says 541,
how is that possible, where is that data stored or created?See below.
September 14, 2020 at 11:19 am #226030
Artem TemosKeymasterWe tried to run the first cron job, waited 10 minutes but don’t see any changes. Could you please check from your side if it was run correctly?
September 14, 2020 at 11:22 am #226031
[email protected]ParticipantIt still runs..
currently processing with cron
Records Processed 340
last activity 57 sekunder agoSeptember 14, 2020 at 11:24 am #226032
[email protected]ParticipantI told you before to run the import manually first. So you see 67.
Then do the cron, it will show 541.September 14, 2020 at 11:26 am #226034
[email protected]ParticipantIts finished.
But because you used one of the default WP themes, it show correctly 67.
Now, try run the cron with your theme active…
-
AuthorPosts
The topic ‘Showing wrong result on shop page.’ is closed to new replies.
- You must be logged in to create new topics. Login / Register