Wp -Ecommerce if this category do this
I tried to run this code to do something if its this category in wpsc-single_product.php…
<?php $wpsc_query = new WPSC_query(“category_id=4”);
while (wpsc_have_products()) : wpsc_the_product(); ?>
<?php endwhile; ?>
But I get an error….
Fatal error: Call to undefined method WP_Query::WP_Query() in /home/content/19/9468119/html/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-deprecated.php on line 476
Can someone tell what I am doing wrong and why this is happening?
- The topic ‘Wp -Ecommerce if this category do this’ is closed to new replies.