| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/leapdubai/public_html/wp-content/themes/printx/woocommerce/single-product/ |
Upload File : |
<?php
/**
* Single Product Meta
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/meta.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $product;
$tag = get_the_terms( $product->get_id(), 'product_tag' );
?>
<div class="tp-shop-details__product-info">
<ul>
<?php do_action( 'woocommerce_product_meta_start' ); ?>
<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( 'variable' ) ) ) : ?>
<li>
<span><?php esc_html_e( 'SKU:', 'printx' ); ?></span>
<p><?php echo esc_html(( $sku = $product->get_sku() ), 'printx') ? $sku : esc_html__( 'N/A', 'printx' ); ?></p>
</li>
<?php endif; ?>
<li>
<?php echo wc_get_product_category_list( $product->get_id(), ', ', '<span>' . _n( 'Category: ', 'Categories: ', count( $product->get_category_ids() ), 'printx' ) . '</span> '); ?>
</li>
<?php if(!empty($tag)) : ?>
<li>
<?php echo wc_get_product_tag_list( $product->get_id(), ', ', '<span>' . _n( 'Tag:', 'Tags:', count( $product->get_tag_ids() ), 'printx' ) . '</span> '); ?>
</li>
<?php endif; ?>
<?php do_action( 'woocommerce_product_meta_end' ); ?>
<?php if(function_exists('printx_product_social_share_2')) : ?>
<?php echo printx_product_social_share_2(); ?>
<?php endif; ?>
</ul>
</div>