Viewing 1 replies (of 1 total)
  • Thread Starter AmandaEve

    (@amandaeve)

    i think i did it. i think.

    i replaced the single-product/price.php template with this:

    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    global $product;
    
    ?>
    
    <?php if ( !$product->is_type( array( 'variable', 'grouped' ) ) ) : ?>
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    
    	<p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>
    
    	<meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" />
    	<link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" />
    
    </div>
    <?php endif; ?>

Viewing 1 replies (of 1 total)

The topic ‘Subscription Description’ is closed to new replies.