external.php
3 years ago
grouped.php
3 years ago
simple.php
3 years ago
variable.php
4 years ago
variation-add-to-cart-button.php
3 years ago
variation.php
5 years ago
variation.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Single variation display |
| 4 | * |
| 5 | * This is a javascript-based template for single variations (see https://codex.wordpress.org/Javascript_Reference/wp.template). |
| 6 | * The values will be dynamically replaced after selecting attributes. |
| 7 | * |
| 8 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 9 | * @package WooCommerce\Templates |
| 10 | * @version 2.5.0 |
| 11 | */ |
| 12 | |
| 13 | defined( 'ABSPATH' ) || exit; |
| 14 | |
| 15 | ?> |
| 16 | <script type="text/template" id="tmpl-variation-template"> |
| 17 | <div class="woocommerce-variation-description">{{{ data.variation.variation_description }}}</div> |
| 18 | <div class="woocommerce-variation-price">{{{ data.variation.price_html }}}</div> |
| 19 | <div class="woocommerce-variation-availability">{{{ data.variation.availability_html }}}</div> |
| 20 | </script> |
| 21 | <script type="text/template" id="tmpl-unavailable-variation-template"> |
| 22 | <p><?php esc_html_e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p> |
| 23 | </script> |
| 24 |