I need help with a Product Template - contact form?

Hello I added a product Template to a few of my Product that has a contact Form so the customer can message me for further informations. The Problem is that I dont know what the product was the request was sent for. I just get an Mail with the request and contact information. I appreciate any help, Thank you very much. I will link an example product: https://waffen-paar.at/products/magtech-9-mm-luger-fmj-8g-124grs-1000-stk?contact_posted=true#contact_form

I used this code for the template:

{% comment %}
  The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}

{% section 'product-template-requires-contact' %}
{% section 'product-recommendations' %}

{% if collection %}
  
    
      {% include 'icon-arrow-left' %}
      {{ 'products.product.back_to_collection' | t: title: collection.title }}
    
  

{% endif %}

{% assign current_variant = product.selected_or_first_available_variant %}

This is the information I get in the mail:

Hi @lordlauzi1 ,

Please add the below code of line inside your contact form. If this code will not work then you have to share your contact form code with me to check.


2 Likes

Thank you very much it worked perfectly your are the best.

Have a great day!

Best Regards

Thomas Paar

1 Like

Welcome. Let me know if you need any other help.

Hi

the above mentioned code is not working on my contact form, kindly advise