Title: flo_sb's Replies | WordPress.org

---

# flo_sb

  [  ](https://wordpress.org/support/users/flo_sb/)

 *   [Profile](https://wordpress.org/support/users/flo_sb/)
 *   [Topics Started](https://wordpress.org/support/users/flo_sb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/flo_sb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/flo_sb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/flo_sb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/flo_sb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/flo_sb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/flo_sb/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/flo_sb/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Function wc_enqueue_js deprecated since version 10.4.0!](https://wordpress.org/support/topic/function-wc_enqueue_js-deprecated-since-version-10-4-0/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [4 days, 3 hours ago](https://wordpress.org/support/topic/function-wc_enqueue_js-deprecated-since-version-10-4-0/#post-18902808)
 * Hi DuracellTomi, does in this file /wp-content/plugins/duracelltomi-google-tag-
   manager/integration/woocommerce.php
 * Replacing this code:
 *     ```wp-block-code
       wc_enqueue_js(    '    window.gtm4wp_checkout_products = ' . wp_json_encode( $gtm4wp_checkout_products ) . ';    window.gtm4wp_checkout_value    = ' . (float) $gtm4wp_checkout_total . ';');
       ```
   
 * With this code
 *     ```wp-block-code
       wp_add_inline_script(    'gtm4wp-woocommerce',    '    window.gtm4wp_checkout_products = ' . wp_json_encode( $gtm4wp_checkout_products ) . ';    window.gtm4wp_checkout_value    = ' . (float) $gtm4wp_checkout_total . ';',    'before');
       ```
   
 * Work?
   Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Notes Plus] extra styling for notes when placed under description instead of separate column](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/)
 *  Thread Starter [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [4 years ago](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/#post-15581084)
 * [@todindiana](https://wordpress.org/support/users/todindiana/) cheers!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Notes Plus] extra styling for notes when placed under description instead of separate column](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/)
 *  Thread Starter [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [4 years ago](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/#post-15568409)
 * [@todindiana](https://wordpress.org/support/users/todindiana/) that is because
   if you look at your screenshot versus the code I gave you, your browser/editor
   converted those < > ‘ to [html entities](https://www.w3schools.com/html/html_entities.asp)
   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](https://itvolcano.com/for_wp_forum/flo_plugin_notes_modification_use_at_own_risk.txt)
    -  This reply was modified 4 years ago by [flo_sb](https://wordpress.org/support/users/flo_sb/).
      Reason: added html entities link / explanation
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Notes Plus] extra styling for notes when placed under description instead of separate column](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/)
 *  Thread Starter [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [4 years ago](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/#post-15565455)
 * Hey [@todindiana](https://wordpress.org/support/users/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
    -  This reply was modified 4 years ago by [flo_sb](https://wordpress.org/support/users/flo_sb/).
    -  This reply was modified 4 years ago by [flo_sb](https://wordpress.org/support/users/flo_sb/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Notes Plus] extra styling for notes when placed under description instead of separate column](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/)
 *  Thread Starter [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/extra-styling-for-notes-when-placed-under-description-instead-of-separate-column/#post-15552984)
 * That is how I made it look, [@todindiana](https://wordpress.org/support/users/todindiana/).
   
   You can do that too *if you have a child theme* and knowledge to edit functions.
   php
 * Pasting 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 4 years, 1 month ago by [flo_sb](https://wordpress.org/support/users/flo_sb/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Memcached tests when use sasl](https://wordpress.org/support/topic/memcached-tests-when-use-sasl/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/memcached-tests-when-use-sasl/#post-15120762)
 * Thank you for the fix donpiluso, it works now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[reCaptcha by BestWebSoft] Arrow functions do not work in ie11](https://wordpress.org/support/topic/arrow-functions-do-not-work-in-ie11/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/arrow-functions-do-not-work-in-ie11/#post-12838862)
 * Think 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-11](https://stackoverflow.com/questions/57378640/recaptcha-v3-not-feeding-response-token-object-in-ie-11)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing] disabling gtag](https://wordpress.org/support/topic/disabling-gtag/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/disabling-gtag/#post-12267172)
 * I second this.
    I believe the usage of 2x gtag.js installs cripples our custom
   coded events. I would like to use [send_to parameter](https://developers.google.com/analytics/devguides/collection/gtagjs/sending-data)
   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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] 1 :print_script_block_data in wp_print_footer_scripts destroys memory usage](https://wordpress.org/support/topic/1-print_script_block_data-in-wp_print_footer_scripts-destroys-memory-usage/)
 *  Thread Starter [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/1-print_script_block_data-in-wp_print_footer_scripts-destroys-memory-usage/#post-11882347)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Error trying to send… Contact Form Update](https://wordpress.org/support/topic/error-trying-to-send-contact-form-update/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-trying-to-send-contact-form-update/#post-11366322)
 * yep, it’d be nice to be able to pick between recaptcha v2 and v3
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] “Invalid ZIP entered” error](https://wordpress.org/support/topic/invalid-zip-entered-error/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-zip-entered-error/page/2/#post-11196247)
 * cool, thanks 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] “Invalid ZIP entered” error](https://wordpress.org/support/topic/invalid-zip-entered-error/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-zip-entered-error/#post-11181616)
 * oakhillman, 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.php
 *     ```
       if( (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: [http://46.101.185.20/product/test-product/](http://46.101.185.20/product/test-product/)
   
   Either way
    -  This reply was modified 7 years, 3 months ago by [flo_sb](https://wordpress.org/support/users/flo_sb/).
    -  This reply was modified 7 years, 3 months ago by [flo_sb](https://wordpress.org/support/users/flo_sb/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] “Invalid ZIP entered” error](https://wordpress.org/support/topic/invalid-zip-entered-error/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-zip-entered-error/#post-11180237)
 * So 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/82deKVa5CpY](https://youtu.be/82deKVa5CpY)
 * I’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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] “Invalid ZIP entered” error](https://wordpress.org/support/topic/invalid-zip-entered-error/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-zip-entered-error/#post-11179754)
 * Hello 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] “Invalid ZIP entered” error](https://wordpress.org/support/topic/invalid-zip-entered-error/)
 *  [flo_sb](https://wordpress.org/support/users/flo_sb/)
 * (@flo_sb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-zip-entered-error/#post-11178910)
 * oakhillman, 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 ([http://itvolcano.com/screenshots/2019-02-07_11-59-34_4.png](http://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 session
 * Note: 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.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/flo_sb/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/flo_sb/replies/page/2/?output_format=md)