• I am setting up woocommerce to run an Amazon Associates site. Sometimes items on amazon show a “retail” price that is less than the “sale” price. I would like to modify the display so it only shows the sales price and NOT the retail price. I would also like to not show the “as of” date under the price.

    This is work in progress, but here is a product page as an example:
    http://www.readinessgear.com/product/5-11-tactical-74273-mens-taclite-pro-pant/

    Below is price.php file from woocommerce. How would I modify it to accomplish this?

    <div itemprop=”offers” itemscope itemtype=”http://schema.org/Offer”&gt;

    <p class=”price”><?php echo $product->get_price_html(); ?></p>

    <meta itemprop=”price” content=”<?php echo esc_attr( $product->get_price() ); ?>” />
    <meta itemprop=”priceCurrency” content=”<?php echo esc_attr( get_woocommerce_currency() ); ?>” />
    <link itemprop=”availability” href=”http://schema.org/&lt;?php echo $product->is_in_stock() ? ‘InStock’ : ‘OutOfStock’; ?>” />

    </div>

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Modify price.php’ is closed to new replies.