darkmatter661
Forum Replies Created
-
Forum: Plugins
In reply to: [Widgets for Google Reviews] Cannot find my Google Business ProfileSame, it can’t find my business so the plugin is useless.
Forum: Plugins
In reply to: [WP Maintenance] Head code not savingThanks, I’ll check it out.
Forum: Plugins
In reply to: [Page Links To] “open in tab” not workingSame problem here. Turning that on simply adds #new_tab to the end of the URL which does nothing.
Update: my bad… ad blocker was on! Turned it off and no issues 😉
- This reply was modified 2 years, 1 month ago by darkmatter661.
Forum: Plugins
In reply to: [WooCommerce] Cart/Checkout stripping HTMLHi @carolm29. The issue/question here is if Woocommerce is actually stripping HTML from the product descriptions and options on cart/checkout.
You didn’t answer that above. Is it the case?
Forum: Plugins
In reply to: [Clever Addons for Elementor] crash site with pro versionSame issue here when I updated the plugin, crashes the whole site when the pro version is enabled.
Forum: Plugins
In reply to: [Ultimate Addons for Elementor] The7 theme issueIt’s definitely the EHF plugin that’s causing the issue. I’ve stopped using it for now.
Thanks Sheena I’ll check it out!
Side question…. have you ever heard of the ability to use multiple payment gateways/methods in one checkout transaction, based on factors such as the products in the cart? For example, Product A is sold strictly via PO Number (such as with your plugin) but Product B in same transaction requires payment via credit card… I wonder if this is even possible with WC.
Thank you Sheena! I’m not using the default WC emails for order notifications. This is what I have for that, as a snippet:
add_action('woocommerce_thankyou', 'action_checkout_order_processed', 10, 1); function action_checkout_order_processed( $order_id ) { // get an instance of the order object $order = wc_get_order( $order_id ); global $woocommerce; $prodhtml="<br><b>Product Details</b> <br>"; foreach ( $order->get_items() as $item_id => $item ) { $product_id = $item->get_product_id(); $itemsbox=get_post_meta($product_id,'itemsbox',true); $prodhtml.="Product Name : ".$item->get_name()."<br>"; $prodhtml.="Product Qty : ".$item->get_quantity()."<br>"; $variation_id = $item->get_variation_id(); if($variation_id) { $prodhtml.="Product SKU : ".get_post_meta( $variation_id, '_sku', true )."<br>"; } else { $prodhtml.="Product SKU : ".get_post_meta( $product_id, '_sku', true )."<br>"; } $prodhtml.="Custom Slug : ".$order->get_meta('ref_custom_slug')."<br>"; $prodhtml.="Sales Rep : ".$order->get_meta('ref_affiliate_name')."<br>"; $prodhtml.="<br>"; } $mailer = $woocommerce->mailer(); $html=''; $html.="<h3 style='text-align:center'>J2 Medical Supply Pick Ticket</h3><b>Order Details</b> : <br>"; $html.="Order Id: ".$order_id."<br>"; $html.="First Name: ".$order->get_shipping_first_name()."<br>"; $html.="Last Name: ".$order->get_shipping_last_name()."<br>"; $html.="Company: ".$order->get_shipping_company()."<br>"; $html.="Payment Method: ".$order->get_payment_method_title()."<br>"; //THIS IS WHERE I'D LIKE TO PLACE THE PO NUMBER $html.="<br><b>Order Amount</b>: <br>"; $html.="Total before tax/shipping: $".$order->get_subtotal()."<br>"; $html.="<br><b>Shipping Address</b> : <br>"; $html.="Address: ".$order->get_shipping_address_1()."<br>"; $html.="City: ".$order->get_shipping_city()."<br>"; $html.="State: ".$order->get_shipping_state()."<br>"; $html.="Zipcode: ".$order->get_shipping_postcode()."<br>"; $html.="Shipping Method: ".$order->get_shipping_method()."<br>"; $shipping = $order->get_shipping_total(); $html.="Shipping Cost: $".$order->get_shipping_total()."<br>"; $html.=$prodhtml; $headers = "From: J2 Medical Supply <[email protected]>\n"; $message = $mailer->wrap_message( // // Message head and message body. sprintf( __( 'Order %s received' ), $order->get_order_number() ), $html ); // Client email, email subject and message. $mailer->send('[email protected]', sprintf( __( 'New Order #%s Pick Ticket' ), $order_id ), $html,$headers ); }See above where I’d like to add the PO number but everything I’ve tried breaks the email being sent.
@sdeoduco Thank you so much!!
Any reason I can’t add this to an existing snippet I run with a custom email script?
Forum: Plugins
In reply to: [Conditional Shipping for WooCommerce] Multiple conditions@wooelements Thanks, I’ve purchased the Pro version of the plugin along with the Pro Packages plugin. I’m trying to find the right solution for this application. Would appreciate any assistance you can provide.
Anyone on this question?
@gordonlangley Yeah that’s the caveat until the author bakes it in. No, haven’t yet figured that out but if it’s in the notification email then the plugin must be injecting that somehow and it’s a matter of finding the code that does it. If you happen to fall on it let us know!
@gordonlangley You’ll need to modify IGFW_Invoice_Gateway.php (plugin) as described in https://gist.github.com/robertmassaioli/765db01077808246fb4e50bcd2656ec6
@robertsanair Works like a charm thanks!!
Question, have you added the PO number into the
$mailer = $woocommerce->mailer();notification email?$html.="GS P.O. Number:".$order->get_igfw_purchase_order_number().;I have no clue where it resides…
- This reply was modified 3 years, 11 months ago by darkmatter661.
- This reply was modified 3 years, 11 months ago by darkmatter661.
@robertsanair Ah, your link flew right over my head 😉 Thanks! I’ll check it out.