I’m having product duplication issues while running two loops on a single page. Is there an equivalent to wp_reset_query for wp ecommerce?
You can see the site at http://standingarmed.com/products-page
You can see the loop here since it didn’t format properly on the page.
As you can see I set a variable to grab the first product only. The site only have 7 products so I didn’t figure it would be a big deal to let the loop run 7 times. Of course I’d rather query for just the first product but wp ecommerce doesn’t support queries like WordPress does, or at least that’s what I’ve found. It then runs into the slider loop.
You can use (according to docu over @wp-ecommerce)
global $wpsc_query;
to modify your query.Resetting the loop can be done with
wpsc_rewind_products();
right before the second call towhile (wpsc_have_products()) : wpsc_the_product();
For the final solution, pls read the comments below.