Joe G.
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Invalid address (setFrom)Ewout,
Thank you for the reply. I agree with you that the error message WP Mail Logging is providing is not helpful and likely not accurate. However, the issue it not with WP Mail Logging – the issue was occurring before I installed it; I installed it merely to try and identify some patterns. (I’m also not using resending.)
There are also no PDF Invoice filters at play that I am aware of.
When I unchecked all email attachments, there are no errors and mail goes through as expected.
When invoice attachments are activated, mail fails somewhere within either WooCommerce or WP proper. The mail never makes it out of my server to the Mailgun servers (as indicated by their logs.) However, Woocommerce thinks it is successful and does not return an error message.
I just triple checked and it is almost certainly a plugin conflict between Mailgun and PDF Invoices (in the context of Woocommerce).
To recap, the only time the issue is present is under the following circumstances
- All 3 plugins are active and properly configured: Woocommerce, PDF Invoices, Mailgun
- Invoice attachments are set for Woocommerce Mail
- Mail is triggered involving one of the attachments.
Has there been some sort of update lately to the way WordPress handles attachments? This used to work perfectly fine with the aforementioned set up.
- This reply was modified 7 years, 1 month ago by Joe G..
Forum: Plugins
In reply to: [Single Category Permalink] Woocommerce4. Additionally, is there a reason the category_link filter is being used even though it is listed as deprecated https://developer.ww.wp.xz.cn/reference/hooks/category_link/ ?Just curious!
Forum: Plugins
In reply to: [Quotes for WooCommerce] Request New Quote in double email frameYou’re welcome @pinalshah; in my opinion, you might want to go with the order notes next time anyway because that will include a record of what has happened with the order. Just my preference though.
Forum: Plugins
In reply to: [Insert Pages] Insert Page Shortcode in TemplateYup! That works… I always forget that I need to include the echo. I think the “do_” throws me off.
Forum: Plugins
In reply to: [Quotes for WooCommerce] Request New Quote in double email frame@thematsanity I had the same issue when I was modifying the plugin. Did not occur with normal Woo emails. Just the emails from the quote plugin. There is something causing it do to a double template.
@pinalshah In my version I opted just to use the native Woo order notes which include the invoice detail. Less work for the plugin to do. Included this in the payment processor.
$order->add_order_note( __( 'This order is awaiting a shipping quote. We will email you once we have completed the quote.', 'quote-wc' ) , 1);Forum: Plugins
In reply to: [Quotes for WooCommerce] Converting Cart to QuoteLast question for the day – is there a particular reason the plugin does not create a new order status called “pending quote” or something like that? As I was writing a modifying plugin, I added the feature before noticing that the plugin checks for the processing status on a few occasions.
If you’re interested, I’ll send you the code and you might be able to include it in a future release.
Forum: Plugins
In reply to: [Quotes for WooCommerce] Converting Cart to QuoteI think I have successfully modified the plugin to accomplish this. Is there anything I am missing? Any red flags?
1. Comment out the qwc_cart_validations method, replace with
$product_quotable = product_quote_enabled( $product_id ); if($product_quotable){ $message = 'This product requires special shipping. Continue to add products to your cart and when you checkout, we will review your order and send you an email with a shipping quote for you to pay and complete your order.'; wc_add_notice( __( $message, 'quote-wc' ), $notice_type = 'notice' ); }2. Add the following in the __construct method
// modify the proceed to checkout button text. Requires modified child template at woo.../cart/proceed-to-checkout-button add_action('woocommerce_cart_proceed_text', array( &$this, 'j5_qwc_change_checkout_button_text'),20); // disable shipping add_filter( 'woocommerce_cart_ready_to_calc_shipping', [&$this, 'j5_qwc_disable_shipping_calc_on_cart'], 99 );3. Add the following methods
/** * Modify the Proceed to checkout button on the cart page * @mod */ function j5_qwc_change_checkout_button_text() { if (cart_contains_quotable()){ esc_html_e( 'Proceed to quote', 'woocommerce' ); }else{ esc_html_e( 'Proceed to checkout', 'woocommerce' ); } } function j5_qwc_disable_shipping_calc_on_cart( $show_shipping ) { if(cart_contains_quotable() ) { return false; } return $show_shipping; }4. Modify the qwc_css method by adding
if ( cart_contains_quotable()) { wp_enqueue_style( 'qwc-frontend', plugins_url( '/assets/css/qwc-disable-shipping.css', __FILE__ ), '', $plugin_version, false );}5. Create the relevant stylesheet hiding the shipping row
Forum: Plugins
In reply to: [Quotes for WooCommerce] Converting Cart to QuoteIt seems that simply disabling WC()->cart->empty_cart(); within the qwc_cart_validations method achieves this affect. Is there any risks in doing this?
Thank you, Sybre! I was afraid of that…
So, my next step sounds like waiting for the error to happen again, then using “Rewrite Tools Inspector” to hunt down the bug, and fall back on deactivating / reactivating TSF for the refresh/flush capability as a temporary fix?
Update: deactivating then immediately reactivating the SEO Framework has fixed the issue. Very odd! Any help to prevent this from happening again?
Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] Set Primary TermHi Sybre, thank you for the response.
I understand how to do the above using the admin. But, I need to do this for thousands of existing products (using woocommerce).
Is there a TSF hook I could use to do this, or do I just need to write a custom script to set the WP metadata?
God it. I’ll give it a try! Thanks so much.
That makes sense. One more question for you: when a user adds a new product to the cart, it would seem to bust this cache and recalculate the rates. I’ve witnessed it a few times when ‘add to cart’ is extremely slow because it is getting hung up on an external API lag (i.e. RL). Do you know if it is possible to hold off on recalculating the rates until absolutely necessary on /cart or /checkout, even when there is a change to the cart?
Interesting to know! I’ll add that snippet to the RL Plugin for sure.
Also, we had an outside firm write a custom plugin to control some of our shipping logic. It uses the
woocommerce_package_rateshook. Do you know if that hook forcescalculate_totals?Thanks so much for your help. I’m not a professional WP / Woo developer and have been trying to debug this for a while.
Hi Logan, I’ve been having performance issues across the board with R&L and my other shipping plugins as well. On my end, it seems that woocommerce is attempting to calculate shipping (and therefore load all the R&L stuff) on each and every call. The USPS plugin seems to have some logic to prevent this, but the UPS and RL plugin have no such features. The WP Heartbeat and the /ajax-admin are really draining our resources because of this.
Do you know a way to disable the Woo shipping logic all together except when it is called from the /cart or /checkout or elsewhere where it is actually necessary?
Thanks!