• Hi,

    I am using a template that associates pages to products to show more details about the product. However the template used by this pages does not show some details such as stock units.

    I can get the product id via:
    $product=intval(get_post_meta($post->ID, '_course_product', true));

    but something like:
    echo $product->stock;

    does not show anything…

    Any help? ??

    Thanks in advance.

    https://www.ads-software.com/extend/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Showing data from product in page’ is closed to new replies.