Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.61 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Wordpress - WP E-Commerce Plugin - Show price of variable item? (says €0)
  2. <?php
  3.         $args = array(
  4.         'post_status' => 'publish',
  5.         'post_parent' => 0,
  6.         'post_type'   => 'wpsc-product'
  7.         );
  8.         $products = new WP_Query($args);
  9.     ?>
  10.        
  11. echo wpsc_currency_display(wpsc_calculate_price(wpsc_the_product_id()));
  12.        
  13. echo wpsc_the_product_price();
  14.        
  15. <p class="pricedisplay <?php echo wpsc_the_product_id(); ?>"><?php _e('Price', 'wpsc'); ?>: <span id='product_price_<?php echo wpsc_the_product_id(); ?>' class="currentprice pricedisplay"><?php echo wpsc_the_product_price(); ?></span></p>