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

33 lines
1.0 KiB
PHP
Raw Normal View History

<?php
/**
2015-10-28 13:09:34 +00:00
* Single variation display
*
* This is a javascript-based template for single variations (see https://codex.wordpress.org/Javascript_Reference/wp.template).
* The values will be dynamically replaced after selecting attributes.
*
* @see http://docs.woothemes.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<script type="text/template" id="tmpl-variation-template">
<div class="woocommerce-variation-description">
2015-12-04 13:34:38 +00:00
{{{ data.variation.variation_description }}}
</div>
<div class="woocommerce-variation-price">
2015-12-04 13:34:38 +00:00
{{{ data.variation.price_html }}}
</div>
<div class="woocommerce-variation-availability">
{{{ data.variation.availability_html }}}
</div>
</script>
<script type="text/template" id="tmpl-unavailable-variation-template">
<p><?php _e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p>
</script>