Display stock quantity
-
Hi,
I’ve been looking through the WP eCommerce documentation (specifically the section on template tags) as I am hoping to find a way to display the stock quantity for a product, including each variation.
The simple “Product in stock”/”Product not in stock” isn’t going to cut the mustard, so far as my client is concerned. Users need to see how many items are available before adding one or more to the cart, e.g. “2 in stock”.
I’m referring specifically to this portion of code:
<?php if(wpsc_show_stock_availability()): ?> <?php if(wpsc_product_has_stock()) : ?> <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="in_stock"><p><?php _e('Product in stock', 'wpsc'); ?></p></div> <?php else: ?> <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="out_of_stock"><p><?php _e('Product not in stock', 'wpsc'); ?></p></div> <?php endif; ?> <?php endif; ?>
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display stock quantity’ is closed to new replies.