Home › Forums › WoodMart support forum › Product detail page OUT OF Stock Issue on some products
Product detail page OUT OF Stock Issue on some products
- This topic has 13 replies, 4 voices, and was last updated 4 years ago by Elise Noromit.
-
AuthorPosts
-
November 24, 2020 at 6:22 am #244046
yvonnesamsonParticipantHello,
Our site is facing some different kinds of issues in product swatches. Like in some product detail pages, Out of stock swatches are not disabled on first load. When we click on any option then the disabled option gets visible.
See here – https://shopptouch.com/product/seamless-t-shirt-bra-9000/In some other product detail pages, Out of stock swatches never get disabled and on click Add to cart button, it pops up Alert.
See here – https://shopptouch.com/product/lace-full-cup-bra-2207/
Out of Stock options are: BLK- D38, E34, E40, F34, F38, G34, G36, G40, H34 CANT- D34, D36, D38, D40, D42, D44, E34, F34, F38, G34, G38, G36, H34Can you please help to fix this issue?
Attachments:
You must be logged in to view attached files.November 24, 2020 at 10:49 am #244187
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the third-party plugins activate the parent theme then clear cache and check back.
If the problem continues then leave all the third-party plugins and provide the admin panel login details of the website with the permission to debug then we will troubleshoot with the theme plugins.
Regards.
Xtemos Studios.November 30, 2020 at 1:21 pm #246112
yvonnesamsonParticipantHello
We have tried your recommendations but still getting the same issue. We have provided you the admin credentials and FTP details. Please check and help us to fix it.
Thanks!
December 1, 2020 at 6:36 am #246376
Aizaz Imtiaz AwanKeymasterHello,
I have logged into your website and all the third party plugins are still activated.
Please deactivate all the third party plugins and then tell me with the permissions to debug then we will troubleshoot with the theme plugins.
Regards.
Xtemos StudiosDecember 2, 2020 at 6:43 am #246796
yvonnesamsonParticipantHello,
We can’t deactivate plugins on live site so we have replicate the production site to a test server where you can check the issue. On test server we have deactivated all the plugins except the theme recommendations. Parent theme is active for now.
https://staging2.shopptouch.com/product/lace-full-cup-bra-2207/
https://staging2.shopptouch.com/product/seamless-t-shirt-bra-9000/December 2, 2020 at 8:45 am #246854
Artem TemosKeymasterHello,
Try to replace files in the folder
woodmart/js/
with the following https://drive.google.com/file/d/1eKNFs1yBHmSOAkcGXmTMxtT47Hgw81WM/view
Clear your browser cache and test how it works.Kind Regards
December 2, 2020 at 12:51 pm #246938
yvonnesamsonParticipantHello,
Thank you for your reply and fixes!
https://staging2.shopptouch.com/product/seamless-t-shirt-bra-9000/ its working fine now.
But the other one is still having issue.
Out of stock options are enabled here and not disabled on click.
Can you please check this again.
https://staging2.shopptouch.com/product/lace-full-cup-bra-2207/Thanks!
December 2, 2020 at 12:53 pm #246939
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter( 'woocommerce_ajax_variation_threshold', 'wd_ninja_ajax_threshold' ); function wd_ninja_ajax_threshold() { return 100; }
December 3, 2020 at 10:48 am #247267
yvonnesamsonParticipantHello,
We have added this function but its not working yet. Please check.
December 3, 2020 at 12:16 pm #247329
Artem TemosKeymasterWhere exactly have you placed that function? Please, send us a screenshot.
December 4, 2020 at 4:44 am #247571
yvonnesamsonParticipantWe have added this function in child theme’s functions.php. Please check screenshot.
Attachments:
You must be logged in to view attached files.December 4, 2020 at 7:07 am #247590
Artem TemosKeymasterPlease, remove the previously added function https://gyazo.com/814f8a508aa0c12af4cd97006ab690a9
Also, make sure that the child theme is activated in Appearance -> Themes.December 4, 2020 at 4:35 pm #247893
yvonnesamsonParticipantWe made the Child theme active and with the function its working fine now.
Thank you so much for your help!
December 4, 2020 at 6:55 pm #247923
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: disabled, out of stock
- You must be logged in to create new topics. Login / Register