Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Single Product Price, including microdata for SEO
- *
- * @author WooThemes
- * @package WooCommerce/Templates
- * @version 1.6.4
- */
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- global $post, $product;
- ?>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
- <p class="price"><?php echo $product->get_price_html(); ?></p>
- <meta itemprop="price" content="<?php echo $product->get_price(); ?>" />
- <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>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
- <p class="price"><span class="amount">$1.60</span>–<span class="amount">$25.00</span></p>
- <meta itemprop="price" content="1.6" />
- <meta itemprop="priceCurrency" content="USD" />
- <link itemprop="availability" href="http://schema.org/InStock" />
- </div>
- <?php
- /**
- * Single Product Price, including microdata for SEO
- *
- */
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- global $post, $product;
- ?>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
- <?php if (is_product() and $post->post_name == 'club-high-fear'): ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per month</p>
- <?php elseif (is_product() and $post->post_name == 'club-medium-fear'): ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per month</p>
- <?php elseif (is_product() and $post->post_name == 'club-low-fear'): ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per month</p>
- <?php elseif (is_product() and $post->post_name == 'self-study-online-course'): ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per course</p>
- <?php elseif (is_product() and $post->post_name == '10-week-workshop'): ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per workshop</p>
- <?php elseif (is_product() and $post->post_name == 'coaching'): ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per minute or $25 per email</p>
- <?php else: ?>
- <p class="price"> <?php echo $product->get_price_html(); ?></p>
- <?php endif; ?>
- <meta itemprop="price" content="<?php echo $product->get_price(); ?>" />
- <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>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
- <p class="price"><span class="amount">$1.60</span>–<span class="amount">$25.00</span></p>
- <p class="price"><span class="amount">$1.60</span>–<span class="amount">$25.00</span> per minute or $25 per email</span>
- <meta itemprop="price" content="1.6" />
- <meta itemprop="priceCurrency" content="USD" />
- <link itemprop="availability" href="http://schema.org/InStock" />
- </div>
- <?php if (is_product() and $post->post_name == 'club-high-fear'): ?>
- <?php if (is_product() && $post->post_name == 'club-high-fear'): ?>
- <?php if (is_product() and $post->post_name == 'club-high-fear') { ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per month</p>
- <?php } ....?>
- <?php if (is_product() && $post->post_name == 'club-high-fear' || $post->post_name == 'club-medium-fear' || $post->post_name == 'club-low-fear'){ ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per month</p>
- <?php } elseif (is_product() && $post->post_name == 'self-study-online-course'){ ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per course</p>
- <?php } elseif (is_product() && $post->post_name == '10-week-workshop'){ ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per workshop</p>
- <?php } elseif (is_product() && $post->post_name == 'coaching') { ?>
- <p class="price"> <?php echo $product->get_price_html(); ?> per minute or $25 per email</p>
- <?php } else { ?>
- <p class="price"> <?php echo $product->get_price_html(); ?></p>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement