ferand
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 5.6.1 Clean Install Won’t send change email verificationAnd i surely checked spam folder many times.
It has to be something with exactly verification proccessForum: Fixing WordPress
In reply to: 5.6.1 Clean Install Won’t send change email verificationThere is no plugin installed – clean version
if i just enter in php a simple mail() function it works
Change verification of administrative wont workGot it , good job , ty
great, the only thing that remains for my code to work independently of your plugin is the same float_as_string functionality for free_shipping limit value, so i can also enter free shipping limit in USD, EURs etc
Yeap, that definetly, would help.
You can also add a filter for cart_total value, just a simple filter. So i can add my own logic to how this value is formed using different plugins(in my case its WOOCS, and i can just detect current currency by global $WOOCS; $cur_c = $WOOCS->current_currency; and then based on that apply rates to cart_total);
- This reply was modified 4 years, 4 months ago by ferand.
Possible, but i cant see how it would work without updating plugin code.
I just added some small changes to plugin to make it work with WOOCS (multi-curr plugin);Now i can enter fixed price and free shipping limit in this manner:
“100$” for USD curr, “100e” or “100E” for EUR curr, and “100” for my default rubles.I also added one method for plugin class – get_cart_total_multi_curr(), that returns cart_total based on current currency, before it would return 500 for 500$ which is much smaller than actually 500$ in rubles.
So, now it all works good, but i altered plugin code ?? On update i will lose it all
- This reply was modified 4 years, 4 months ago by ferand.
temporarily, i’ve removed floatval() for fixed price which is of course not a way out, but in my case it’s suitable, since we don’t use float vals in shipping price. But altering plugin code is bad, for sure.
Then possible way out could be:
1. Adding radio buttons before fixed price value to determine currency, or give user opportunity to add and define his own currencies and then pass that value into filter. That way we can give flexibility, and keep floatval for fixed price.If you cool with that i can make a pull request for that code
- This reply was modified 4 years, 4 months ago by ferand.
I am able now to use filter and apply rates to entered fixed price value based on multicurrency plugin rates. But i cannot find a way for user to enter price in USD,EUROs. I was thinking about this way:
1. User can enter just numbers to use default currency – “1000”
2. User can suffix value with currency sign – “1000$”, “1000e”, e – for euroSo in filter i can distinguish what currency is used and apply according rates.
But fixed price field is sanitizied and all chars are removed.How can we handle this ?
Thank you very much for fast and descriptive answer. I will take a look into filters and rest. Ty!!!!!
Wait. Have you just updated code and added that functionality only on my request and that fast ? ?? Wow ! So Good Job man. Just checked it , and it’s working, keep up the good work !
Forum: Plugins
In reply to: [WP-PostRatings] Average number format??
not even via some wp standart filters ?
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Plugin heavly slows my site’s first loadsqr(PS): i have yoast seo plugin installed but disabling it makes no difference(still page size increase upto 650kb with filters enabled)
I also tried all suggested options changes above – non helped at all
- This reply was modified 4 years, 5 months ago by ferand.
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Plugin heavly slows my site’s first loadI have a similar problem. My website has around 6-8 filters with not many options in each filter.
Enabling your plugin makes my main page grow from 170kb to enormous 650kb. That’s because there is a lot of code generated by plugin. (650-170)kb of text code.
1) How do i reduce it ?
2) Or at least disable it on main page because i don’t have any filter buttons implemented therePS. using latest version of plugin(just updated)
Thank you i already found a way. I found it on some github account in gist example that was doing similar functionality. Then i tried to use default shortcode [thirstylink] and it worked.
Very sad, i was looking for this information for a really long time, searching official website, crawling via google site: ulr feature. I was looking exactly for that and didn’t found anything. Documentation should include it.
Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] Hide errors on login ScreenThis is magic. Happened so many times to me ?? Whenever i ask about problem on forum – no matter how long i’ve been searching for an answer before – i find a solution 1-5 mins after i post to forum or ask friend ??
So, for those with same problem. You can easily change error displayed to always be same(whether its incorrect username or password) by this small function. Add it to functions.php
function my_custom_error_messages() { global $errors; $err_codes = $errors->get_error_codes(); // Invalid username. if ( in_array( 'invalid_username', $err_codes ) ) { $error = '<strong>ERROR</strong>: Invalid username or password'; } // Incorrect password. if ( in_array( 'incorrect_password', $err_codes ) ) { $error = '<strong>ERROR</strong>: Invalid username or password'; } return $error; } add_filter( 'login_errors', 'my_custom_error_messages');
- This reply was modified 4 years, 6 months ago by ferand.
Спасибо Артём, теперь все предельно ясно