Viewing 6 replies - 1 through 6 (of 6 total)
  • The path given is not quite right. It should be:

    /woocommerce/templates/single-product/add-to-cart/variable.php

    I suggest you don’t delete variable.php, just rename it. WooCommerce should use the theme file instead.

    Thread Starter Roberto Pereira da Costa

    (@robertopc)

    Renamed. But still don’t work.

    I’ve re-read the Common Issues page. Have you got a file at:
    wp-content/themes/woocommerce/single-product/add-to-cart/variable.php
    I now think that’s the one to rename and the one at
    wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php
    is the one to keep.

    Thread Starter Roberto Pereira da Costa

    (@robertopc)

    In my instalation, don’t have the directory: wp-content/themes/woocommerce.
    And renaming the file wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php don’t worked.
    You know another way to do this?
    Thanks for help.

    Sorry, too many directories!

    Have you got a file at:
    wp-content/themes/ <your theme name> /woocommerce/single-product/add-to-cart/variable.php

    If so, that’s the one to rename.

    Thread Starter Roberto Pereira da Costa

    (@robertopc)

    The update 2.1.9 fixed the problem. Thanks very much for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncaught TypeError: Cannot read property 'product_id' of undefined add-to-cart-v’ is closed to new replies.