HEX
Server: nginx/1.27.1
System: Linux in-3 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User: ivenus-clone (3297)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v4513/ivenusin/public_html/wp-content/themes/ivenus/woocommerce/single-product/price.php
<?php
/**
 * Single Product Price
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/price.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; // Exit if accessed directly
}

global $product;

?>

<p style="display: none !important;" class="<?php echo esc_attr( apply_filters( 'woocommerce_product_price_class', 'price' ) );?>"><?php echo $product->get_price_html(); ?></p>

<?php
	if( $product->is_type( 'simple' ) ) {
		if( $product->is_on_sale() ) { 
			if($product->get_sale_price()!='') { ?>
				<p  class="<?php echo esc_attr( apply_filters( 'woocommerce_product_price_class', 'price1' ) );?>"><?php echo $product->get_price_html(); ?></p>
			<?php } else { ?>
				<span class="new-price"><?php echo 'Out Of Stock'; ?></span>	
			<?php } ?>
			
		<?php  } else { 
			if($product->get_price()!='') { ?>
				<p  class="<?php echo esc_attr( apply_filters( 'woocommerce_product_price_class', 'price1' ) );?>"><?php echo $product->get_price_html(); ?></p>
			<?php } else { ?>
				<span class="new-price"><?php echo 'Out Of Stock'; ?></span>	
			<?php } 
		}
	} elseif( $product->is_type( 'variable' ) ){
		// echo 'Starting From '.$product->get_price_html();
	} 
?>