custom-fields

Make custom checkout fields appear as editable in Woocommerce admin order single pages

泄露秘密 提交于 2019-12-24 10:27:56
问题 I added fields to the WooCommerce Checkout field; Some with a plugin ( WooCommerce Checkout Field Editor and WooCommerce Checkout Add-Ons ) and others with a function. I can export these fields to CSV, but How can I edit them in the order admin page? Sometimes I a user might forget to add their ClientCode or ID Number, and then I want to be able to manually add it. Thank you Schalk 回答1: If you want to add existing custom checkout billing and shipping fields to the editable order shipping and

Add email recipients from wc field factory for woocommerce email notification

佐手、 提交于 2019-12-24 09:56:52
问题 I am selling a course product using woocommerce. The course uses wc fields factory for custom product fields for student name and student email address. The field name for student email address is "student_email". I am then trying to take the value from that field (the email address) and use that as the recipient for an email from woocommerce upon the purchase of this product. The values inputted do show up on the cart page, the order receipt emails, etc. The custom email template I set up

Add a custom multi-select field to admin product options settings in Woocommerce

萝らか妹 提交于 2019-12-23 23:29:24
问题 I have followed this answer How to add more custom field in Linked Product of Woocommerce to add a custom select field to my Linked Product screen in Woocommerce. This new field is meta key is subscription_toggle_product . It's working fine, but once you have selected a product, you can't delete it (there is no "Empty" option or cross symbol). I haven't got a clue how I can allow the selection to be deselected. I've tried adding an <option> with an empty value, but it hasn't worked. Here is

How to create custom Field with transition workflow in TFS

拈花ヽ惹草 提交于 2019-12-23 21:05:00
问题 How to create a custom field in TFS having transitions for each values for e.g. I want to create a new custom field say Custom Status with values New,Approved,Assigned,Work Started and also want to assign custom transitions for this field Is it possible to do so ? 2) Is it possible to assign some transitions to some other existing field for e.g. Priority 回答1: No, it is not possible. The only field that can have transmissions is the state field. You can have the state transitions influence

Send custom notification In Woocommerce edit order pages repetition issue

混江龙づ霸主 提交于 2019-12-23 03:37:00
问题 I created "email notifier for order tracking" plugin for woocommerce. All works fine and when I save tracking number, it sends an email to customer. But when I save another field in order page, it sends email again. How can I fix it? add_action('add_meta_boxes', 'kargo_takip'); function kargo_takip() { add_meta_box('kargo_takip_meta_box', 'Kargo Takip', 'kargo_takip_meta_box_ekle', 'shop_order', 'side', 'high'); } function kargo_takip_meta_box_ekle() { global $post; $meta_field_data = get

Get a custom field array values within WooCommerce email order meta

爱⌒轻易说出口 提交于 2019-12-23 01:54:32
问题 I am using the FooEvents plugin to capture event attendee information on WooCommerce event products. When an order is placed, that plugin is saving the attendee information to the WooCommerce order meta as a custom field Array. Using the Post Meta Inspector plugin, I am able to see that the attendee information is being saved as a meta key of WooCommerceEventsOrderTickets and with a value of: 'a:1:{i:1;a:1:{i:1;a:18:{s:26:"WooCommerceEventsProductID";i:454;s:24:"WooCommerceEventsOrderID";i

Woocommerce custom fields won't update when I leave them empty and still displays empty fields

霸气de小男生 提交于 2019-12-22 12:08:05
问题 I added a custom field to a single product page for woocommerce in order to show ISBN number for the books I sell. I found a nice guide and managed to add everything as I want. However when I empty the custom field for ISBN it won't go empty on the site. I have the following code in the functions.php // Display Fields add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); // Save Fields add_action( 'woocommerce_process_product_meta', 'woo_add_custom

WORDPRESS: Calendar with custom post type + custom fields

为君一笑 提交于 2019-12-22 06:50:01
问题 here's my situation: my client's wordpress site has an "events" custom post type with a custom field called "date" (advanced custom field's datepicker). The site works just fine in all its parts but now they asked me to add a widget-like calendar that fetches all the events. Basically what i need is something like get_calendar(); but for the "events" post type that uses the "date" custom field instead of the creation date. I spent the whole day yesterday looking for a plugin, hack, snippet of

PHP DOMDocument : How to parse xml/rss Tags with CUSTOM field names?

怎甘沉沦 提交于 2019-12-21 23:40:41
问题 I have the below RSS to parse, something like: <?xml version="1.0" encoding="utf-8"?> <rss xmlns:x-wr="http://www.w3.org/2002/12/cal/prod/Apple_Comp_628d9d8459c556fa#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:x-example="http://www.example.com/rss/x-example" xmlns:x-microsoft="http://schemas.microsoft.com/x-microsoft" xmlns:xCal="urn:ietf:params:xml:ns:xcal" version="2.0"> <channel> <item> <title>About Apples</title> <author>David

Display a custom product field before short description in WooCommerce

时间秒杀一切 提交于 2019-12-21 06:06:27
问题 I've a problem with adding a new field in WooCommerce, before short description. I used script in functions.php and my new custom field is displayed correctly but: Short description disappear when use script, a new field is display fine. I can edit the content of a field on a product page, but I can't delete it. It is always the last value. How can I display this custom field without removing the product short description? How can I reset this custom field content? Here is my code: // Add a