I have update my plugin flexible checkout field and it shows critical error to me on screen. In deep after research I get this
popagv
Fatal error: Uncaught ValueError: Unknown format specifier “?” in /www/testingr_130/public/wp-content/plugins/flexible-checkout-fields/src/Tracker/DeactivationTracker.php:58 Stack trace: #0 /www/testingr_130/public/wp-content/plugins/flexible-checkout-fields/src/ Tracker/Deactivation Tracker.php(58): sprintf(‘Kontakt os p\xC3\xA5…!’, ‘‘) #1 /www/testingr_130/public/wp-includes/class-wp-hook.php(324): WPDesk\FCF\Free\Tracker\DeactivationTracker->load_deactivation_modal(“) #2 www/testingr_130/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /www/testingr_130/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /www/testingr_130/public/wp-settings.php(559): do_action(‘plugins_loaded #5 /www/testingr_130/public/wp-config.php(95): require_once(‘/www/testingr_1…’) #6 /www/testingr_130/public/wp-load.php(50): require_once(‘/www/testingr_1…’) #7 /www/testingr_130/public/wp-blog-header.php(13): require_once(‘/www/testingr_1…’) #8 /www/ testingr_130/public/index.php(17): require(‘/www/testingr_1…’) #9 {main} thrown in /www/testingr_130/public/wp-content/plugins/flexible-checkout-fields/src/Tracker/DeactivationTracker.php on line 58
add_filter('woocommerce_email_attachments', 'add_flexible_checkout_fields_attachments_to_vendor_email', 10, 3);
function add_flexible_checkout_fields_attachments_to_vendor_email($attachments, $email_id, $order) {
if ($email_id === 'new_order') {
$order_id = $order->get_id();
$uploaded_files = get_post_meta($order_id, '_billing_datei_upload', true);
if (!empty($uploaded_files)) {
if (is_string($uploaded_files)) {
$uploaded_files = explode(',', $uploaded_files);
}
if (is_array($uploaded_files)) {
foreach ($uploaded_files as $file) {
$file_path = get_attached_file($file);
if ($file_path && file_exists($file_path)) {
$attachments[] = $file_path;
}
}
} else {
$file_path = get_attached_file($uploaded_files);
if ($file_path && file_exists($file_path)) {
$attachments[] = $file_path;
}
}
}
}
return $attachments;
}
I used this code, but there are sometimes files attached and sometimes don’t
]]>CSS rules provided by the plugin has very generic names which breaks other plugins. I believe those rules are from Bootstrap (.row, .container and so on), but having them to load on every admin page without any namespace impacts other UIs. It seems that this CSS is only used for advertisement purpose which is even worse in this situation.
Could you consider namespacing rules in order to prevent that behavior?
https://i.imgur.com/Gl9D1yO.png
Here is an example how activating this plugin impacts other plugins
Before: https://i.imgur.com/ysAT8cg.png
]]>This doesn’t seem to be critical, but there is a negative effect using flexboxgrid.min.css
It specifically shows up in my bunny.net control panel. The panel’s width is out of whack as a result of the activation of Flexible Checkout Fields and inspection shows the CSS coming from the installation’s folder. I would say that bunny.net may also be at fault, because they are using a form class name of “container” in their formatting.
I am going to share this information with bunny.net as well. Thanks!
]]>I’m working on a website with several sailing courses. The problem: When someone wants to purchase multiple courses – for example, for their family – we need multiple addresses, one for each person.
What I’ve done: I’ve set up a multi-step checkout process: first, the billing information, then the participant details.
Here’s what I want: For each participant, I’d like to be asked for additional participant information IF I’m purchasing for multiple participants. If not, a simple “Shipping address = Billing address?” option would suffice. A maximum of 12 participants per course can be purchased. But if, for example, I’m buying for 5 participants, I need something like 5 checkboxes with the text “Add additional participant details” that, when clicked, open text fields for address details, etc.
Important: Only as many checkboxes should appear as the number of participants purchased – for the customer experience.
Multiple different courses can also be purchased. This means that I have to set up this custom flow for each individual course, which includes variables that regulate if I buy for 12 participants, that 12 checkboxes for address details appear, and 12 address detail boxes.
To clarify: I would now set it up like this… (which is very cumbersome):
Cart contains < product < equals < Course name
AND
Cart contains < number of items < greater than 1
Then the address detail fields follow.
To execute this for the maximum number of purchasable participants, I have to repeat the formula mentioned above each time. The only thing that would change is the “greater than 1”
It would then be “greater than 2” – “greater than 3” – “greater than 4” … … … “greater than 11”
And I have to do this 12 times for EACH COURSE?
Please tell me there’s a solution via HTML or something similar.
I hope I’ve explained the problem well enough xD
]]>Hello,
I have not been able to complete an order for a few days now. I have been using this plugin for a few years now. The button Commander is block.
If I disable FCF, it’s ok
I test with 4.1.12 not ok
I test with 4.1.11 not ok
I test with 4.1.10 not ok
I test with 4.1.9 ok
You can use this product for example
https://parentsconscients.be/product/atelier-2023-test-1-eur/
Thanks
— config
PHP: 8.2
WordPress: 6.6.1
Theme: Avada 7.11.9
WooCommerce: 9.1.4
Flexible Checkout Fields: 4.1.12
Hi,
Does the Conditional Logic support show A if field B is ‘Not empty’?
Regards,
Shandy
Hello, when I disable a field in the checkout, such as address for example, the data in the address field that the user had loaded in their account is deleted.
]]>Seeing a bunch of errors recently which I think are coming from this plugin. It’s Woocommerce with Revolut as a payment provider and Flexible Checkout Fields using Divi as a theme.
2024/07/17 08:39:43 [error] 79514#79514: *728573 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "required" in /www/<client>_544/public/wp-content/plugins/flexible-checkout-fields/classes/plugin.php on line 525; PHP message: PHP Warning: Undefined array key "required" in /www/<client>_544/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1586" while reading response header from upstream, client: 78.19.35.232, server: <client>.com, request: "POST /?wc-ajax=revolut_payment_request_create_order HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.2-fpm-<client>.sock:", host: "<client>.com:61669", referrer: "https://<client>.com/product/taster-pack/"
2024/07/17 09:06:34 [error] 79514#79514: *729156 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "required" in /www/<client>_544/public/wp-content/plugins/flexible-checkout-fields/classes/plugin.php on line 525; PHP message: PHP Warning: Undefined array key "required" in /www/<client>_544/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1586; PHP message: PHP Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /www/<client>_544/public/wp-includes/blocks.php:1409
Stack trace:
0 /www/<client>_544/public/wp-includes/blocks.php(1409): str_contains(Array, '<!--')
1 /www/<client>_544/public/wp-includes/formatting.php(5227): filter_block_content(Array, Array, Array)
2 /www/<client>_544/public/wp-includes/class-wp-hook.php(324): wp_pre_kses_block_attributes(Array, Array, Array)
3 /www/<client>_544/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
4 /www/<client>_544/public/wp-includes/kses.php(946): apply_filters('pre_kses', Array, Array, Array)
5 /www/<client>_544/public/wp-includes/kses.php(754): wp_kses_hook(Array, Array, Array)
6 /www/<client>_544/public/wp-content/plugins/woocommerce/includes/wc-notice-functions.php(289): wp_kses(Array, Array)
7 /www/<client>_544/public/wp-content/plugins/woocommerce/templates/notices/err" while reading response header from upstream, client: 78.19.35.232, server: <client>.com, request: "GET /product/taster-pack/?_rp_s=true&_rp_oid=1c211efd-31eb-4d57-9892-f4bd6f85631f HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.2-fpm-<client>.sock:", host: "<client>.com:61669"
2024/07/17 09:07:42 [error] 79514#79514: *729174 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "required" in /www/<client>_544/public/wp-content/plugins/flexible-checkout-fields/classes/plugin.php on line 525; PHP message: PHP Warning: Undefined array key "required" in /www/<client>_544/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1586" while reading response header from upstream, client: 78.19.35.232, server: <client>.com, request: "POST /?wc-ajax=revolut_payment_request_create_order HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.2-fpm-<client>.sock:", host: "<client>.com:61669", referrer: "https://<client>.com/product/taster-pack/"
Before updating the SHORTCODEs they work normally, but after the last update they no longer work, for example I have added a text field with the DEFAULT VALUE is the current date [date] but in the form the date does not appear, only the value [date] appears.
]]>Hi, the latest update to version 4.1.10 is generating a fatal error as below. Please fix ASAP.
[19-Jul-2024 11:16:18 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/xxx.in/htdocs/wp-content/plugins/flexible-checkout-fields/src/Form/FormModifier.php:27
Stack trace:
0 /var/www/xxx.in/htdocs/wp-content/plugins/flexible-checkout-fields/src/Form/FormModifier.php(27): count()
1 /var/www/xxx.in/htdocs/wp-includes/class-wp-hook.php(324): WPDesk\FCF\Free\Form\FormModifier->maybe_hide_order_section()
]]>Can this plugin limit the number of digits allowed in the zip field?
]]>Hello,
I have created WooCommerce custom checkout billing text field using your plugin. Filed is not required. There is bug, when this custom filed is empty, field label is showing in WooCommerce order emails.
How can I fix this?
Best regards
]]>Does this plugin allow you to set different character lengths for checkout fields such as the “address” and “email” fields, etc.?
]]>Hello,
is there any way to register custom fields (date picker/time select) to be recognisable by Make.com? When I send the order to Make > Google sheet, I can’t see those filled up fields from order. Same with other plugins which connects orders > google sheets. Those fields looks like they don’t exist in system. Thank you ??
]]>There’s a typo in the filter hook name in classes/plugin.php
on line 180:
add_filter( 'flexible_chekout_fields_fields', [ $this, 'getCheckoutFields' ], 10, 2 );
Should be:
add_filter( 'flexible_checkout_fields_fields', [ $this, 'getCheckoutFields' ], 10, 2 );
(A missing “c”.)
This affects Flexible_Checkout_Fields_Plugin::get_fields()
which applies the (correctly spelled) hook and thus does nothing.
Hi, I’d like to know how to set a price in 0 or a free label for checkbox fields.
Thank you for your help.
]]>Hi, By default the checkout shows the Billing Address on the left and the Shipping Address on the right. Is it possible to reverse this with the plugin? Also, would be good if we could remove the checkbox ‘Ship to a different address’ as we would want the Shipping Address to always be visible.
]]>Zg?aszam konflikt wtyczek : Flexible Checkout Fields i Faktury PDF WooCommerce & WordPress
Po zainstalowaniu Faktury PDF WooCommerce & WordPress pole na NIP jest ok. ,a po instalacji Flexible Checkout Fields napis “NIP opcjonalnie” ucieka wy?ej. W linku zrzut ekranu pokazuje t? sytuacj? https://lanaperte.pl/wp-content/uploads/2024/05/Zrzut-ekranu-2024-05-14-124805.png
WordPress i wtyczki zaktualizowane.
]]>Hi. I am using elementor as a checkout page with shortcode Woocommerce Checkout. I have a few custom fields on my checkout. None of them are appearing on confirmation order email.
Help!
]]>Hi!
I just realized that data from custom fields in the billing section are not saved.
When I make an export, these fields are empty and the data were written in them in the process of paying for the tickets.
]]>Hi.
Thank you for your plugin, it is very functional.
I want to ask your developers.
How to add custom field from this plugin to Admin Orders page?
Thank you for your answer.
Hello team!
I have set different shipping methods on a store with 4 custom fields created with your plug-in, one field for each method. E.g. for shipping method “carrier A”, custom field “carrier A office” appears and so on.
When an order is placed, all (4) custom fields appear in the order details (under “Flexible checkout fields”) as well as in the order confirmation email, even though only one of them is selected by the customer and respectively only this one should appear in the order to avoid confusion.
For example: a customer can choose between shipping with carrier A, carrier B, carrier C and carrier D. They choose carrier A, yet the custom fields for options B, C, D also appear in the order details, even if empty. This is quite confusing for the back office. Is this how it should work or am I doing something incorrectly?
Thank you in advance! Screenshot attached for reference.
]]>Hi! I have field NIP Number, is it possible to edit value in order settings? Maybe in PRO version? I see only value in order details in admin when user gives number (with no edit options), but field is invisible in order details when user doesn’t give any number.
]]>I had to disable the plugin on the website because a critical error occurred. As soon as I enable the plugin, the website receives a critical error.
I am sending logs from:
B??d typu E_ERROR zosta? spowodowany w linii 95 pliku
/wp-content/plugins/flexible-checkout-fields/src/Field/Type/TextType.php.
Komunikat b??du: Uncaught TypeError: Cannot access offset of type null on array in
/wp-content/plugins/flexible-checkout-fields/src/Field/Type/TextType.php:95
Stack trace:
#0 /wp-content/plugins/flexible-checkout-fields/src/Field/Type/TypeAbstract.php(66): WPDesk\FCF\Free\Field\Type\TextType->get_options_objects()
#1 /wp-content/plugins/flexible-checkout-fields/src/Field/Type/TypeIntegration.php(61): WPDesk\FCF\Free\Field\Type\TypeAbstract->get_options()
#2 /wp-content/plugins/flexible-checkout-fields/src/Field/Type/TypeIntegration.php(43): WPDesk\FCF\Free\Field\Type\TypeIntegration->get_field_type_settings()
#3 /wp-includes/class-wp-hook.php(324): WPDesk\FCF\Free\Field\Type\TypeIntegration->add_field_type(Array)
#4 /wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#5 /wp-content/plugins/flexible-checkout-fields/classes/plugin.php(363): apply_filters('flexible_checko...', Array)
#6 /wp-content/plugins/flexible-checkout-fields/classes/plugin.php(237): Flexible_Checkout_Fields_Plugin->init_fields()
What went wrong? What should I do to be able to use your plugin?
]]>Hello,
I want to ask how can the plugin show additional fields when another field is checked.
For example if someone checks that they are buying as a company, I want to have 3 additional fields showing up after that where text is entered:
– name of company
– fiscal number of company
– address of company
How can this be achieved?
Hi
I’ve had deactivated the Country/Region and also the Kanton/Bundesland, but I dont’t see any changes.
Any advice? Thanks.
Does not work with WooCommerce 8.7.0 standard installation.
Seems to be an incompatibility with Block editor, which is standard.
]]>I am not seeing the changes I made in the plugin when I test my cart. I removed several of the fields, but my checkout page is still showing the original fields and layout from Woocommerce. I appreciate any help.
]]>Hi, we have a text field added for shipping phone number – but in the dashboard we cannot edit the field?
]]>