brijesh24
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
I just raised a ticket. Thank you for looking into this.
Got it. I came up with the code below with help of Chat GPT and it works well. Thank you for the help.
add_action('woocommerce_email_order_meta', 'add_transaction_id_to_admin_email', 20, 4);
function add_transaction_id_to_admin_email($order, $sent_to_admin, $plain_text, $email) {
// Check if the email is being sent to the admin
if ($sent_to_admin && isset($email) && $email->id === 'new_order') {
// Get the transaction ID from the order object
$transaction_id = $order->get_transaction_id();
// Only display the transaction ID if it exists
if ($transaction_id) {
if ($plain_text) {
// For plain text emails
echo "Transaction ID: " . $transaction_id . "\n";
} else {
// For HTML emails
echo '<p><strong>Stripe Transaction ID:</strong> ' . esc_html($transaction_id) . '</p>';
}
}
}
}Forum: Plugins
In reply to: [Advanced Local Pickup for WooCommerce] Remove Business Hours TableSounds good. Thank you!
Thank you for your support. I was able to make it work.
Thanks again.
Yes, that worked well.
Can I have it in 2 columns? Any class for that?
Thanks for the quick reply.
I have the plugin installed and activated. Where in the Gravity forms backend do I enter your shortcode?
I have added a number field. So where in the number field can I add the shortcode?
Thanks a lot.
Viewing 6 replies - 1 through 6 (of 6 total)