flo_sb
Forum Replies Created
-
@todindiana cheers!
@todindiana that is because if you look at your screenshot versus the code I gave you, your browser/editor converted those < > ‘ to html entities and it should not have done that, code needs to look like mine, not what you screenshotted.
You can try copying the text or downloading this file and copying the text in it: https://itvolcano.com/for_wp_forum/flo_plugin_notes_modification_use_at_own_risk.txt
- This reply was modified 2 years, 11 months ago by flo_sb. Reason: added html entities link / explanation
Hey @todindiana,
As you said, in your case there is no css subfolder and no wp-admin-custom.css file. You either need to create that, or, if you don’t know how to do that, a simpler way for you to go with would be, ignore all the code I said above and just do the following in the child theme’s functions.php://Plugin Notes Plus plugin - change notes location function pnp_change_note_placement( $note_placement ) { $note_placement = 'description'; return $note_placement; } add_filter( 'plugin-notes-plus_note_placement', 'pnp_change_note_placement' ); function pnp_custom_css() { ?> <style> .column-description .pnp-show-note-wrapper { background: rgba(0,0,0,0.05); padding: 15px; } .column-description .pnp-note-form { width: 100%; } </style> <?php } add_action('admin_head', 'pnp_custom_css');
Again, make sure that the functions.php file that you are editing is of the child theme, otherwise when updating the mother theme your changes will be deleted.
Disclaimer: Editing functions.php incorrectly will crash your entire site. Make a backup before. Make changes at your own risk
That is how I made it look, @todindiana.
You can do that too *if you have a child theme* and knowledge to edit functions.phpPasting you my custom code
in functions.php
//Plugin Notes Plus plugin - change notes location function pnp_change_note_placement( $note_placement ) { $note_placement = 'description'; return $note_placement; } add_filter( 'plugin-notes-plus_note_placement', 'pnp_change_note_placement' ); function wp_admin_custom_css() { wp_enqueue_style('admin-styles', get_stylesheet_directory_uri().'/css/wp-admin-custom.css'); } add_action('admin_enqueue_scripts', 'wp_admin_custom_css');
in child theme/css/wp-admin-custom.css
.column-description .pnp-show-note-wrapper { background: rgba(0,0,0,0.05); padding: 15px; } .column-description .pnp-note-form { width: 100%; }
- This reply was modified 2 years, 11 months ago by flo_sb.
Forum: Plugins
In reply to: [W3 Total Cache] Memcached tests when use saslThank you for the fix donpiluso, it works now.
Forum: Plugins
In reply to: [reCaptcha by BestWebSoft] Arrow functions do not work in ie11Think it has to do with IE11 not having Promises.
Will try the fix from here: https://stackoverflow.com/questions/57378640/recaptcha-v3-not-feeding-response-token-object-in-ie-11I second this.
I believe the usage of 2x gtag.js installs cripples our custom coded events.
I would like to use send_to parameter to send my events towards the analytics account and after hours of troubleshooting I assume that having 2x gtag.js loading might mix things up.The above code snippet does not work for wp-admin, as there is no wp_head action in wp-admin.
This’ll work for both.
add_action('wp_head', 'fix_memory_leak'); //runs on frontend add_action('admin_enqueue_scripts', 'fix_memory_leak'); //runs on wp-admin function fix_memory_leak(){ remove_all_actions('wp_print_footer_scripts', 1); remove_all_actions('admin_print_footer_scripts', 1); }
Also, could you please let me know how I can remove woocommerce-blocks entirely?
Forum: Plugins
In reply to: [Contact Form 7] Error trying to send… Contact Form Updateyep, it’d be nice to be able to pick between recaptcha v2 and v3
Forum: Plugins
In reply to: [WooCommerce] “Invalid ZIP entered” errorcool, thanks ??
Forum: Plugins
In reply to: [WooCommerce] “Invalid ZIP entered” erroroakhillman, yes it does.
Or if I recall well, if you deactivate automated shipping taxes calculation.
Or, if you ” Enable the shipping calculator on the cart page ” as described above and correct the zip code.However, none of those options suits me, and I need a fix.
A workaround would be something like, in pseudocode, in functions.phpif( (is_cart() || is_checkout_first_page_load()) && is_wrong_zip_code() ) { set_zip_code_to('valid_zip'); }
However the proper sollution would be, in pseudocode
if((is_cart() || is_checkout_first_page_load()) && !shipping_calculator_on_cart_enabled() && invalid_zip_code_entered()){ empty_entered_address(); }
P.S. I didn’t give the direct problematic fresh new test store link, but it is visible in the video. Either way, this is the link: https://46.101.185.20/product/test-product/
Either wayForum: Plugins
In reply to: [WooCommerce] “Invalid ZIP entered” errorSo guess I’m not hijacking the thread after all, as I strongly believe oakhillman and the reddit user has the same issue.
I have installed a fresh WP & WC, storefront theme and have setup automated taxes.
Same result.
Please watch this youtube video, you will see what I mean – https://youtu.be/82deKVa5CpYI’d rather not hack this via js by invisibly auto-filling, on cart page load a valid ZIP and have a proper fix for this. I don’t mind auto-filling via functions.php
Forum: Plugins
In reply to: [WooCommerce] “Invalid ZIP entered” errorHello Zach,
I don’t mean to hijack oakhillman’s thread, will try to reproduce on a clean install with the latest versions of everything and will get back in a week or so, most probably on a separate thread.
Will follow this one as well though ??Forum: Plugins
In reply to: [WooCommerce] “Invalid ZIP entered” erroroakhillman, a possible sollution would be that you go into wp-admin => Shipping => Shipping Options => ” Enable the shipping calculator on the cart page ”
You can then correct the wrong zip code in the cart as you will have a shipping calc on the cart (https://itvolcano.com/screenshots/2019-02-07_11-59-34_4.png)However, if you don’t like having this option enabled, you’re out of luck.
I have shipping hidden on cart so this doesn’t work for me.Woocommerce, here is how to reproduce this:
1. DO NOT HAVE THIS ENABLED — wp-admin => Shipping => Shipping Options => ” Enable the shipping calculator on the cart page ”
2. Enter an invalid zip code on checkout
3. Exit checkout (I.E. look at a product or go back to cart)
4. You will never be able to get back to checkout in the current sessionNote: this is even worse than it seems, because if you log in to your account and you have a bad zip code in your account it gets auto filled in the checkout.
Forum: Plugins
In reply to: [WooCommerce] “Invalid ZIP entered” errorI too believe am having the same problem as you.
Problem started appearing when I activated Jetpack for automated tax calculation.If you try to go to the checkout endpoint in your browser, you will get
ZIP does not match the selected state.
There are some issues with the items in your cart (shown above). Please go back to the cart page and resolve these issues before checking out.
The “Invalid ZIP entered” error is on the cart.
This same issue that oakhillman, me and others have is described here as well: https://www.reddit.com/r/woocommerce/comments/9xppiv/error_between_cart_and_checkout_screen/