Bonjour,
Je souhaite ajouter la possibilité pour le client d’ajouter une pièce jointe au formulaire de contact de mon site. Je souhaite récolter les fichiers joints sur ma boite mail en meme temps que les réponses aux questions du formulaire.
Savez vous quel code devrais-je ajouter ?
Merci
Magali
Voici le code actuel de la page contact
{{ section.settings.title }}
{%- if section.settings.text != blank -%}{%- if form.posted_successfully? -%}
{{ 'contact.form.post_success' | t }}
{%- endif -%}{{ form.errors | default_errors }}
{%- if section.settings.show_phone -%}
{{ ‘contact.form.phone’ | t }}
{%- endif -%}
{{ ‘contact.form.message’ | t }}
{% if form.body %}{{ form.body }}{% endif %} {{ 'contact.form.send' | t }}{% comment %}
Remove the following three lines of code to remove the note
about being protected by Google’s reCAPTCHA service.
By removing it, the small reCAPTCHA widget will appear in the
bottom right corner of the page.
{% endcomment %}
{{ ‘shopify.online_store.spam_detection.disclaimer_html’ | t }}
{%- endform -%}
{% schema %}
{
“name”: “Contact form”,
“class”: “index-section”,
“settings”: [
{
“type”: “paragraph”,
“content”: “All submissions are sent to the customer email address of your store. Learn more.”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Title”,
“default”: “Contact us”
},
{
“type”: “richtext”,
“id”: “text”,
“label”: “Text”
},
{
“type”: “checkbox”,
“id”: “show_phone”,
“label”: “Show phone number”
},
{
“type”: “checkbox”,
“id”: “narrow_column”,
“label”: “Narrow column”,
“default”: true
}
],
“presets”: [{
“name”: “Contact form”,
“category”: “Store information”
}]
}
{% endschema %}