variation.php 967 B

123456789101112131415161718192021222324
  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. * @author WooThemes
  10. * @package WooCommerce/Templates
  11. * @version 2.5.0
  12. */
  13. defined( 'ABSPATH' ) || exit;
  14. ?>
  15. <script type="text/template" id="tmpl-variation-template">
  16. <div class="woocommerce-variation-description">{{{ data.variation.variation_description }}}</div>
  17. <div class="woocommerce-variation-price">{{{ data.variation.price_html }}}</div>
  18. <div class="woocommerce-variation-availability">{{{ data.variation.availability_html }}}</div>
  19. </script>
  20. <script type="text/template" id="tmpl-unavailable-variation-template">
  21. <p><?php _e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p>
  22. </script>