woocommerce/templates/single-product/add-to-cart/external.php

17 lines
536 B
PHP
Raw Normal View History

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
* @version 1.6.4
2011-12-09 20:16:34 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2011-12-09 20:16:34 +00:00
?>
<?php do_action('woocommerce_before_add_to_cart_button'); ?>
2012-10-16 15:35:16 +00:00
<p class="cart"><a href="<?php echo esc_url( $product_url ); ?>" rel="nofollow" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', $button_text, 'external'); ?></a></p>
2011-12-09 20:16:34 +00:00
<?php do_action('woocommerce_after_add_to_cart_button'); ?>