Guest User

form-coupon.php

a guest
Jan 18th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <?php
  2. /**
  3. * Checkout coupon form
  4. *
  5. * @author WooThemes
  6. * @package WooCommerce/Templates
  7. * @version 1.6.4
  8. */
  9.  
  10. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  11.  
  12. global $woocommerce;
  13.  
  14. if ( ! WC()->cart->coupons_enabled() )
  15. return;
  16.  
  17. $info_message = apply_filters('woocommerce_checkout_coupon_message', __( 'Heeft u een kortingsbon?', 'wip' ));
  18. ?>
  19.  
  20. <div class="span6 coupon-login">
  21. <h5><?php echo $info_message; ?></h5>
  22. <a href="#" class="button"><?php _e( 'Kortingsbon indienen', 'wip' ); ?></a>
  23.  
  24. <form class="checkout_coupon" method="post" style="display:none">
  25.  
  26. <p class="form-row form-row-first">
  27. <input type="text" name="coupon_code" class="input-text" placeholder="<?php _e( 'Kortingsbon code', 'wip' ); ?>" id="coupon_code" value="" />
  28. </p>
  29.  
  30. <p class="form-row form-row-last">
  31. <input type="submit" class="button" name="apply_coupon" value="<?php _e( 'Kortingsbon Toepassen', 'wip' ); ?>" />
  32. </p>
  33.  
  34. <div class="clear"></div>
  35. </form>
  36. </div>
Add Comment
Please, Sign In to add comment