get_type(); $settings['_product_id'] = $product->get_id(); $settings['product_id_origin'] = $settings['_product_id']; $settings['product_id'] = $settings['_product_id']; if ( $settings['product_type'] == 'variation' ) { $settings['product_id'] = $product->get_parent_id(); } ob_start(); if ( wc_product_sku_enabled() && ( $product->get_sku() || $settings['product_type'] == 'variable' ) ) : ?> get_sku() ) ? $sku : esc_html__( 'N/A', 'xstore' ) ); ?> get_children(), function ($localProdId) { return !empty(get_post_meta( $localProdId, '_et_gtin', true )); } ); if ( $children_have_gtin ) $gtin_ghost = true; } // in case it is product variation gtin field if ( !$gtin && $settings['product_id_origin'] != $settings['product_id'] ) { $gtin = get_post_meta($settings['product_id'], '_et_gtin', true); $gtin_ghost = false; } if ( $gtin || $gtin_ghost ) : ?> ' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'xstore' ) . ' ', '' ); $settings['content']['tags'] = ob_get_clean(); if (in_array('custom', $settings['elements'])){ ob_start(); $custom_content = apply_filters('product_meta_custom_content_filter', get_theme_mod( 'product_meta_custom_content', '')); echo do_shortcode($custom_content); $settings['content']['custom'] = ob_get_clean(); } if ( count( $settings['elements'] ) < 1 ) { return; } ?>