Hi @EnzoLC
Thanks for providing the full code. Here is the modified version of the full code. You can find a line of text “change the URL”. replace the URL you that want to redirect. This is for only the code you provided, It should no use for other form.
{{ 'customer.css' | asset_url | stylesheet_tag }}
{% # esthetic-ignore-start %}
{%- style -%}
.section-{{ section.id }}-header-color {
color: {{ section.settings.form_color_scheme.settings.header }};
}
{%- endstyle -%}
{% # esthetic-ignore-end %}
{{ section.settings.text-login-back-website }}
##### {{ section.settings.text-login-title }}
{% form 'create_customer'
, class: "tw-w-full", return_to: routes.account_register_url
%}
{%- if customer -%}
{%- endif -%}
{{ form.errors | default_errors }}
##### {{ section.settings.text-register-information-title }}
{{ section.settings.text-register-information-message }}
{{ section.settings.text-register-button-back }}
{% endform %}
{% for block in section.blocks %}
{% if block.type == 'advantages' %}
#####
{{ block.settings.text-title-advantages }}
{{ block.settings.textarea-advantages }}
{% endif %}
{% endfor %}
{% schema %}
{
"name": "t:sections.main-register.name",
"settings": [
{
"type": "header",
"content": "Custom text",
"info": "If you need a back to line, you can use this balise
"
},
{
"type": "text",
"id": "text-login-back-website",
"label": "Back to website title",
"default": "Retour au site"
},
{
"type": "text",
"id": "text-login-title",
"label": "Login title",
"default": "Rejoindre le club"
},
{
"type": "text",
"id": "text-register-information-title",
"label": "Information title",
"default": "Parrainage"
},
{
"type": "text",
"id": "text-register-information-message",
"label": "Information message",
"default": "Pour adhérer au Club, vous devez obligatoirement avoir une personne qui vous a recommandé."
},
{
"type": "header",
"content": "Footer button"
},
{
"type": "text",
"id": "text-register-button-back",
"label": "Button back",
"default": "Retour"
},
{
"type": "text",
"id": "text-register-button-confirm",
"label": "Button confirm",
"default": "Continuer"
},
{
"type": "color_scheme",
"id": "form_color_scheme",
"label": "form colors",
"default": "scheme-2432f7e6-8bee-4498-ba7d-8e410826ace2"
},
{
"type": "color_scheme",
"id": "advantages_color_scheme",
"label": "advantages colors",
"default": "scheme-3"
}
],
"blocks": [
{
"name": "Advantages",
"type": "advantages",
"settings": [
{
"type": "text",
"id": "text-title-advantages",
"label": "Advantages Title"
},
{
"type": "textarea",
"id": "textarea-advantages",
"label": "Advantages Text"
}
]
}
]
}
{% endschema %}
I hope this will serve your porposes. If you have any qoustion. ask me. I will reply you.
Thanks.