Your account expired support, please renew to get your support.

Home Forums Themes Support Clarivo Replace text in homepage search resulting Date with Price text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8423
    amar
    Support Expired

    Hi, I need to make changes in search box in my homepage search menu. I could not find any option to make changes to the search result option. I want to show price instead of date in the search result as show in image i have attached to this query.

    Attachments:
    You must be logged in to view attached files.
    #8427

    Hi,
    Thanks for contacting us and choosing our product!
    You can do it by go to: wp-content/themes/clarivo/framework/includes/ then open file woocommerce-hooks.php
    Go to line 834 and line 916 and change the code from:
    <p class="publish-date"><?php echo esc_html( mysql2date( 'M d Y', $post->post_date ) ); ?></p>
    to
    <p class="product-price"><?php $product = wc_get_product( $post->ID ); echo $product->get_price_html(); ?></p>
    Hope this helps!

    ****
    Regards,
    HaruTheme

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

You must be logged in to reply to this topic.