custom-fields

JIRA Plugin: Where to start

☆樱花仙子☆ 提交于 2019-12-02 14:48:17
问题 I was asked to create a simple JIRA plugin that combines Workflow + Custom Fields + Conditional Steps I just started installing JIRA and finally managed to create a run a simple Hello World Plugin. I am already confused with how huge this interface is, and cannot seem to be able to grasp the big picture Could any of you send me to the right direction? An idea on what could include all these? 回答1: It might be a good idea to start with the scriptrunner plugin. This enables you to write custom

JIRA Plugin: Where to start

回眸只為那壹抹淺笑 提交于 2019-12-02 08:01:53
I was asked to create a simple JIRA plugin that combines Workflow + Custom Fields + Conditional Steps I just started installing JIRA and finally managed to create a run a simple Hello World Plugin. I am already confused with how huge this interface is, and cannot seem to be able to grasp the big picture Could any of you send me to the right direction? An idea on what could include all these? It might be a good idea to start with the scriptrunner plugin. This enables you to write custom groovy scripts for workflow conditions, validators, post-functions, listeners and many more. The advantage is

Save WooCommerce Order Product Name to User Meta Custom Field

为君一笑 提交于 2019-12-02 06:21:32
问题 Caveat: I'm a solo freelance designer not a developer ;-) I've created a custom field in the Wordpress user meta called membership . I've tried the following code to save the WooCommerce Product Name to the membership custom field on checkout with help from this answer. Updated attempt : function wascc_woocommerce_checkout_update_user_meta_membership ( $customer_id, $posted ) { if (isset($posted['$orderid'])) { $order = $posted['$orderid']; } $theorder = new WC_Order( $order ); $items =

Orderby ACF custom field date don't work

风流意气都作罢 提交于 2019-12-02 03:15:33
I view the other post but I found nothing, I'm on since 3 days : I want display 3 'evenements' in the order ASC but 2018 is always before 2017 $auj = date('Ymd'); $queryEvent = new WP_Query( array( 'category_name' => 'evenements', 'posts_per_page' => 3, 'meta_key' => 'date_de_fin', 'orberby' => 'meta_key', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'date_de_fin', 'value' => $auj, 'compare' => '>=', ), ) ) ); ?> someone has an idea ? I have updated your code .Please try your updated query. <?php $auj = date('Ymd'); $queryEvent = new WP_Query( array( 'category_name' => 'evenements'

Required custom WooCommerce checkout fields don't validate entered value

走远了吗. 提交于 2019-12-02 02:57:47
I'm adding WooCommerce custom checkout fields in a Storefront child theme functions.php file. They have a "required" attribute. The aim is to have these fields appear at the top of the page, before the billing fields. when clicking the submit button to proceed to payment, I'm getting the required custom field validation error ('please fill in your name') and can't continue with payment, even though filling the field with valid data. Any clue how to fix this or where to start debugging ? here is the code in functions.php : add_action( 'woocommerce_before_checkout_form', 'my_custom_checkout

Save WooCommerce Order Product Name to User Meta Custom Field

烈酒焚心 提交于 2019-12-02 01:34:14
Caveat: I'm a solo freelance designer not a developer ;-) I've created a custom field in the Wordpress user meta called membership . I've tried the following code to save the WooCommerce Product Name to the membership custom field on checkout with help from this answer . Updated attempt : function wascc_woocommerce_checkout_update_user_meta_membership ( $customer_id, $posted ) { if (isset($posted['$orderid'])) { $order = $posted['$orderid']; } $theorder = new WC_Order( $order ); $items = $theorder->get_items(); foreach ( $items as $item ) { $product_name = $item['name']; } if (!(empty($product

Translate custom labels fields in function.php file of my theme

巧了我就是萌 提交于 2019-12-01 20:53:34
With the help from the community, I have succeeded to create, save and print the labels and their values to the single product page. I can also translate the input values into different languages using Polylang , but translating the custom labels (Conditions and Brands) is extremely hard. Anyone out there can help me with these issues? I tried to use Polylang , Saywhat ...with no success! Here is the code: // Enabling and Displaying Fields in backend add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); function woo_add_custom_general_fields() {

WooCommerce - Custom notice on Thankyou and “My account” view order pages

淺唱寂寞╮ 提交于 2019-12-01 12:21:36
On WooCommerce I have a custom field days_manufacture for each product with different (integer) values. Also I Have this code that displays a message on cart page with the highest value of "days of manufacture" : add_action('woocommerce_before_cart', 'days_of_manufacture'); function days_of_manufacture() { $day_txt = ' ' . __('day', 'your_theme_domain_slug' ); $days_txt = ' ' . __('days', 'your_theme_domain_slug' ); $text = __('Your Order will be produced in: ', 'your_theme_domain_slug' ); $max_days = 0; foreach( WC()->cart->get_cart() as $cart_item ) if($cart_item['days_manufacture'] > $max

Setting custom fields using the PSI - Microsoft Project Server

佐手、 提交于 2019-12-01 11:52:16
问题 I'm new to Project Server development and was wondering if you can use the PSI to set resource custom field values. I can't seem to find any information for a beginner at this. I currently have web references set up for the CustomFields and the Resource web service, but am unsure how to set a custom field for a particular resource. Any help would be really appreciated! Thanks! 回答1: I know your problem. Microsoft has really bad examples on MSDN. Lot of stuff doesn't work or has just been

Save and display product custom data in emails & orders pages in WooCommerce

为君一笑 提交于 2019-12-01 11:20:51
I'm using some code to add custom fields to enable my customers to customize their products. Here's my current code: /* Add meta fields to all products */ /* SRC: https://wisdmlabs.com/blog/add-custom-data-woocommerce-order-2/ */ /* Step 1: Adding Custom Field for Product */ add_action('woocommerce_before_add_to_cart_button','rs_add_custom_fields'); /** * Adds custom field for Product * @return [type] [description] */ function rs_add_custom_fields() { global $product; ob_start(); ?> <div class="wdm-custom-fields"> <input type="text" placeholder="neutral_bag_count" name="neutral_bag_count">