I am having trouble displaying changes in a custom template, every time I call the wpsc wpsc_have_variation_groups() function in my loop, I get the following php error
commerce / wpsc-includes / product-template.php on line 1419 [22-Nov-2012 23:27:39] PHP Fatal error: call the have_variation_groups() member have_variation_groups() on a non-object in / home / tofapost / public _html / sandbox / wp / wp-content / plugins / wp-e-commerce / wpsc-includes / product-template.php on line 1419.
wpsc_have_variation_groups() is called inside a WP_Query loop as follows:
$args = array('post_type' => 'wpsc-product', 'posts_per_page' => -1); $loop = new WP_Query($args); while ($loop->have_posts()) : $loop->the_post(); ... <?php if (wpsc_have_variation_groups()) { ?> <?php } ?> ... endwhile;
It is strange that other wpsc functions such as wpsc_the_product_id () and wpsc_product_has_stock () work, and the functions related to the changes do not ...
Any help appreciated
thanks
source share