2015-10-28 13:04:28 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-10-28 13:09:34 +00:00
|
|
|
* Single variation display
|
2015-10-28 13:04:28 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2019-04-23 16:04:11 +00:00
|
|
|
* @see https://docs.woocommerce.com/document/template-structure/
|
2020-08-05 16:36:24 +00:00
|
|
|
* @package WooCommerce\Templates
|
2015-10-28 13:04:28 +00:00
|
|
|
* @version 2.5.0
|
|
|
|
*/
|
2018-02-20 11:12:29 +00:00
|
|
|
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
|
2015-10-28 13:04:28 +00:00
|
|
|
?>
|
2015-12-04 13:26:44 +00:00
|
|
|
<script type="text/template" id="tmpl-variation-template">
|
2017-11-29 09:55:09 +00:00
|
|
|
<div class="woocommerce-variation-description">{{{ data.variation.variation_description }}}</div>
|
|
|
|
<div class="woocommerce-variation-price">{{{ data.variation.price_html }}}</div>
|
|
|
|
<div class="woocommerce-variation-availability">{{{ data.variation.availability_html }}}</div>
|
2015-12-04 13:26:44 +00:00
|
|
|
</script>
|
|
|
|
<script type="text/template" id="tmpl-unavailable-variation-template">
|
2019-04-23 14:53:58 +00:00
|
|
|
<p><?php esc_html_e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p>
|
2015-12-04 13:26:44 +00:00
|
|
|
</script>
|