Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2880318
#price_html instead of Price in Product Summary
Closed

Comments

  • Reinis started the conversation

    Hi,
    Is it possible somehow in Product Summary to display not "Price" but "Price_html"? what in my case contains price/unit.

  •  767
    Janilyn replied

    Hi Reinis,

    Thanks for contacting WPClever Support Forum. We're not available at the weekends so today (Monday) I am able to process your ticket.

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Reinis,

    I don't clear about your question. Our plugin already show the price HTML in this position https://www.screencast.com/t/N9yJbotiULvu

    However, you can show any other information you want. Please add the below custom code (How to add custom code?)

    add_action( 'woosq_product_summary', 'woosq_product_summary_custom_data', 16 );
    function woosq_product_summary_custom_data( $product ) {
        echo 'Your text here!';
        echo '<p class="price">' . $product->get_price_html() . '</p>';
    }

    And the result https://www.screencast.com/t/d9V2clTN

    Best regards,
    Dustin