Questions tagged [custom-fields]

WordPress custom fields: author-entered post metadata

Related links

WordPress Documentation: Custom fields

1518 questions
5
votes
1 answer

Custom fields on woocommmerce checkout page

I'm trying to put two custom fields at the top of the woocommerce checkout (ideally it was the cart page but I can't find anything online about this being possible) I've got the two custom fields to appear on the checkout page but with VERY limited…
Kyle
  • 53
  • 4
5
votes
1 answer

WooCommerce validate coupon by expiry date and time

I am using woocommerce and I wanna validate a coupon not only by the default built-in expiry date checking, but also expiry time as well. I have added a custom field to coupons, that allows to set an expiry time. I wrote the following code snippet…
Hugo1280
  • 53
  • 1
  • 5
5
votes
1 answer

How to add a custom field to orders in Shopware 6?

By default you can add custom fields to several entities, however I don’t see the order entity in the list of available entities. Is it possible to add such a field for order so user can fill it in the checkout process, right before sending the…
David
  • 553
  • 6
  • 21
5
votes
2 answers

Django custom field with multiple inheritance

I have two custom Django fields, a JSONField and a CompressedField, both of which work well. I would like to also have a CompressedJSONField, and I was rather hoping I could do this: class CompressedJSONField(JSONField, CompressedField): …
simon
  • 15,344
  • 5
  • 45
  • 67
5
votes
2 answers

Include custom fields value in woocommerce search

I tried include custom fields value in woocommerce search but i have a problem. On Google and Stack too, i saw examples with pre_get_posts, so i thought this is good direction and i made code like this: function custom_search( $query ) { if( !…
kanlukasz
  • 1,103
  • 19
  • 34
5
votes
2 answers

Add custom fields as cart item meta and order item meta in WooCommerce

This is a plugin on how to add add cart item meta & order item meta for my WooCommerce order. Initially my code below worked well for input type=text. It returns the label for value and the inputed value. On conversion to type=checkbox the code…
omukiguy
  • 1,401
  • 3
  • 17
  • 36
5
votes
1 answer

Add a custom checkbox in WooCommerce checkout which value shows in admin edit order

I try to add an which value also shows at the woocommerce backend, so I can see at the end if the costumer ticked the box or not. The checkbox should be below the Payment Methods. Is it possible to add a custom checkbox in…
sHamann
  • 789
  • 3
  • 10
  • 36
5
votes
1 answer

WooCommerce admin order edit save post

In WooCommerce, when I submit, how to catch a custom select field added in the order edit admin pages? I have added this custom select field in the file class-wc-meta-box-order-data.php. I get this: But I dont know how to catch or to save…
Xie Jinghao
  • 53
  • 1
  • 3
5
votes
1 answer

Admin product pages custom field displayed in Cart and checkout

I have created a Custom Field in WooCommerce Admin on the general settings tab of product pages, to insert a some days for manufacture. I would like to show this custom field value on cart and checkout pages above the name of each product. Here is…
Felipe Honorato
  • 159
  • 1
  • 9
5
votes
3 answers

How to set custom post type field as post title to avoid 'Auto Draft'

I am using the Advanced custom fields plugin and Custom post type UI to give my users some extra functionality. The problem I have is that I have setup a users information menu and in the list view all new posts appear as Auto Draft. Is there anyway…
Dinesh
  • 197
  • 1
  • 12
5
votes
5 answers

How to display extra fields in article with K2

currently I've got Jreviews installed and I'd like to replace it by K2 to list specialized shops with addresses, phones, maps, opening hours ... With K2 I guess I'll need to define extra custom fields to hold those specific information. No…
Tibi
  • 435
  • 1
  • 3
  • 16
5
votes
2 answers

Jira python set custom field

I have a problem when I'm trying to set a value on a custom field in JIRA it returns me this error: File "c:\python27\lib\site-packages\jira\resilientsession.py", line 45, in raise_on_error r.status_code, error, r.url, request=request, response=r,…
J.C Julien
  • 153
  • 2
  • 10
5
votes
1 answer

WORDPRESS: Calendar with custom post type + custom fields

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…
m_moloch
  • 51
  • 1
  • 2
5
votes
1 answer

Custom model field rendering in Django template

I have extended django-markdown with a custom model field which allows one to define classes: from django.db import models from django_markdown.fields import MarkdownField class MyModel(models.Model): text = MarkdownField() class…
cazgp
  • 1,538
  • 1
  • 12
  • 26
5
votes
3 answers

How to use JIRA AUI functions in my own custom field - velocity edit.vm

I am trying use some AUI in my JIRA - in edit mode of my own custom field written in JAVA. I found this page: https://docs.atlassian.com/aui/latest/sandbox/# and in future I would like to use set an example…
ganoes
  • 73
  • 1
  • 8