Product title on contact form

Hi

I’m looking for some help on the coding for the product title to be included when someone sends a message via the contact form on my product page. I’ve seen some examples of the hidden code to be added to the contact form.liquid however I’m using the enterprise theme and I couldn’t get it to work.

my site is 3dcaststore.com.au, thanks

Luke

will this title needs to be added manually or automatically? because we can add field to add title manually

i need it to be added automatically, when i receive the email message from the contact form I need to see what product my customer is referring too

Hello @3D-Cast

in the contact form code, you can add this

<input type="hidden" name="contact[Product]" value="{{ product.title }}">

Hi @3D-Cast If you i need it to be added automatically, you can add contact form in product page and add this code in product-form.liquid

<input type="hidden" name="contact[Product]" value="{{ product.title }}">

For example:

Best regard,
Danny from Samita Team <3.

Thank you. I now have it working the way I want with your code. Thanks