Title: hnwp's Replies | WordPress.org

---

# hnwp

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Meta for WooCommerce] Push API Calls to Action Scheduler](https://wordpress.org/support/topic/push-api-calls-to-action-scheduler/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [2 years ago](https://wordpress.org/support/topic/push-api-calls-to-action-scheduler/#post-17814676)
 * I don’t have any screenshots, but I measured the time elapsed via microtime()
   before and after woocommerce_add_to_cart and saw a 2-5 second time delay.
 * Can we push this api call to the background?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] URL Not Changed When Adding New Snippet](https://wordpress.org/support/topic/url-not-changed-when-adding-new-snippet/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/url-not-changed-when-adding-new-snippet/#post-17053490)
 * That’s great. Thank you so much.
 * One other thing from a UX perspective: Could you maybe add a fixed-position saved
   notification instead of just the message at the top?
 * If I’m in the middle of a long code snippet and I press Ctrl + S, I have no assurance
   that the snipped was saved. Perhaps either a fixed, floating saved notification(
   e.g. toast notification), or some other visual feature to the code mirror box(
   like Woocommerce’s block() w/ reduced opacity).
 * P.S. I think the active/inactive status bar (green or gray border) for the snippet
   should be on the left side other than the right (like it was before), as that’s
   where the eyes go when looking at the title of the snippet–just like the saved
   message notification.
 * Thanks again for your great work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Characters getting encoded to HTML entities](https://wordpress.org/support/topic/html-entities-getting-encoded/)
 *  [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/html-entities-getting-encoded/#post-17045335)
 * I’ve also seen this happen. It’s definitely a plugin issue. It happen after I
   tried to update a snippet with & in it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Move Billing Inputs to Shipping Field](https://wordpress.org/support/topic/move-billing-inputs-to-shipping-field/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/move-billing-inputs-to-shipping-field/#post-11906746)
 * Any solution to this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Woocommerce cart coupon glitchy](https://wordpress.org/support/topic/woocommerce-cart-coupon-glitchy/)
 *  [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-cart-coupon-glitchy/#post-11906531)
 * What’s the URL to check it out?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Rating Count Postmeta Incorrect in Database](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/#post-11491258)
 * [@serafinnyc](https://wordpress.org/support/users/serafinnyc/) I found the issue(
   and thank you for all your help).
 * Some comments, by human error, had multiple rating values.
 * I had to sort through all the comments with the product and find ones whose meta
   rating was > 1
 *     ```
       if( count( get_comment_meta( $comment->comment_ID, 'rating' ) ) > 1 ) {
       print_r( get_comment_meta( $comment->comment_ID, 'rating' ) );
       }
       ```
   
 * Then, I had to delete the comment meta and re-add it with the correct value by
   looping through each one.
 *     ```
       delete_comment_meta( $comment_ID, 'rating' );
       if ( ! metadata_exists( 'comment', $comment_ID, 'rating' ) ) {
       add_comment_meta( $comment_ID, 'rating', $number );
       }
       ```
   
 * Once updating the page (as I hooked this to action ‘save_post’), everything was
   fixed.
 * That’s the last time I manually tweak the post_meta!
    -  This reply was modified 7 years, 1 month ago by [hnwp](https://wordpress.org/support/users/hnwp/).
      Reason: Misspelling
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Rating Count Postmeta Incorrect in Database](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/#post-11490710)
 * [@serafinnyc](https://wordpress.org/support/users/serafinnyc/) I have created
   my own structured schema data, but I don’t think that’s the problem.
 * I applied these functions, updated my data in postmeta, and then submitted a 
   new review. The postmeta data still reverted to the old, inaccurate numbers.
 * Somewhere in my wordpress database there’s a rating count that’s updating the
   postmeta, and it’s like 4-5 higher than it should be. I don’t think it’s schema-
   related.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Rating Count Postmeta Incorrect in Database](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/#post-11490407)
 * Actually, yes. I have review schema. Would that interfere with the get_rating_count()?
   Does it matter where in the DOM it’s placed?
 * (I also have regular product schema.)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Rating Count Postmeta Incorrect in Database](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/#post-11490268)
 * [@serafinnyc](https://wordpress.org/support/users/serafinnyc/) Right, but the
   41 count is fine. It’s the data-rate that’s wrong:
 * The $product->get_rating_count(5) yields 45, even though the total review count
   is 41.
 * I don’t know why the postmeta “_wc_rating_count” would be higher than the review
   count (“_wc_review_count”).
 *     ```
       <div class="graph__wrapper" data-rating="5" data-rate="45" data-count="41">
           <div class="graph-number">5 star</div>
           <div class="graph-bar">
               <span style="width: 109.75609756098%"></span>
           </div>
           <div class="graph-rating">109%</div>
       </div>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Rating Count Postmeta Incorrect in Database](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/rating-count-postmeta-incorrect-in-database/#post-11490195)
 * Bump
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Speed Optimizer - The All-In-One Performance-Boosting Plugin] Issue with “Hidden from Catalog” Woocommerce Images](https://wordpress.org/support/topic/issue-with-hidden-from-catalog-woocommerce-images/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/issue-with-hidden-from-catalog-woocommerce-images/#post-11295671)
 * Hi Stanimir. Thank you so much!
 * I just removed the wp_kses_post and it now removes the duplicate.
 * A follow-up question at this URL: [https://herbalnitro.com/cart/?add-to-cart=2146](https://herbalnitro.com/cart/?add-to-cart=2146)
 * If you add or remove the quantity of items in the cart, the image no longer loads.
   The same thing occurs if you proceed to checkout and then check “Ship to Different
   Address.”
 * It seems like any time the server updates the cart the images no longer loads.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Woocommerce_mini_cart Add to Cart ISsue](https://wordpress.org/support/topic/woocommerce_mini_cart-add-to-cart-issue/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/woocommerce_mini_cart-add-to-cart-issue/#post-10579099)
 * Found the issue. Silly me.
 * I removed the class “widget_shopping_cart_content”, which is what Woocommerce’s
   js was looking for to remove the blockUI and such.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Woocommerce_mini_cart Add to Cart ISsue](https://wordpress.org/support/topic/woocommerce_mini_cart-add-to-cart-issue/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/woocommerce_mini_cart-add-to-cart-issue/#post-10567590)
 * The only thing “custom” is this, which just updates the cart count.
 *     ```
       //AJAX immediately update number of items in cart
       add_filter( 'add_to_cart_fragments', 'iconic_cart_count_fragments', 10, 1 );
       function iconic_cart_count_fragments( $fragments ) {
   
       	$fragments['span.cart-count'] = '<span class="cart-count">' . WC()->cart->get_cart_contents_count() . '</span>';
           	return $fragments;	
       }
       ```
   
 * Even after commenting this out in my functions.php, the issue still persists.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Woocommerce_mini_cart Add to Cart ISsue](https://wordpress.org/support/topic/woocommerce_mini_cart-add-to-cart-issue/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/woocommerce_mini_cart-add-to-cart-issue/#post-10563487)
 * Hi Lorro.
 * I don’t have any custom javascript ajax functions: they’re just the standard 
   add to cart.
 * Are you suggesting I hook something to the “added_to_cart” function?
 * `$(document.body).on("added_to_cart", function() { };?`
 * I’d have to ajax response to fill in there.
 * I’m assuming woocommerce_mini_cart() doesn’t natively get updated upon adding
   to cart?
    -  This reply was modified 7 years, 10 months ago by [hnwp](https://wordpress.org/support/users/hnwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Hustle - Email Marketing, Lead Generation, Optins, Popups] Cookies Not Working](https://wordpress.org/support/topic/cookies-not-working-8/)
 *  Thread Starter [hnwp](https://wordpress.org/support/users/hnwp/)
 * (@hnwp)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/cookies-not-working-8/#post-10499639)
 * Hi Nastia.
 * Sorry about deactivating it. I couldn’t bear to show my users a broken popup,
   so I deactivated it.
 * I placed it only on a defunct page, [https://herbalnitro.com/news](https://herbalnitro.com/news)
 * When it pops up, I press “no”, and refresh the page, it still repeats.
 * Sincerely,
    Jordan

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

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