| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for displaying product content in the single-product.php template |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php. |
| 6 |
* |
| 7 |
* HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 |
* (the theme developer) will need to copy the new files to your theme to |
| 9 |
* maintain compatibility. We try to do this as little as possible, but it does |
| 10 |
* happen. When this occurs the version of the template file will be bumped and |
| 11 |
* the readme will list any important changes. |
| 12 |
* |
| 13 |
* @see https://docs.woocommerce.com/document/template-structure/ |
| 14 |
* @package WooCommerce\Templates |
| 15 |
* @version 3.6.0 |
| 16 |
*/ |
| 17 |
|
| 18 |
defined( 'ABSPATH' ) || exit; |
| 19 |
|
| 20 |
global $product; |
| 21 |
|
| 22 |
get_header( 'shop' ); |
| 23 |
|
| 24 |
/** |
| 25 |
* Hook: woocommerce_before_single_product. |
| 26 |
* |
| 27 |
* @hooked woocommerce_output_all_notices - 10 |
| 28 |
*/ |
| 29 |
do_action( 'woocommerce_before_single_product' ); |
| 30 |
|
| 31 |
if ( post_password_required() ) { |
| 32 |
echo get_the_password_form(); // WPCS: XSS ok. |
| 33 |
return; |
| 34 |
} |
| 35 |
?> |
| 36 |
<div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>> |
| 37 |
<?php |
| 38 |
if ( class_exists( 'Elementor\Plugin' ) ) { |
| 39 |
echo Elementor\Plugin::instance()->frontend->get_builder_content( Builder_Integration::instance()->current_template_id, false ); |
| 40 |
} |
| 41 |
?> |
| 42 |
</div> |
| 43 |
|
| 44 |
<?php do_action( 'woocommerce_after_single_product' ); |
| 45 |
|
| 46 |
get_footer( 'shop' ); |
| 47 |
|
| 48 |
?> |
| 49 |
|