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

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #244046

    yvonnesamson
    Participant

    Hello,

    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, H34

    Can you please help to fix this issue?

    Attachments:
    You must be logged in to view attached files.
    #244187

    Hello,

    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.

    #246112

    yvonnesamson
    Participant

    Hello

    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!

    #246376

    Hello,

    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 Studios

    #246796

    yvonnesamson
    Participant

    Hello,

    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/

    #246854

    Artem Temos
    Keymaster

    Hello,

    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

    #246938

    yvonnesamson
    Participant

    Hello,

    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!

    #246939

    Artem Temos
    Keymaster

    Try 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;
    }
    #247267

    yvonnesamson
    Participant

    Hello,

    We have added this function but its not working yet. Please check.

    #247329

    Artem Temos
    Keymaster

    Where exactly have you placed that function? Please, send us a screenshot.

    #247571

    yvonnesamson
    Participant

    We have added this function in child theme’s functions.php. Please check screenshot.

    Attachments:
    You must be logged in to view attached files.
    #247590

    Artem Temos
    Keymaster

    Please, remove the previously added function https://gyazo.com/814f8a508aa0c12af4cd97006ab690a9
    Also, make sure that the child theme is activated in Appearance -> Themes.

    #247893

    yvonnesamson
    Participant

    We made the Child theme active and with the function its working fine now.

    Thank you so much for your help!

    #247923

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 14 posts - 1 through 14 (of 14 total)