GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Resolved]Woocommerce Product Price in Search Results

Home Forums Support Woocommerce Product Price in Search Results

This topic contains 1 reply, has 1 voice, and was last updated by  bootlick 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56138

    bootlick
    Participant

    Looking to add Product Price in the Search Results. Has anyone been able to do this or can lead me in the right direction.
    Regards,

    #56149

    bootlick
    Participant

    <!– Adding Price–>
    <b>Price:</b>

    <span class=”woocommerce-Price-amount amount”><span class=”woocommerce-Price-currencySymbol”>$</span>
    <?php
    $product = new WC_Product(get_the_ID());
    $regular_price = $product->regular_price;
    echo $regular_price;
    ?>

    </span>
    <ins><span class=”woocommerce-Price-amount amount”><span class=”woocommerce-Price-currencySymbol”>$</span>
    <?php
    $product = new WC_Product(get_the_ID());
    $sale_price = $product->sale_price;
    echo $sale_price;
    ?>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.