WordPress.org

Ready to get started?Download WordPress

Forums

Wp -Ecommerce if this category do this (1 post)

  1. jsuske
    Member
    Posted 1 year ago #

    Hey,

    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(); ?>

    Do something

    <?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?

Topic Closed

This topic has been closed to new replies.

About this Topic