Top WooCommerce & WordPress Plugins › Forums › Custom Emails for WooCommerce › Order Details without HTML
- Support forum for the Custom Emails for WooCommerce.
- This topic has 3 replies, 1 voice, and was last updated 4 months, 2 weeks ago by
Katie Moreno.
- AuthorPosts
-
May 10, 2023 at 4:31 am #114768
Katie Moreno
ParticipantHello,
I am trying to send a custom email after an order is placed to my dropship company.
For the order to be placed in their automated system, they need it in the following format:
fname: {shipping_first_name}
lname: [shipping_last_name]
address1: [shipping_address_1]
address2: [shipping_address_2]
city: [shipping_city]
state: [shipping_state]
zip: [shipping_postcode]
country: [shipping_country]
email: [customer_email]Is it possible to add the information needed as individual shortcodes? (The ones above are just the WC field titles I think?)
The [order_shipping_address] “prints” with < br > and their system rejects it due to the HTML.
May 10, 2023 at 4:42 am #114769Katie Moreno
ParticipantI was able to find the func code in the forums and got it all to work with this format, but I cannot get email to display. Please advise:
fname: [order_func func="get_shipping_first_name"]
lname: [order_func func="get_shipping_last_name"]
address1: [order_func func="get_shipping_address_1"]
address2: [order_func func="get_shipping_address_2"]
city: [order_func func="get_shipping_city"]
state: [order_func func="get_shipping_state"]
zip: [order_func func="get_shipping_postcode"]
country: [order_func func="get_shipping_country"]
email: [order_func func="get_customer_email"]May 10, 2023 at 4:47 am #114770Katie Moreno
ParticipantNevermind – got it. Commenting in case it helps someone else looking. I used:
email: [order_func func="get_billing_email"]
It would be SUPER HELPFUL to include a link to this page on the shortcode list, so we’re not having to search aimlessly, especially for a paid plugin.
- This reply was modified 4 months, 2 weeks ago by
Katie Moreno.
May 12, 2023 at 11:14 pm #114954Katie Moreno
ParticipantHow can I use [order_func] to get it to display a quantity for a specific product id? I have tried
[order_func func="get_item_count(item_id="17438")"]
[order_func func="get_item_count($item_id="17438")"]
[order_func func="get_item_count($item_id = '17438' )"]
- This reply was modified 4 months, 2 weeks ago by
- AuthorPosts
- You must be logged in to reply to this topic.