and by the way I am on a paid plan.
]]>Is something like the linked website possible woocommerce? I’ve google but can’t seem to find something similar. I’m referring to the buttons that display a custom field on click
]]>This plugin only allows ONE custom field. And I would like to have the title of the custom fields. Can anyone help me to do this?
Here is the code that does this,
Thanks,
/**********************************
* Product Custom Field
**********************************/
add_filter('dp_field_meta','dp_field_customField_cb',10,2);
function dp_field_customField_cb($id,$col)
{
global $product,$dp_meta;
$custom=get_post_meta($id,$dp_meta['meta_key'],true);
switch ($dp_meta['type'])
{
case 'text' :
$output= html_entity_decode($custom);
break;
case 'image' :
$output='<img src="'.$custom.'" />';
break;
case 'shortcode' :
$output= do_shortcode($custom);
break;
}
return $output;
}
]]>I am using the following code in my functions.php file:
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_purchase_order', 10, 2 );
function wpo_wcpdf_purchase_order ($template_type, $order) {
if ($template_type == 'invoice') {
?>
<tr class="purchase-order">
<th>Purchase Order Number:</th>
<td><?php wccf_print_checkout_field_value(array('key' => 'purchase_order_number')); ?></td>
</tr>
<?php
}
}
However the value does not show in the invoice.
According to their documentation, I am using the right code to display the value:
https://support.rightpress.net/hc/en-us/articles/115000163123-How-to-display-field-or-field-value-on-custom-pages-
Can you kindly help?
Thank you very much.
Cheers
]]>I’m wondering if someone can help me with having to add custom fields to woocommerce products.
Here’s a video I made demonstrating my problem:
https://www.screencast.com/t/3nLZgJ9zaPCU
If someone can point me in the right direction I would greatly appreciate it.
Thanks,
Matt
]]>I follow the tutorial for add custom fields on checkout process:
https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
How can I add a simple date field?
Thanks in advance
]]>