[Problem] Stocks are not updated in the archive
April 15, 2021 at 10:01 am #283148
In the product archive, the stocks of the variations are displayed correctly for products. For example, the sizes S, M, L, XL are generally available. However, only S and X are in stock. The last product in size M was bought a few hours ago. However, the size is still displayed in the archive. It is displayed correctly on the product page.
Has anyone had a similar experience recently? We have already taken a close look at the shop and just can’t find the cause. Plugins + WordPress is on the latest version.April 15, 2021 at 6:05 pm #283329
Please submit the same question on the Woocommerce forum as it relates to Woocommerce, most likely such a question has been many times arrived and you will find the answer there quicker.
Best RegardsJune 24, 2021 at 9:50 am #302139
Unfortunately, we are still struggling with the problem.
As a test, we have used a different template. The problem was not existent there. So without any doubt we can say that the problem is the template. We ask for your support.
Thanks!June 24, 2021 at 7:51 pm #302268
Please, please, provide your site admin access to the private area.
Please confirm the permit for us to deactivate the plugins not related to the theme and switch to the parent theme for the while of checking what may take up to 15 minutes. Please make the full backup of your site.
Best RegardsFebruary 21, 2022 at 12:26 pm #354808
I would like to reopen this topic, because it is not solved.
Swatcher is not updating automatically
A customer buys a product for example (link attached) then the product is reduced in stock and the size is not available anymore. Now the swatcher(basel feature) should hide the size “M”, because it is out of stock. But this is not happening. Every time a product is out of stock we need to go to product page of the explicit item and press the button “update” to get the desired result. Same happens whenever a product was sent back. The stock increase from 0 to 1 the swatcher is not updating automatically. We need to go to the explicit product and press the “update” button to get the desired result.
Attachments:You must be logged in to view attached files.February 23, 2022 at 1:10 am #355221
Please make the full backup of your site and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.
Best RegardsFebruary 23, 2022 at 12:51 pm #355352
I did what you requested. You will find two links in the attachments to show you what I tried.
Hopefully it will help to find a solution.
Best RegardsFebruary 24, 2022 at 7:03 am #355682
As per your video you have the same problem on both: Storefront and WoodMart. If you have cache plugins, please deactivate them and check again.
If you have any questions please feel free to contact us.
Best RegardsFebruary 24, 2022 at 10:23 am #355740
I have the feeling that we are not talking about the same topic. Woocommerce is updating the products. That works fine, but the swatcher feature on your theme basel is not updating its view when ever woocommerce updates any product. We already deactivated all unnecessary plugins with the same result. There is no caching plugin installed.
i can provide you a staging site with an admin access.
Best RegardsFebruary 25, 2022 at 11:50 pm #356093
I am terribly sorry for the delay.
Please describe the actions step-by-steps on how we can reproduce the problem and give me the product URL.
Best RegardsMarch 22, 2022 at 7:13 pm #363154
I created an testing webspace for you. I hope you can find an error and show us a solution.March 24, 2022 at 1:56 am #363484
Please install and activate all the plugins in Appearance > Install plugins:
Contact Form 7
Mailchimp for WordPress
WPBakery Page Builder
XTEMOS Post Types plugin
Switch to the parent theme and update WordPress.
If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
Best RegardsMarch 24, 2022 at 12:03 pm #363677
to be honest, im a bit confused why we need to install additional plugins if the main function for the swatcher is included inside the parent theme function. I installed all requested plugins and we have the same situation.
CheersMarch 25, 2022 at 1:51 am #363864
This list of plugins is essential to ensure the theme’s functionality.
Please follow the instructions.
Best RegardsMarch 28, 2022 at 7:54 am #364496
the plugins are installed.
Best RegardsMarch 29, 2022 at 9:57 pm #365021
I check the variable product and I see our of stop variations are displayed correctly: https://gyazo.com/2154791fe8afb6684feb8d3353c90d82
If one variation is out of stock, it will be shown when it is selected, at the same time, the sales label does not appear. If all the variations of the variable product are out of stock, the product gets the label.
Best RegardsApril 4, 2022 at 10:59 am #366202
In this message you can find a video attached to show you what particular view we are talking about. Please, let me know if you cant open the video.
Best RegardsApril 7, 2022 at 2:07 am #366741
Sorry for the delay. Such may be caused by your cache plugin or cache configuration on the server.
Please deactivate all the cache plugins and disable the cache in the browser and check again.
Best RegardsApril 7, 2022 at 10:59 am #366826
isn’t it strange that on the test-server with a complete clean enviroment we still get the same issue?
And on that test-server is no caching activated?
We need to come to an end.
Could you provide me to an other colleague? Maybe a new pair of eyes can find the issue.
What do you think?
CheersApril 11, 2022 at 4:21 pm #367674
Sorry for the delay.
Please add this code to the functions.php of the child theme:
add_filter( 'basel_swatches_cache', '__return_false' );
If you have any questions please feel free to contact us.
Best RegardsApril 20, 2022 at 2:57 pm #369658
thank you for the code snippet. I will try it and let you know if it helped or not.
Best RegardsApril 22, 2022 at 4:11 am #370043
Sure, We are here to help. If you have any questions please feel free to contact us.
- You must be logged in to create new topics. Login / Register