Created
April 15, 2020 19:43
-
-
Save imran-khan1/8e961ff7cb5b5b51f82a015fffa595ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * 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 https://docs.woocommerce.com/document/template-structure/ | |
| * @package WooCommerce/Templates | |
| * @version 2.5.0 | |
| */ | |
| defined( 'ABSPATH' ) || exit; | |
| ?> | |
| <script type="text/template" id="tmpl-variation-template"> | |
| <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> | |
| <div class="woocommerce-variation-ci-text-field">{{{ data.variation.ci_text_field }}}</div> | |
| <div class="woocommerce-variation-ci-number-field">{{{ data.variation.ci_number_field }}}</div> | |
| <div class="woocommerce-variation-ci-textarea">{{{ data.variation.ci_textarea }}}</div> | |
| <div class="woocommerce-variation-ci-select">{{{ data.variation.ci_select }}}</div> | |
| <div class="woocommerce-variation-ci-checkbox">{{{ data.variation.ci_checkbox }}}</div> | |
| </script> | |
| <script type="text/template" id="tmpl-unavailable-variation-template"> | |
| <p><?php esc_html_e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p> | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment