I my having troubles trying to print woo commerce price in my template files for my new them.
What I am trying to do is to print single product price in a front slider carousel located in header.php.
<?php global $product; ?>
<?php if (have_posts()) : ?>
<?php endif ?>Fatal error
: Call to a member function get_price_html() on a non-object inD:\xampp\htdocs\cooker\wp-content\themes\cooker\header.php
I noticed that I cannot get the product class if I use this piece of code before wp_footer().