Hello, I would need to have a mandatory text field (name and surname) for products. I would need that if a user selects 2 quantities of the same product this field is duplicated for the number of products selected. Is this a supported function? I read your documentation and tested the free version but I did not find this function. Thanks a lot
]]>Hi ! As you can seen, the implementation of the field is not very beautiful. Is there a way to make the field text and the field itself appear above the cart button and not on the same line ?
]]>i am modifying the mailing template of the store, so far it works correctly but it does not show me the input generated in the order in the column (although it appears as a goal under the product). i leave the code to see if you see the error.
defined( ‘ABSPATH’ ) || exit;
$text_align = is_rtl() ? ‘right’ : ‘left’;
$margin_side = is_rtl() ? ‘left’ : ‘right’;
// Get the custom field ‘alg_wc_pif_global_1’
$alg_wc_pif_global_1 = get_post_meta( $order->get_id(), ‘alg_wc_pif_global_1’, true );
foreach ( $items as $item_id => $item ) :
$product = $item->get_product();
$sku = ”;
$purchase_note = ”;
$image = ”;
$color = ”;
$lista_precios = ”;
if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
continue;
}
if ( is_object( $product ) ) {
$sku = $product->get_sku();
$purchase_note = $product->get_purchase_note();
$image = $product->get_image( $image_size );
$color = $product->get_attribute( 'color' );
$lista_precios = $product->get_attribute( 'lista-de-precios' );
}
?>
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align: middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;">
<?php
// Show title/image etc.
if ( $show_image ) {
echo wp_kses_post( apply_filters( 'woocommerce_order_item_thumbnail', $image, $item ) );
}
// Product name.
echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) );
// SKU.
if ( $show_sku && $sku ) {
echo wp_kses_post( ' (#' . $sku . ')' );
}
// allow other plugins to add additional product information here.
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );
wc_display_item_meta(
$item,
array(
'label_before' => '<strong class="wc-item-meta-label" style="float: ' . esc_attr( $text_align ) . '; margin-' . esc_attr( $margin_side ) . ': .25em; clear: both">',
)
);
// allow other plugins to add additional product information here.
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );
?>
</td>
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php
$qty = $item->get_quantity();
$refunded_qty = $order->get_qty_refunded_for_item( $item_id );
if ( $refunded_qty ) {
$qty_display = '<del>' . esc_html( $qty ) . '</del> <ins>' . esc_html( $qty - ( $refunded_qty * -1 ) ) . '</ins>';
} else {
$qty_display = esc_html( $qty );
}
echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) );
?>
</td>
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php echo wp_kses_post( $color ); ?>
</td>
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php echo wp_kses_post( $lista_precios ); ?>
</td>
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php echo wp_kses_post( $alg_wc_pif_global_1 ); ?>
</td>
</tr>
<?php
if ( $show_purchase_note && $purchase_note ) {
?>
<tr>
<td colspan="5" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php
echo wp_kses_post( wpautop( do_shortcode( $purchase_note ) ) );
?>
</td>
</tr>
<?php
}
?>
get_customer_note(); // Display customer note at the bottom of the table if ( $customer_note ) : ?>
]]>In my site the input field value doest apepars in cart checkout and mail.
Hi, I need to print the value of a custom field (text) to a pdf. I noticed the values are saved as an array in the table wp_wc_orders_meta under the meta key “alg_wc_pif_local“. How can I retrieve the value only?
]]>I need to limit the times available for pick up to just the hours the store is open.
Does anyone have any idea how to do that? I have scoured YouTube, Googled it, just can’t find any directions on how to do it.
]]>Hi, there seems to be a problem with the plugin. If the field textarea is use on several products it is only displayed in the cart for the first product.
]]>Hello,
We have discovered that when using the PayPal payment method that is built into the WooCommerce plugin, the input field is not shown on the “New Order” email that we are sent.
However, if the “WooCommerce PayPal Payments” or the “WooCommerce Stripe Gateway” plugins are used the field is shown on the “New Order” email.
Unfortunately we cannot use “WooCommerce Stripe Gateway” because it has a bug that prevents some users from paying.
Please advise how we can get the input field to show on the “New Order” email when using the default PayPal payment method that is built into the WooCommerce plugin.
Thank you,
Oliver
]]>Hi,
By default the plugin show the input fields in the “New Order” email. I need to show them also in another order status email. How can we do that? Is there any hook to force the meta data appear on specific email templates? We can edit the template with php too.
Thanks
]]>Hi
With latest versions of your plugin (1.5.0) and woocommerce, product input fields would not appear on emails. To fix that you should add this line:
add_action( 'woocommerce_order_item_meta_end', array( $this, 'output_custom_input_fields_in_admin_order' ), 10, 3 );
at line 70 of includes/class-alg-wc-pif-main.php
Cheers
]]>Hi,
We’re getting quite a few of these notices …
[19-Aug-2023 16:22:11 UTC] E_WARNING: strpos(): Empty needle in /wp-content/plugins/product-input-fields-for-woocommerce/includes/alg-wc-pif-functions.php on line 141
Please advise.
Many thanks,
Oliver
]]>Hi. The javascript (includes/js/tyche-dismiss-tracking-notice.js) is delaying the admin panel load times.
I have currently commented out the affected code in the file (includes/class-alg-wc-pif-tracking.php) to stop the javascript from loading.
wp_enqueue_script(
'pif_ts_dismiss_notice',
plugins_url( '/includes/js/tyche-dismiss-tracking-notice.js', FILE ),
'',
ALG_WC_PIF_VERSION,
false
);
It would be nice if a developer could address the problem. Many thanks and best regards ??
]]>Hi, after updating plugin to the newest version, the following PHP warning is now logged multiple times on our website every day:
PHP Warning: strpos(): Empty needle in /plugins/product-input-fields-for-woocommerce/includes/alg-wc-pif-functions.php on line 141
The corresponding code that triggers the error is:
$jqueryui_format .= ( isset( $symbols_matching[ $char ] ) && strpos( $jqueryui_format,?$symbols_matching[ $char ]?) !== false ) ? $symbols_matching[ $char ] : $char;
Could your team consider modifying the code to resolve the warning? Thank you for any advice/support related to this issue.
Regards,
]]>Hi,
i have encountered the issue whereby the Date is not being displayed correctly for all my products. the date will shown (F j, Y) during checkout and the order received.
please advise with thanks.
]]>Hi, thanks for this useful plugin!
Im trying to add a date picker to my product page. The Datepicker shows correctly, even the restriction for the dates that you can select works as expected.
But no matter the date I choose the field returns the date format (l, j F, Y)
It also shows l, j F, Y in the checkout page.
Thanks in advance for the help
]]>Hello,
It looks like your plugin creates a crazy number of autoloaded options such as …
alg_wc_pif_all_products_field_1_reset (0.00Kb) Autoloaded
alg_wc_pif_all_products_reset (0.00Kb) Autoloaded
alg_wc_pif_class_global_1 (0.00Kb) Autoloaded
alg_wc_pif_color_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_default_value_global_1 (0.00Kb) Autoloaded
alg_wc_pif_enabled_global_1 (0.00Kb) Autoloaded
alg_wc_pif_general_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_global_enabled (0.00Kb) Autoloaded
alg_wc_pif_global_total_number (0.00Kb) Autoloaded
alg_wc_pif_input_restrictions_max_global_1 (0.00Kb) Autoloaded
alg_wc_pif_input_restrictions_maxlength_global_1 (0.00Kb) Autoloaded
alg_wc_pif_input_restrictions_min_global_1 (0.00Kb) Autoloaded
alg_wc_pif_input_restrictions_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_input_restrictions_pattern_global_1 (0.00Kb) Autoloaded
alg_wc_pif_input_restrictions_step_global_1 (0.00Kb) Autoloaded
alg_wc_pif_local_enabled (0.00Kb) Autoloaded
alg_wc_pif_local_total_number_default (0.00Kb) Autoloaded
alg_wc_pif_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_per_product_reset (0.00Kb) Autoloaded
alg_wc_pif_placeholder_global_1 (0.00Kb) Autoloaded
alg_wc_pif_required_global_1 (0.00Kb) Autoloaded
alg_wc_pif_required_message_global_1 (0.03Kb) Autoloaded
alg_wc_pif_select_radio_option_type_global_1 (0.00Kb) Autoloaded
alg_wc_pif_style_global_1 (0.00Kb) Autoloaded
alg_wc_pif_title_global_1 (0.01Kb) Autoloaded
alg_wc_pif_type_checkbox_no_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_checkbox_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_checkbox_yes_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_color_allow_typing_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_date_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_datepicker_addyear_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_datepicker_firstday_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_datepicker_format_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_datepicker_maxdate_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_datepicker_mindate_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_datepicker_yearrange_global_1 (0.01Kb) Autoloaded
alg_wc_pif_type_file_accept_global_1 (0.01Kb) Autoloaded
alg_wc_pif_type_file_max_size_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_file_max_size_msg_global_1 (0.02Kb) Autoloaded
alg_wc_pif_type_file_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_file_wrong_type_msg_global_1 (0.02Kb) Autoloaded
alg_wc_pif_type_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_select_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_select_radio_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_time_options_global_1 (0.00Kb) Autoloaded
alg_wc_pif_type_timepicker_format_global_1 (0.01Kb) Autoloaded
alg_wc_pif_type_timepicker_interval_global_1 (0.00Kb) Autoloaded
alg_wc_pif_version (0.00Kb) Autoloaded
Since WordPress v6.1 the “Dashboard – Tools – Site Health” check has started recommending that some sites should be using a “Persistent Object Cache”?if a site has more than 500 autoloaded options. Your plugin is generating nearly 10% of that number!
Could you please see your way to either stop adding all these options by default if they’re not being used; none of the options above have been accessed with a get_option()
, update_option()
or add_option()
command on our site since the plugin was installed and most of them seem to be empty!) or perhaps you could add them all into one array of serialised options (which seems to be the norm now).
At the very least these options should be re-added so that they are set to $autoload = 'no'
because they are not being used and shouldn’t be loaded on every request.
Thank you,
Oliver
]]>I installed Product Input Fields For WooCommerce extension. I have the text input showing on the product page and I can enter a text.
However, when I add the product to the cart, the page refreshes and the text I inserted disappears.
Besides that, when I view my cart I can see the text I entered.
]]>Hi,
i use Product input fields to add a field in my woocommerce product (add a attachment before buying). I want to disable it in one of my product, but i don’t find where can I do that ?
Thanks for the support
]]>I need to restrict the front end field input to only 10 characters but i put ten into the back end feild to restrict it and nothing happens.
I have tried to use the link provided below the ‘input restrictions’ section and i have played around with the code on the page by putting it into the field on the back end to try restrict the input on the front end to only 10 characters but it doesnt restrict the user from inputting more than 10 characters into the field.
]]>It does not show and does not calculate the prices after comma in “Pricing Option”
Example: Product price €27.37 after add flat rate €3 for additional text. The amount is shown as follows: Subtotal €2737; Custom text €3.00; Total €2740.
There is also no possibility to enter the price with a comma, for example “€0.1 per symbol” or €1.3 for the entire text.
]]>Hi,
Thanks for a great plugin! I just need 1 tweak – for the input field type “textarea” I need the submissions to all be in uppercase.
So the customer types in the field it’s in all uppercase and it shows in the cart, checkout and their order email.
I’d appreciate any help.
– Jane
]]>Hi. The front end works well, but no names are coming through on emails or within the order page.
]]>If I don’t complete the custom field and I click on “Add to cart”, a “Fill out this field” message shows up. I would like to know how to edit or translate this message, since my website is in Spanish. The provided translation files do not contain that phrase.
]]>Hello! Thanks for the great plugin.
How would you recommend being able to limit showing the field only to a specific user role? For example, if user role A is logged in and looking at the product, show the field and require to complete it prior to adding to cart.
In addition, would love to see this the ability to add the field to a category or products and not just to one at a time or all.
Thanks!
]]>I was using the YITH WooCommerce Product Add-on Plugin on my site, https://personalizedgiftsindia.com and had a problem regarding functionality of the plugin.
I configured the plugin to make the Input Field as required for almost all products, however if a customer clicks “Add to Cart” without entering the input—the product is added to the cart for checkout. My understanding is that if the input field is required, the customer should not be able to move product to cart without filing the required details.
On contacting the developer of YITH WooCommerce Product Add-on Plugin, they reverted with an answer indicating the problem regarding usage of Ajax add-to-cart feature on my currently used theme “Learts v1.6.0”
My concern writing to you is to ask about the functionality of your plugin. Will it work with the theme “Learts v1.6.0” without having the prior mentioned problem?
]]>Hello Team,
I am very interested in buying your plugin because it is the only one that offers me a field, weekpicker.
I also need to add two other types of fields more classic (text field and datepicker).
So I tried the free version to test the weekpicker field.
Unfortunately it does not work at all and does not display selectable weeks.
Is there a particular serup to do for this field?
Thank you in advance to come back to me as soon as possible, because if this field works, I could buy this plugin without hesitation.
Thank you in advance for your explanations.
Philippe
]]>I’m looking to add the contents of the product input field to this report in Woo Commerce. So Woo Commerce Analytics> Orders. There’s a download for a CSV file for orders but the product input field isn’t shown there (and I do need that data included for my order report.) Is this possible to include? Does the pro version include this?
]]>Is there a way to offer the text area field, and allow the return key to honor line breaks and not add the item to basket.
Seems to be hit & miss for us, sometimes it does a line break, others it adds to basket, I’d like to make it so no matter what you do return/enter just does the line break in the text area.
]]>Hi
i created text field, i need who fill this field pay more 30 ILS
How can i do it?
Thank you
I need to export my orders, but the Export Orders “Per Row” and All Products: Field #1″ are in the same column.
How can i seperate them?
They share the same input ID “alg_wc_pif_global_1”