• In woocommerce-sample.php line 395
    <input type=”hidden” name=”add-to-cart” id=”sample_add_to_cart” value=”<?php echo $product->ID; ?>”>

    should be the below, to be fully WC 3.0 compatible ??

    <input type=”hidden” name=”add-to-cart” id=”sample_add_to_cart” value=”<?php echo $product->get_id(); ?>”>

  • The topic ‘WooCommerce_Sample->product_sample_button, WC_Abstract_Legacy_Product->__get, wc’ is closed to new replies.