Company name field not included in order details
-
Good day!
I just came across a possible bug in the latest version of the WooCommerce plugin.
The ‘company name’ field is not included in the order and is therefore not mentioned in the order and the invoice.
Can you help me see what the problem could be?
The page I need help with: [log in to see the link]
-
Hello @magneetjeswinkel it might be a cookie or your stuck in cache? It’s showing for me fine.
Hi Stef,
So far you’ve looked, everything is indeed fine. But when you fill in the ‘company name’ field, it will not be included in the order.
The cache was indeed emptied before I started testing, after complaints from my customers that the company name was not mentioned on the invoice.
Greetz, Hans
To be clear: I am not talking about the checkout screen, but about the order that WooCommerce receives on the backend for the shop.
Hey there, @magneetjeswinkel! Thanks for contacting us. I’m happy to help you.
I checked your checkout page and it seems you are using the checkout shortcode, correct?
It also seems you modified a bit, have you used any plugins to add the company name field there?
Looking forward to your reply.
Have a wonderful day!
Good morning!
Thanks for your message back! I do indeed use the WooCommerce shortcode for the checkout screen.
I have not adjusted anything myself, nor have I installed any plugins that edit the fields. I do use BeTheme, which I think has changed the appearance of the checkout page slightly.
Thanks, Hans
Hey, @magneetjeswinkel!
I do use BeTheme, which I think has changed the appearance of the checkout page slightly.
Thanks for confirming.
I was not able to replicate this on my website with a default theme.
Can you please temporarily switch to a default theme such as Storefront and run a test order to see if the issue persists?
Please let us know how it goes.
Have a wonderful day!
That’s a smart tip! ??
But even with Storefront theme the problem still persists. The field with the company name is not included in the order data in the backend:
https://magneetjeswinkel.nl/wp-content/uploads/2024/07/2024-07-19-16_06_49-Afrekenen--MagneetjesWinkel.nl.png
- This reply was modified 4 months ago by magneetjeswinkel.
Thank you for reaching back, with further details on this, @magneetjeswinkel.
Let’s investigate further, by checking if all order details for order #66070 are stored in the database.
Here are further details in which table to look into. Can you see company name details, for order #66070, there?
I hope this helps! Let us know how it goes.
I had to search a lot, but I think I found it. The ‘company name’ field is set to null
https://magneetjeswinkel.nl/wp-content/uploads/2024/07/database.png
Glad to hear it – thanks for letting us know!
I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
@ckadenge huh? nothing has been resolved yet. please read and understand before marking a support issue as resolved!
- This reply was modified 4 months ago by magneetjeswinkel.
Hey, @magneetjeswinkel!
I’m sorry about that. Let’s keep troubleshooting this.
I had to search a lot, but I think I found it. The ‘company name’ field is set to null
https://magneetjeswinkel.nl/wp-content/uploads/2024/07/database.png
Thanks for checking! Now we need to figure out what is causing this to happen.
For testing purposes, can you please go to Appearance > Customize > WooCommerce > Checkout and make the company name a mandatory field?
Then please run a test order to check what happens and let us know ??Another troubleshooting step I suggest running now is a full conflict test, since changing the theme did not work.
To test, you’ll first want to change the theme on your site to Storefront again, then, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.
— Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.
— It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.
You can find more about this in this guide.
Please let us know about your findings.
Have a wonderful day!
Hi,
Thank you very much for reopening the support ticket and the new suggestions. I followed this up, but unfortunately without any results.
I did notice another striking point, namely when I enter the ‘company name’ field as a mandatory field, the message appears at the front of the shop after entering the company name stating that this field cannot be left empty. The entered text therefore does not seem to be seen at all.
I also did the following:
- Cloudflare disabled
- Theme changed in Storefront
- Disabled all plugins not intended for Woocommerce
After no results:
- Also disabled the Woocommerce support plugins (except of course the Woo plugin itself)
Unfortunately, this did not help.
Would it be an idea to put the webshop on a staging site so that you can have access?
I look forward to hearing from you again!
Hey, @magneetjeswinkel!
Thank you for the detailed information ??
Would it be an idea to put the webshop on a staging site so that you can have access?
For security reasons, since this is a public forum, we are not allowed to access the website (even a staging version), as it is against the rules.
But don’t worry, let’s keep trouble shooting this!
As you mentioned, you are using the shortcode. Can you please switch to the checkout block and see if the issue persists?
To do that you can:
– Go to Pages > Checkout > Edit
– Delete the shortcode block and add the checkout block
– Select the Shipping/Billing area of the block
– If the right sidebar is not showing, please click on the settings icon on the top right. Here’s a screenshot: https://snipboard.io/3uZK27.jpg
– In the sidebar, make sure the Company option is enabled
– Save the changesAnother thing I suggest you trying to see if it changes anything is removing WooCommerce (don’t worry, you won’t lose your data) and downloading it again to install a fresh version.
Please let us know how it goes.
Have a wonderful day!
Good morning!
Thank you very much for all your suggestions! Using the blocks did not help. Reinstalling WooCommerce partly.
The company name field is now visible in the address details. If the option is checked that the data must be copied for the billing address, the field for the company name will also remain empty or will not be passed on in the order.
Please see the screenshots:
https://snipboard.io/jZAqu9.jpg
https://snipboard.io/8WJQmO.jpg
https://snipboard.io/LqeNIc.jpgThings are going in the right direction, but unfortunately we are not quite there yet. ??
- You must be logged in to reply to this topic.