Precious Omonzejele
Forum Replies Created
-
Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Show all countriesCool, no problem!
Glad it worked, and you find the plugin useful.Please do not forget to leave a review ?? for the plugin.
Stay safe! and don’t forget to try out Pancakes today ????????!
Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Show all countrieshttps://gist.github.com/Preciousomonze/03c54e7e0cc0e11ca709832bc757810b
That is where i put most of the custom hooks for the plugins.
So add this to your functions.php or snippet (anywhere you know how to)
function pekky_cx_allowed_countries( $countries ) { // Get all countries from woocommerce. $countries = array_keys( WC()->countries->get_countries() ); return $countries; } add_filter( 'wc_pv_allowed_countries', 'pekky_cx_allowed_countries' );
Tested and should work.
Please let me know if this solves your issue. ????- This reply was modified 4 years, 2 months ago by Precious Omonzejele. Reason: commented out $countries by mistake ??
Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Show all countriesHello @jlavinsky , The plugin uses Your Available store base countries by default.
Luckily there’s a hook that helps with this, will just need a little tweak.
give me some time.
?????♂?Forum: Plugins
In reply to: [Phone Validator for WooCommerce] US Phone number validation on checkoutHello @jlavinsky , hope your day is going well?
?? Oops, thanks for the notice, really appreciate, will add it to my next update, which is coming soon.wow!
thanks @furfa and @frankbaku !
Now i’m thinking,maybe i also remember this when trying to validate a nigerian number, was some time ago, so i forgot.I’ve been having a tough time on my end, but i assure you i do have it in mind, in my new version release.
I’ll try to offer up a quick solution, if possible ??.
Again, i cant assure you of the exact time cause of how things are.
Please sorry for the delay.Hello @frankbaku ,sorry i couldn’t get respond on time.
1. Is on it’s way, might take longer than I expected, ??2. By default, once my plugin is active, number length won’t really matter, because it checks if the format is valid for the selected country,
I don’t know if this helps you though, please let me know.Hello, Thanks for the appreciation!
Unfortunately, you can’t change the custom placeholder, without hardcoding the javascript file, if you are familiar with Javascript, it will be very easy for you.
I’ll add this to a next update??Secondly, I do not understand what you mean by “number limit”
More explanation will be very useful for me.Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Latest update broke the plugin and checkoutHello @yward
I believe the issue has been resolved by now.
Cause it worked for the fellow here.
https://www.ads-software.com/support/topic/strange-output-on-woocommerce-checkout-page/#post-13213893Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Strange Output on WooCommerce Checkout PageOsheyyy!! Glad it did, marking as resolved ????
Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Strange Output on WooCommerce Checkout PageHello, yes, please uninstall the plugin, and install it again.
It’ll be resolved.Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Latest update broke the plugin and checkoutOkay then, i thought you had already set one up.
I will be expecting your feedback ASAP!
Do have a nice night.
Once again, I’m really sorry for the errors.Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Latest update broke the plugin and checkoutHi @yward , really sorry about this situation.
I am currently on a staging site, and using v1.3.0
and it works fine
https://peths.digital/bybo/checkout/
ThePHP Fatal error: Uncaught Error: Call to undefined method WC_PV::get_preferred_countries()
shouldn’t be, because its defined in
wp-content/plugins/woo-phone-validator/includes/class-wc-pv.php on line 254
Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Latest update broke the plugin and checkoutHello, thanks for it.
The issue has been resolved, please reinstall and let me know.
Will be waiting.Forum: Plugins
In reply to: [Phone Validator for WooCommerce] Latest update broke the plugin and checkoutHello, sure i did an update few hours ago
And tested.
Please can you provide me the environment you’re on, so i can see on my end?
Thanks. And sorry about this.??Update: i have seen the issue, will push a fix asap.
- This reply was modified 4 years, 3 months ago by Precious Omonzejele.
Forum: Plugins
In reply to: [Phone Validator for WooCommerce] How to Set PreferredCountries?Hello, theres a new update.
Update to the latest version, after that:function pekky_cx_preferred_countries( $countries ){ $countries = array('ng','gh','es'); return $countries; } add_filter( 'wc_pv_preferred_countries', 'pekky_cx_preferred_countries' );
replace the countries to suite your need, add to your functions.php
Marking this as resolved!
And Please do not forget to rate ????
Do have a nice day and don’t forget to try out pancakes! ????