Unexpected error in: silkypress/input-field-fill
-
Good evening,
Unfortunately the plugin is not working on my site. After having added a field to the WC checkout block, the checkout page shows the following message:
Oeps!
Unexpected error in: silkypress/input-field-fill
Error: wcSettings[‘silkypress-input-field-block_data’] is undefined
Please advise how to solve this issue.
Thanks in advance!
-
Hello @voogel,
would you tell me what WooCommerce version you’re using?
If you open the browser’s console (“Ctrl + Shift + I” in the browser) on the checkout page, are there any additional JavaScript errors?
To which inner block (ex: Contact Information or Shipping Address inner block) did you add the Input Field block?
Thank you for you quick reply!
I’m using Woocommerce version 8.6.1
It looks like there are errors. Is there an easy way to share that with you?
I have added the text Input Fields to the Billing Address block.
So far, using the WooCommerce 8.6.1 and adding the input field to the Billing Address block doesn’t let me replicate the error.
You can share the JavaScript errors by copy/pasting them to pastebin.com or by making a screenshot and uploading it to imgur.com. Link the pastebin or imgur upload here in the support forum.
What theme or other plugins are you using? You can quickly create a list of theme and plugins by clicking the “Copy site info to clipboard” button on the “WP Admin -> Tools -> Site Health -> Info” page. You can copy/paste the list here in the forum, or make another pastebin upload.
Hi Diana,
Pleas find attached the requested screenshots and site info. Hopefully this will provide you with enough information.
Thanks for your support!
I managed to replicate the error by nesting the Checkout block into a Container block from the GenerateBlocks plugin.
It is not a conflict per-se with the GenerateBlocks, but rather the failure on my side to account for the situation when the Checkout block is nested within other blocks.
You can try the following: delete the two custom input fields from the Billing Address block, save page, pull Checkout block from the Container block so that it isn’t nested anymore, then add a custom input field to the Billing Address block, save page. Let me know if that solves the error on your website.
I’ll work on a proper fix so that the Input Field blocks work also when the Checkout block is nested. The fix will be part of the next plugin release.
Good morning Diana,
That worked like a charm, thank you very much!
Unfortunately the customer checkout/order-received page shows two Additional Information sections (see screenshot) with the same information now. Is there a way to prevent this from happening?
-
This reply was modified 2 years, 3 months ago by
voogel.
Hello @voogel,
I don’t manage to replicate the double “Additional Information” section on the Order Confirmation page.
The second “Additional Information” section comes from the SilkyPress Input Field Block plugin. You can remove it by editing the Checkout page, selecting each of the two Input Field blocks and then unticking the “Show on Order Confirmation page” option in the “Presentation” tab in the block’s settings. You should be left with only the first “Additional Information” section on the Order Confirmation page.
If you happen to find out from where it comes the first “Additional Information” section, let me know. I’d be curious about it.
Hi Diana,
FYI, I unticked the option ‘Show on Order Confirmation page’ as you mentioned. But still two Additional Information sections remain visiblecheckout/order-received page, showing ‘no values’ in the input field. See screenshot.
Hello @voogel,
could you give me a link to your website so I can have a look at the Order Confirmation page’s HTML?
Another question: you’re using the GeneratePress theme, which is not a block theme, but in your screenshot it seems that the page loads the Order Confirmation block, which should be available only for block themes. Are you using a block theme or not?
If you are using a block theme, would you please make me a screenshot of the “WP Admin -> Appearance -> Editor -> Templates -> Order Confirmation -> Edit” with the List View open for the blocks on the page?
-
This reply was modified 2 years, 3 months ago by
SilkyPress.
Hi Diana,
You can visit the website here: https://stichtingrondjepampus.nl.
I don’t use a block theme, except for the WordPress standard block theme. On top of the Generatepress theme, I use GenerateBlocks Pro.
Hello @voogel,
the Additional Information section was showing up twice only when going through the checkout process while logged in, i.e. not checking out as a guest.
If you update the plugin to the 1.2 version, then the Additional Information section will show up only once also for logged in users.
Good morning Diana,
Thank you for the update and the support provided!
-
This reply was modified 2 years, 3 months ago by
The topic ‘Unexpected error in: silkypress/input-field-fill’ is closed to new replies.