hnwp
Forum Replies Created
-
Forum: Plugins
In reply to: [Facebook for WooCommerce] Push API Calls to Action SchedulerI 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
In reply to: [Code Snippets] URL Not Changed When Adding New SnippetThat’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
In reply to: [Code Snippets] Characters getting encoded to HTML entitiesI’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
In reply to: [WooCommerce] Move Billing Inputs to Shipping FieldAny solution to this?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce cart coupon glitchyWhat’s the URL to check it out?
Forum: Plugins
In reply to: [WooCommerce] Rating Count Postmeta Incorrect in Database@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 5 years, 10 months ago by hnwp. Reason: Misspelling
Forum: Plugins
In reply to: [WooCommerce] Rating Count Postmeta Incorrect in Database@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
In reply to: [WooCommerce] Rating Count Postmeta Incorrect in DatabaseActually, 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
In reply to: [WooCommerce] Rating Count Postmeta Incorrect in Database@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
In reply to: [WooCommerce] Rating Count Postmeta Incorrect in DatabaseBump
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
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
In reply to: [WooCommerce] Woocommerce_mini_cart Add to Cart ISsueFound 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
In reply to: [WooCommerce] Woocommerce_mini_cart Add to Cart ISsueThe 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
In reply to: [WooCommerce] Woocommerce_mini_cart Add to Cart ISsueHi 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 6 years, 7 months ago by hnwp.
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
When it pops up, I press “no”, and refresh the page, it still repeats.
Sincerely,
Jordan