default.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Additional Information tab |
| 5 | * |
| 6 | * This template can be overridden by copying it to yourtheme/woocommerce/single-product/tabs/additional-information.php. |
| 7 | * |
| 8 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 9 | * (the theme developer) will need to copy the new files to your theme to |
| 10 | * maintain compatibility. We try to do this as little as possible, but it does |
| 11 | * happen. When this occurs the version of the template file will be bumped and |
| 12 | * the readme will list any important changes. |
| 13 | * |
| 14 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 15 | * @package WooCommerce\Templates |
| 16 | * @version 3.0.0 |
| 17 | */ |
| 18 | |
| 19 | defined('ABSPATH') || exit; |
| 20 | |
| 21 | global $product; |
| 22 | |
| 23 | $heading = apply_filters( 'woocommerce_product_additional_information_heading', __( 'Additional information', 'shopengine' ) ); |
| 24 | ?> |
| 25 | |
| 26 | <div class="shopengine"> |
| 27 | <div class="shopengine-additional-information"> |
| 28 | |
| 29 | <?php |
| 30 | |
| 31 | if($heading) : ?> |
| 32 | |
| 33 | <h2><?php echo esc_html($heading); ?></h2> <?php |
| 34 | |
| 35 | endif; |
| 36 | |
| 37 | do_action('woocommerce_product_additional_information', $product); |
| 38 | |
| 39 | ?> |
| 40 | |
| 41 | </div> |
| 42 | </div> |
| 43 | |
| 44 |