How to change stray comma at the end of order email custom fields

Created by Support Agent, Modified on Mon, 13 Apr at 2:33 AM by Support Agent

Question:

Order email custom fields always end with comma like in the screenshot below:



We need to get rid of that in the end. Could you please help us get it fix?


Answer:

In this case, could you please replace this file: app/code/Bss/CheckoutCustomField/Helper/Data.php by the attachment to fix your issue with comma?
After that, please clear cache and test sending the email again.


For more information about product, please refer Checkout Custom Field for Magento 2.


Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html


If you need further assistance, please feel free to contact us. As a full-service ecommerce agency, we deliver trusted end-to-end solutions with 14+ years of experience, supporting 75,000+ customers worldwide. 


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Discover our top tier extensions:

Attachments (1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article