Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WooCommerce Theme Development Customizing the Cart and Checkout Process Customizing the WooCommerce Cart and Checkout Quiz 2

Zahidul Islam
PLUS
Zahidul Islam
Courses Plus Student 1,230 Points

How to Add input filed add to cart page ?

I've been developing a WooCommerce site and I have a task where I have stuck. I need to add an extra custom input field into the cart items table.

Like for example, if a person orders '2000 youtube views' package, then right below the item name, I want the user to input his Youtube video URL.

I know I can add custom input fields on Product Page and can simply make them display on the Cart Page. But I want to take user input data onto the Cart Page. Each cart item will have a custom input field. So far, I have researched a lot but didn't have any success for my solution. All I found that to print the custom input field data onto the cart page added on the Product Page.