I need to append a text string to the order title when an order is placed in Woocommerce - Wordpress Solution
[Solved] - I need to append a text string to the order title when an order is placed in Woocommerce - Wordpress Solution |
---|
Try following codes |
I need to append a text string to the order title when an order is placed in Woocommerce.
In order to send extra order data to our accounting software (Sage), I am using a plugin; Woosage as the bridge. Woosage requires this extra data to be appended to the title of the product.
I suspect I need to hook into the woocommerce_checkout_create_order.
Attached is what I am trying to achieve (apparently this site doesn't include my attachments).
![]() Solution - 1Can you please explain what extra info you want to add? Solution - 2use el gancho de woocommerce para cuando se realiza el pedido y allí realiza la modificación que necesita Solution - 3Hello Keith, This code will do the trick (tested and works) The result : https://prnt.sc/yom2hx Regards Solution - 4If you want to append text to "Product" title, then use this filter: However, if you are looking to edit the Order title (and not the product title), then you can use this filter: Does this solve your problem? Solution - 5you will use some static or dynamic text, it requires that in the database it be saved with the name you need? Solution - 6You must added the input field and send it's value to append it to the order title |
Date: 2022-10-21 04:51:03 |
Category: Wordpress |