• Hi,

    Great plugin, quite useful but I am having an issue:

    On the product page, after I add the restriction list (even your sample list), when I hit Update button, the list is not saved and the Restriction box is empty.

    Hope to hear from you soon. Thanks

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

    (@pektsekye)

    Hello,

    This plugin saves restriction only if it is changed.
    It uses jQuery to observe the restriction field.
    Maybe you have some JavaScript error or jQuery is not loaded.

    Try to replace:
    <input type=”hidden” id=”ymm_restriction_changed” name=”ymm_restriction_changed” value=”0″>

    with:
    <input type=”hidden” id=”ymm_restriction_changed” name=”ymm_restriction_changed” value=”1″>

    in the file:
    wp-content/plugins/ymm-search/Block/Adminhtml/Product/Edit/Restriction.php

    Let me know if it helps

    Stanislav

    Thread Starter miata2

    (@miata2)

    Thanks, I tried that but didn’t help, still not saving the “restriction”, any suggestions please.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    The function sanitize_textarea_field on line 124 in the file:
    wp-content/plugins/ymm-search/Block/Adminhtml/Product/Edit/Restriction.php

    requires WordPress 4.7.0

    What is your WordPress version?

    Have you tried to deactivate my plugin and then click the “Delete” link to delete all files and database tables and then install the latest version of this extension 1.0.9 ?

    Stanislav

    Thread Starter miata2

    (@miata2)

    Hi again,

    WP version is 4.9.2 (Multisite).

    Yes I deleted your plugin and installed again (1.0.9)

    One more thing, when I activate your plugin, the text editor on the Product admin page stops working, the editor page is blank I cannot switch between Visual and Text.

    Thanks

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Have you tried to disable other plugins?

    Maybe there is a plugin that conflicts with YMM

    Stanislav

    Thread Starter miata2

    (@miata2)

    Hi Stanislav,

    You are right, there is a conflict with WooCommerce Tab Manager https://woocommerce.com/products/woocommerce-tab-manager/ when I disable this plugin, your plugin works properly.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Do they provide a trial version so I can try to install it on localhost?

    Stanislav

    Thread Starter miata2

    (@miata2)

    Hi,

    I’ve just emailed you the plugin to test.

    Regards

    Thread Starter miata2

    (@miata2)

    Just a question please, how to hide the Vehicle Fitment tab from the product page using CSS?

    For example for hiding the Additional Information tab, I am using this:

    .woocommerce-tabs ul.tabs
    li.additional_information_tab { display: none; }

    Thanks

    Thread Starter miata2

    (@miata2)

    I think I found it:

    .woocommerce-tabs ul.tabs
    li.ymm_tab { display: none; }

    Thanks anway.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    there is a conflict with WooCommerce Tab Manager

    Try to replace:

    public function add_product_tabs($tabs) {

    with:

      public function add_product_tabs($tabs) {
        if ($this->is_request( 'admin' )){
          return $tabs;
        }

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

    Let me know the result

    Stanislav

    Thread Starter miata2

    (@miata2)

    Hi,

    Adding that, broke the whole website (500 error), doesn’t matter, I will keep your plugin and disable WooCommerce Tab Manager, I can live without it.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Adding that, broke the whole website (500 error)

    I think you made a mistake in the file.

    Try to download the latest version of this extension.

    The version number is the same 1.0.9 but the ymm-search.php file is different.

    Let me know the result.

    Stanislav

    Thread Starter miata2

    (@miata2)

    Hi again,

    Just another question please, regarding Product Restriction Format,

    For example if a car: “Alfa Romeo”, Model: “MiTo” is made from 2008 till today, and will be made further.

    I used this format:
    Alfa Romeo, MiTo, 2008,

    I thought it will show all the years till from 2008 till now, but it’s actually only showing one year: 2018.

    I know that I can use this:
    Alfa Romeo, MiTo, 2008, 2018

    But then next year I will have to go back to each of these product and change it to 2019, and in 2020 the same…etc

    So in case the car model is still in production, how to keep the year “till…” open?

    Thanks

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    It is the main limitation of this plugin.

    Product restrictions are used as drop-down options.

    The Part Finder plugin:
    https://hottons.com/woocommerce/partfinder-wp.html

    has product restrictions separated from drop-down options.

    PS: You can try to create another product with restriction:
    Alfa Romeo, MiTo, 2008, 2020
    Then disable this product.
    So the years will be selectable in drop-down but the disabled product will not appear in the search results.

    Stanislav

    • This reply was modified 7 years, 2 months ago by Pektsekye.
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Restriction not saved’ is closed to new replies.