2011-12-09 20:16:34 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2012-08-14 18:05:45 +00:00
|
|
|
* External product add to cart
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates
|
2013-09-25 11:35:06 +00:00
|
|
|
* @version 2.1.0
|
2011-12-09 20:16:34 +00:00
|
|
|
*/
|
2012-10-15 10:57:58 +00:00
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
2011-12-09 20:16:34 +00:00
|
|
|
?>
|
|
|
|
|
2013-09-25 11:35:06 +00:00
|
|
|
<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
|
|
|
|
|
|
|
|
<p class="cart">
|
|
|
|
<a href="<?php echo esc_url( $product_url ); ?>" rel="nofollow" class="single_add_to_cart_button button alt"><?php echo $button_text; ?></a>
|
|
|
|
</p>
|
2011-12-09 20:16:34 +00:00
|
|
|
|
2013-09-25 11:35:06 +00:00
|
|
|
<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
|