<?php
/**
 * Checkout coupon form
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $woocommerce;

if ( ! $woocommerce->cart->coupons_enabled() )
	return;

$info_message = apply_filters('woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ));
?>

<div class="woocommerce-info"><?php echo $info_message; ?> <a href="#" class="showcoupon"><?php _e( 'Click here to enter your code', 'woocommerce' ); ?></a></div>

<form class="checkout_coupon" method="post" style="display:none">

	<ul class="form-list">
		<li>
			<div class="field">
				<label for="coupon_code">
					<?php _e( 'Coupon code', 'woocommerce' ); ?>
				</label>
				<div class="input-box">
					<input type="text" name="coupon_code" class="input-text" placeholder="<?php _e( 'Coupon code', 'woocommerce' ); ?>" id="coupon_code" value="" />
				</div>
			</div>
		</li>
	</ul>
	<div class="clearfix"></div>
	<div class="buttons-set">
		<button type="submit" class="button" name="apply_coupon"><?php _e( 'Apply Coupon', 'woocommerce' ); ?></button>
	</div>
</form>