Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #813273

    Hello Sirs,

    Thank You for your great support!

    Could you help me, if that easy for you to the following search results page customization?

    1. add price to search results page
    2. add sku to search results page
    3. how to edit the sidebar of search results page?

    Thank You in advance.

    Best regards,
    Nick

    #813637

    Hey nickgin,

    Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #813642

    An actual answer for you
    Use Relevanssi in search instead of the default search

    December 3, 2013/in PHP Snippets /by Devin/Last Updated: January 18, 2014
    If you are using Relevanssi for your WordPress searches you can have the theme use it as well for the non-standard search forms that the theme generates.

    add_filter(‘avf_ajax_search_function’, ‘avia_init_relevanssi’, 10, 4);
    function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults)
    {
    $function_name = ‘avia_relevanssi_search’;
    return $function_name;
    }

    function avia_relevanssi_search($search_query, $search_parameters, $defaults)
    {
    global $query;
    $tempquery = $query;
    if(empty($tempquery)) $tempquery = new WP_Query();

    $tempquery->query_vars = $search_parameters;
    relevanssi_do_query($tempquery);
    $posts = $tempquery->posts;

    return $posts;
    }

    #813653

    Hi Basilis,

    Thank you for your quick response.

    I really understand what issue is beyond the scope of this forum, but I think in a woocommerce site, in the search results page, at least the price of the product, should be displayed by default.

    Best regards,
    Nick

    #813654

    Thank you @Aribann for your answer. I really appreciate that!

    #814308

    Hi Nick,

    This might help you
    https://kriesi.at/support/topic/search-results-with-price/

    Best regards,
    Victoria

    #815121

    Hi Victoria,

    Thank you very much for your excellent support!

    Indeed, it helps but can I style the price element thru css because it displays the price as plain text and not aligned, as you see in screenshot: https://prnt.sc/fq3h4r

    Is that easy to you to display and the Regular (strikethrough) price, as screenshot? https://prnt.sc/fq3k1h

    URL: http://zoomit.gr/wordpress_2/?s=lg+

    I really appreciate your help,

    Thank you in advance,

    Best regards,
    Nick

    #816634

    Hi,

    Wrap the price inside a container with the price class attribute.

    $sale_price = get_post_meta( get_the_ID(), '_price', true);
    echo "<span class='price'>".$sale_price."</span>";
    

    Use the “.price” selector to adjust the style of the price text.

    Best regards,
    Ismael

    #898861

    Hi Ismael,

    Unfortunately, it didn’t work…

    It displays only one price and not for all products….

    Please help me… I would like your precious help…

    Please see screenshots:
    http://prntscr.com/i1z1n7
    http://prntscr.com/i1z1wj

    Thank You in advance,

    Nick

    #900617

    Hi,

    Thank you for the info.

    You should add the code inside the loop. Look for this code around line 88.

     $excerpt = trim(get_the_excerpt());
    

    Place the price above it.

    Best regards,
    Ismael

    #900883

    Hi Ismael,

    Your code worked! You are brilliant! Thank You very much.

    Could your also include in your code the regular price also (strike-out price when there is a product offer) and the euro sign € too?

    See screenshot: http://prntscr.com/i3yogb

    Thank You in advance,

    Nick

    #902493

    Hi,

    Glad that the modification worked. Please provide a keyword that we can use so that we can search for a product on sale. We would like to inspect it.

    Best regards,
    Ismael

    #902899

    Hi Ismael,

    Thank You for your quick response.

    Keyword: lg tv
    http://zoomit.gr/wordpress_2/?s=lg+tv

    Product page:

    I would like to achieve that: https://prnt.sc/i3yogb

    Thank You in advance.

    Best regards,
    Nick

    #903345

    Hi,

    Thank you for the info.

    Please replace the previous modification with the following code.

    global $product;
     echo $product->get_price_html();

    Best regards,
    Ismael

    #906378

    Hi Ismael,

    WOW!! It worked!!

    Thank you so much for your excellent support!!!

    Best regards,
    Nick

    #906630

    Hi Nick,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #921268

    Hi Rikard,

    All are ok. Pls close the ticket.

    Thank You.

    Best regards,
    Nick

    #921330

    Hi Nick,

    Thanks for the feedback. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Search results page customization’ is closed to new replies.