• Resolved aleks001

    (@aleks001)


    Hi,

    I was wondering if its possible after a person puts in their car details and gets taken to the results page with all the products to then display something like:

    Brake Pads for Audi A3 2013-2019 Sedan

    Basically just taking whatever input the customer has put in and then putting it on the shop page so they know the products they are looking at are for their car.

    Regards,
    Aleks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    It already works this way.
    It should display the selected vehicle at the top of the search results page.
    You can check it on the demo website:
    https://hottons.com/demo/wp/ymm/product-category/clothing/t-shirts/?_make=BMW&_model=X5&_year=2008

    Try to use the default WooCommerce theme “Storefront”:
    https://www.ads-software.com/themes/storefront/

    to check if it is a theme problem.

    Stanislav

    Thread Starter aleks001

    (@aleks001)

    Hi Stanislav,

    You are 100% correct it seems to be a theme issue, I’m using OceanWP theme. All it can show on the store front is the page title. I’m not sure if I can change the theme this late in the game, I might have to log a job with the theme support but they have been bad at replying.

    All i see is the following when I enable page title:
    2 Search Results Found
    You searched for: “”

    Regards,
    Aleks

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Do they provide a free version so I can install and check it on my computer?

    You can send the link to my email [email protected]

    Stanislav

    Thread Starter aleks001

    (@aleks001)

    Hi,

    Yes they do I’m using it only as a free version:
    https://en-au.www.ads-software.com/themes/oceanwp/

    There is a setting in the customize menue under Woocommerce -> General that you can then select “Remove Custom WooCommerce Features” If you say yes this removes all the oceanwp custom styling and features and your plugin works as it shows Search results for “XXXX” as we discussed but the page title is still empty above that, so it’s definitely something to do with the way the theme works.

    I realise this is a bit out of your support area but any help would be greatly appreciated. They seem to use the page title/heading as a location to display results and it only works with their search (very sneaky).

    Regards,
    Aleks

    Thread Starter aleks001

    (@aleks001)

    Hi Again,

    I’ve also noticed this customization option as possible solution on their shop page:

    Subheading
    Enter your page subheading. Shortcodes & HTML is allowed.

    If you can give me something there to pull the search results it will overwrite their default function that isn’t working.

    Regards,
    Aleks

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the line:

    
    (isset($trace[3]) && in_array(basename($trace[3]['file']), array('class-wc-breadcrumb.php','wc-template-functions.php','general-template.php')) && $trace[3]['function'] == 'get_search_query' && (!isset($trace[4]['function']) || $trace[4]['function'] != 'get_search_form')) //WP 4.3
    

    with:

    
    (isset($trace[3]) && in_array(basename($trace[3]['file']), array('class-wc-breadcrumb.php','wc-template-functions.php','general-template.php', 'helpers.php')) && $trace[3]['function'] == 'get_search_query' && (!isset($trace[4]['function']) || $trace[4]['function'] != 'get_search_form')) //WP 4.3
    

    in the file:
    /wp-content/plugins/ymm-search/Controller/Product.php

    Stanislav

    Thread Starter aleks001

    (@aleks001)

    You are an absolute legend. What’s your paypal I want to make a small donation to thank you.

    Regards,
    Aleks

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    You don’t need to pay for it.

    Stanislav

    Thread Starter aleks001

    (@aleks001)

    I know I don’t need to but I want to buy you a drink ?? and to support you and thank you for such a fantastic plugin and the great support you give ??

    Thread Starter aleks001

    (@aleks001)

    Thanks Stanislav for the resolution.

    Thread Starter aleks001

    (@aleks001)

    Hi Again,

    I think since we made this change the Vehicle Fitment table has disappeared from the product page now.

    Regards,
    Aleks

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can i display vehicle details on the results page ?’ is closed to new replies.