Restriction not saved
-
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
-
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.phpLet me know if it helps
Stanislav
Thanks, I tried that but didn’t help, still not saving the “restriction”, any suggestions please.
Hello,
The function sanitize_textarea_field on line 124 in the file:
wp-content/plugins/ymm-search/Block/Adminhtml/Product/Edit/Restriction.phprequires 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
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
Hello,
Have you tried to disable other plugins?
Maybe there is a plugin that conflicts with YMM
Stanislav
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.
Hello,
Do they provide a trial version so I can try to install it on localhost?
Stanislav
Hi,
I’ve just emailed you the plugin to test.
Regards
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
I think I found it:
.woocommerce-tabs ul.tabs
li.ymm_tab { display: none; }Thanks anway.
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.phpLet me know the result
Stanislav
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.
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
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, 2018But 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
Hello,
It is the main limitation of this plugin.
Product restrictions are used as drop-down options.
The Part Finder plugin:
http://hottons.com/woocommerce/partfinder-wp.htmlhas 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 8 years, 4 months ago by
Pektsekye.
-
This reply was modified 8 years, 4 months ago by
The topic ‘Restriction not saved’ is closed to new replies.