wpsc_has_multi_adding

Located in: Located in: product-template.php
Version Introduced: 3.8
Return: True / False

Description: This condition is used with the template tag is used to check if the user has turned on the product quantity setting. It is normally used on the product pages to display the quanity input boxes.

[php]
<?php if(wpsc_has_multi_adding()): ?>
<fieldset><legend><?php _e(‘Quantity’, ‘wpsc’); ?></legend>
<div class="wpsc_quantity_update">
<?php /*<label for="wpsc_quantity_update_<?php echo wpsc_the_product_id(); ?>"><?php _e(‘Quantity’, ‘wpsc’); ?>:</label>*/ ?>
<input type="text" id="wpsc_quantity_update_<?php echo wpsc_the_product_id(); ?>" name="wpsc_quantity_update" size="2" value="1" />
<input type="hidden" name="key" value="<?php echo wpsc_the_cart_item_key(); ?>"/>
<input type="hidden" name="wpsc_update_quantity" value="true" />
</div><!–close wpsc_quantity_update–>
</fieldset>
<?php endif ;?>
[/php]