• Hi

    This plugin is just what I’m looking for, thanks.

    However, I would like the title of each dropdown to be the category name. I’m using this for printer inks so the first would be Make, second Series, third Model. I have changed the template.php to just say ‘Select’ however ideally I’d like each title to be different.

    I see some of the suggestions here say to make changed to the template.php, I’m using a child theme and is there any way to change the titles in my child functions.php.

    I wish my php skills were better to do this myself, but I’m sure that this will be useful help for anyone using this plugin in the future.

    Many thanks in advance

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

    (@pektsekye)

    Hello,

    You can use the “Make Model Engine” version of the free YMM search plugin:
    https://hottons.com/ymm_modifications

    Then rename “Model” to “Series” and “Engine” to “Model” in the two files:
    wp-content/plugins/ymm-search/etc/config.php
    wp-content/plugins/ymm-search/view/frontend/templates/product/view/tabs/restriction.php

    Stanislav

    Thread Starter doulou

    (@doulou)

    Hi

    Thank you for getting back to me so swiftly.

    It seems to work, I’m assuming if I use the csv to upload multiple restrictions on a single sku I’ll need a row per restriction?

    I’m going to try and use WP All Import for uploads anyway so I’ll see how it works with that.

    I have the search text box deselected and still see the search button (which isn’t needed), I’m assuming I can remove this with some CSS. I’ll check the support thread for YMM on this in case it’s been covered. I’ll also change the Vehicle Fitment title in the php file – useful to have there though.

    One final question – I’m assuming all these adjustments of the plugin files won’t be negated by any plugin updates? (I’ve also added the ‘not pre-selected’ modification).

    Thanks again

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    >if I use the csv to upload multiple restrictions on a single sku
    You will need to add another row with the same sku.
    Example:
    product_sku, make, model, year_from, year_to
    en4567,Lexus,RX300,1999,2003
    en4567,Toyota,Camry,1993,2000
    df1233,Toyota,Carina,1993,1998

    >I’m assuming I can remove this with some CSS
    Yes, you can hide the search button with CSS or in the template files:
    wp-content/plugins/ymm-search/view/frontend/templates/selector.php
    wp-content/plugins/ymm-search/view/frontend/templates/horizontal_selector.php

    >all these adjustments of the plugin files won’t be negated by any plugin updates?
    You can disable autoupdates for this plugin:
    https://stackoverflow.com/questions/17897044/wordpress-how-to-disable-plugin-update

    Stanislav

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change ‘select category’ to category names’ is closed to new replies.