- This topic has 65 replies, 44 voices, and was last updated 4 years, 7 months ago by Srinivasa M.
-
AuthorPosts
-
May 8, 2017 at 12:54 am #18917Andy LimParticipant
Can anyone tell me how I can find the license key for YITH premium plugins?
May 10, 2017 at 8:22 pm #18925Gilberto CaldwellParticipantHi Andy,
You can make the following edit to the license check code in order to use the premium YITH plugins. This doesn’t activate the license so you should still download updates from the repository here (and make the same change again when updating).
– Open the file /yith-xxxxxxxxxx/plugin-fw/licence/lib/yit-licence.php and go to line 349
– change “return false;” to “return true;”May 10, 2017 at 9:30 pm #18926Andy LimParticipantThanks Gilberto!
November 15, 2017 at 12:32 am #19519Alex van EckParticipantSry But its not working for me!
December 18, 2017 at 12:39 am #19588Penny DreadfulParticipantIt does NOT work for me either.
January 17, 2018 at 5:13 pm #19636Roger GonzalezParticipantHey to remove the notice of YITH plugins you should go to every plugin of YITH you have and edit the file in folder “/plugin-fw/licence/lib/yit-plugin-licence.php”
At that file you should comment out the line that says:
add_action( 'admin_notices', array( $this, 'activate_license_notice' ), 15 );
This means adding // to the front of that line or /* */ on both ends of that line.
it should look like this:
// add_action( 'admin_notices', array( $this, 'activate_license_notice' ), 15 );
or
/* add_action( 'admin_notices', array( $this, 'activate_license_notice' ), 15 ); */
Remember, this must be done on every YITH plugin you have.
- This reply was modified 6 years, 12 months ago by Roger Gonzalez.
January 18, 2018 at 5:50 pm #19643Penny DreadfulParticipantThat is helpful, thank you, Roger.
January 26, 2018 at 9:26 am #19678Aris KaraviasParticipantHi, in the last updates of the plugins there is no yit-licence.php file, does anyone know how to activate the latest versions?
February 2, 2018 at 10:15 am #19698ygParticipanthi
thanks alot. do you know how to remove for EDD and WOOCOMMERCE as well?
also are you available to do some custom work? will pay
please message me.
April 30, 2018 at 12:51 pm #19982Riu comParticipantHello
Are these yit-plugin-licence.php and yit-licence.php same for each plugin? If yes – then these edited files can be replaced for each YITH plugin.
regards
August 25, 2018 at 4:24 am #20326jai uiParticipantafter perform below steps
the Warning! You didn’t set license key for the following products: error will come
– Open the file /yith-xxxxxxxxxx/plugin-fw/licence/lib/yit-licence.php and go to line 349
– change “return false;” to “return true;”This means adding // to the front of that line or /* */ on both ends of that line.
it should look like this:
// add_action( ‘admin_notices’, array( $this, ‘activate_license_notice’ ), 15 );
or
/* add_action( ‘admin_notices’, array( $this, ‘activate_license_notice’ ), 15 ); */September 21, 2018 at 1:10 am #20396Paul MauriceParticipantWebcraftic disable admin notices plugin
September 22, 2018 at 5:22 am #20398ANDREA RINALDOParticipantit does not work for me
October 20, 2018 at 8:41 am #20468New FolderParticipantHello,
Insert the following code in the functions.php of your theme:
function yith_remove_notice ($ show_license_notice)
{
return false;
}
add_filter (“yith_plugin_fw_show_activate_license_notice”, “yith_remove_notice”, 99999999999999999, 1);
Good luck!
October 23, 2018 at 11:06 am #20482Gutre LebowskiParticipantNone of the codes work anymore!
October 29, 2018 at 8:54 am #20499GosserParticipantHello, actually it is very simple
Simply go to all the YITH plugins that you have installed, even the free ones.
Everyone has the file to modify in the following route (as already mentioned):
Yith plugin that we want to modify » plugin-fw » license » lib » yit-plugin-license.php
Now, this is the particularity that has changed. The code to look for now is no longer in a single line, they have put it in several:
We search for the phrase:
/ ** @since 3.0.0 * /
Just below is the code separated into three lines:
add_action ('admin_notices', function () { $ this-> activate_license_notice (); }, fifteen );
We simply put a couple of “oblique lines” in front of each one of them, thus remaining.
//add_action( 'admin_notices', function () { // $this->activate_license_notice(); //}, 15 );
We save the changes and upload it again to the server.
;) It works … Without a doubt.
Excuse me Googlenglish.
- This reply was modified 6 years, 2 months ago by Gosser. Reason: sintax
November 21, 2018 at 5:52 pm #20586tojihodec tolizParticipantHey buddy,
This doesnt work anymore on with the latest WC version as it seems…
Can you try and find a new way? Thanks! Cuz as of now,, i didnt find any way to remove the YITH notice…
Let us know! :)
November 21, 2018 at 6:00 pm #20587sam sungParticipantJust tried @Gosser method on the latest version of the Abandoned cart plugin and it worked perfectly.
January 3, 2019 at 3:09 am #20824Sam AkaParticipantthis is what works for me:
go to:
/wp-content/plugins/plugin name/plugin-fw/license/lib/yit-plugin-license.phpdelete the entire following code:
if ( !!$product_names ) {
$start = '<span style="display:inline-block; padding:3px 10px; margin: 0 10px 10px 0; background: #f1f1f1; border-radius: 4px;">';
$end = '</span>';
$product_list = '' . $start . implode( $end . $start, $product_names ) . $end . '';
$activation_url = self::get_license_activation_url();
?>Warning! You didn't set license key for the following products:
which means you're missing out on updates and support. '>Enter your license key, please.
<?php
}
by doing this, the nag message will stop completely. but you have to do that in every YITH plugin you have installed.
goodluckJanuary 5, 2019 at 6:39 am #20855WlalexParticipantmy website crashes when i edit/update this file.
I go to the mentioned installed file,
open it with editor,
delete the mentioned code,
save it – the site is downJanuary 5, 2019 at 6:49 am #20856Sam AkaParticipantmake sure to edit and save the file in utf-8 encoding. also make sure you not missing any line so delete from where it says: If
to the: } symbolif you deleting extra ( } ) then it will break the code.
- This reply was modified 6 years ago by Sam Aka.
January 5, 2019 at 8:25 am #20858Sam AkaParticipantjust checked my files, the code needed to be removed located from line 134 – line 146.
hope it works for you.January 5, 2019 at 10:11 am #20860WlalexParticipanthey sam aka, thx for the quick response.
if i open this file in wp plugin editor the above-mentioned code is in line 134-139134: if ( !!$product_names ) {
135: $start = ‘<span style=”display:inline-block; padding:3px 10px; margin: 0 10px 10px 0; background: #f1f1f1; border-radius: 4px;”>’;
136: $end = ‘</span>’;
137: $product_list = ” . $start . implode( $end . $start, $product_names ) . $end . ”;
138 $activation_url = self::get_license_activation_url();
139: ?>If i delete this six lines, my page is down. any idea? thank you
January 5, 2019 at 11:53 am #20862WlalexParticipantI deleted line 134-146 its running now. thanks
January 5, 2019 at 11:28 pm #20888Sam AkaParticipanti never used the wp plugin editor. i access the file from the host cPanel and edit it from there. i noticed in all YITH plugins it’s all from line 134-146.
i’m glad it works for you, but remember you have to do this in every YITH plugin installed.January 17, 2019 at 9:27 am #20942Bintang PriyonggoParticipantwow, it’s work for me
- This reply was modified 5 years, 12 months ago by Bintang Priyonggo.
February 5, 2019 at 4:54 pm #21023TassieNZParticipant@ Sam Aka
Thank for this fix … perfect solution. :)
- This reply was modified 5 years, 11 months ago by TassieNZ.
February 8, 2019 at 7:16 pm #21031Emile NaimParticipantGosser method worked perfectly, pasted it again below:
Gosser: Hello, actually it is very simple
Simply go to all the YITH plugins that you have installed, even the free ones.
Everyone has the file to modify in the following route (as already mentioned):
Yith plugin that we want to modify » plugin-fw » license » lib » yit-plugin-license.php
Now, this is the particularity that has changed. The code to look for now is no longer in a single line, they have put it in several:
We search for the phrase: / ** @since 3.0.0 * /
Just below is the code separated into three lines:
add_action (‘admin_notices’, function () {
$ this-> activate_license_notice ();
}, fifteen );
We simply put a couple of “oblique lines” in front of each one of them, thus remaining.//add_action( ‘admin_notices’, function () {
// $this->activate_license_notice();
//}, 15 );
We save the changes and upload it again to the server.;) It works … Without a doubt.
Excuse me Googlenglish.
February 11, 2019 at 9:04 am #21044tojihodec tolizParticipantnot one solution works anymore..
I’ve tried them with ‘Catalog premium’ and ‘Tab manager’ .. So whats the next solution? So annoying notice.
Isnt there an other way to disable all these YITH notifications at once? via functions.php or something?
Thanks guys!!
February 11, 2019 at 1:13 pm #21046Gutre LebowskiParticipantThey changed the code again. The piece of code mentioned in this thread is not there anymore. They think they can make money by annoying people!
-
AuthorPosts
- You must be logged in to reply to this topic.