PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.4
ShopBuilder – WooCommerce Builder For Elementor v3.2.4
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / single-product / sku.php

sku.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.4, at templates/elementor/single-product/sku.php

33 lines 839 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template variables:
4 *
5 * @var $controllers array settings as array
6 */
7
8 // Do not allow directly accessing this file.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit( 'This script cannot be accessed directly.' );
11 }
12
13 global $product;
14 if ( empty( $product ) ) {
15 return;
16 }
17
18 if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) :
19 $sku = $product->get_sku() ? $product->get_sku() : esc_html__( 'N/A', 'shopbuilder' );
20 ?>
21 <div class="rtsb-product-sku">
22 <?php do_action( 'woocommerce_product_meta_start' ); ?>
23 <span class="sku-wrapper">
24 <?php if ( ! empty( $controllers['show_label'] ) ) { ?>
25 <span class="sku-label"><?php esc_html_e( 'SKU:', 'shopbuilder' ); ?></span>
26 <?php } ?>
27 <span class="sku-value"><?php echo esc_html( $sku ); ?></span>
28 </span>
29 </div>
30 <?php
31 endif;
32 ?>
33