示例#1
0
" name="submit"/>
				</form>
			</td>
			<td><span class="pricedisplay"><?php 
        echo wpsc_cart_item_price();
        ?>
</span></td>
			<td>
			
				<form action="<?php 
        echo get_option('shopping_cart_url');
        ?>
" method="post" class="adjustform">
					<input type="hidden" name="quantity" value="0"/>
					<input type="hidden" name="key" value="<?php 
        echo wpsc_the_cart_item_key();
        ?>
"/>
					<input type="hidden" name="wpsc_update_quantity" value="true"/>
					<button class='remove_button' type="submit"><span><?php 
        echo TXT_WPSC_REMOVE;
        ?>
</span></button>
				</form>
			</td>
		</tr>
	<?php 
    }
    ?>
	<?php 
    //this HTML displays coupons if there are any active coupons to use
											<option value="<?php echo wpsc_the_variation_id(); ?>"><?php echo wpsc_the_variation_name(); ?></option>
										<?php endwhile; ?>
										</select>
									</p>
								<?php endwhile; ?>
							</div>
							<?php /** the variation group HTML and loop ends here */?>




						
							<?php if(wpsc_has_multi_adding()): ?>
								<label class='wpsc_quantity_update' for='wpsc_quantity_update[<?php echo wpsc_the_product_id(); ?>]'><?php echo __('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"/>
							<?php endif ;?>
						
							<input type="hidden" value="add_to_cart" name="wpsc_ajax_action"/>
							<input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="product_id"/>

							
							<?php if((get_option('hide_addtocart_button') == 0) &&  (get_option('addtocart_or_buynow') !='1')) : ?>
								<?php if(wpsc_product_has_stock()) : ?>
									<div class='wpsc_buy_button_container'>


											<?php if(wpsc_product_external_link(wpsc_the_product_id()) != '') : ?>
												<?php 	$action =  wpsc_product_external_link(wpsc_the_product_id()); ?>
												<input class="wpsc_buy_button" type='button' value='<?php echo __('Buy Now', 'wpsc'); ?>' onclick='gotoexternallink("<?php echo $action; ?>")'>