Home Forums Basel support forum Uncaught TypeError: Cannot read property 'src' of undefined

Uncaught TypeError: Cannot read property 'src' of undefined

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #127181

    tor9togethers
    Participant

    Hi, I am having a problem when select a variable option and product reload a variable image it caught error :
    Uncaught TypeError: Cannot read property ‘src’ of undefined as a screenshot below.

    Could you please investigate this problem for me that what’s make this error happen. Thank you so much in advance.

    Live site : https://alfabase.co.th/product/test-patch-cord-singlemode-sm-simplex/

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

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme so we can check it?

    Thank you in advance

    #127188

    tor9togethers
    Participant

    Yes, sure. I disable all unrelated with your theme already. Please go ahead check it out.

    #127204

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
        return 150;
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
    #127211

    tor9togethers
    Participant

    OK, now its working. Thanks

    #127212

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

    Best Regards

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

The topic ‘Uncaught TypeError: Cannot read property 'src' of undefined’ is closed to new replies.