Custom checkout fields

We've designed some custom checkout fields for our checkout form but would like to reorganize how they are displayed. Is there a way have our fields displayed in a different order? i.e. have our custom fields display before the payment option and after the shipping address entry? For our options logically it makes more sense. There doesn't seem to be anything about this in the docs that we could find. Also anyway to rename the 1,2,3,4 options? i.e. instead of Almost Done for custom fields we'd like to rename that if possible.
Comments
  • fc_adamfc_adam FoxyCart Team
    @zerphyte,

    You can change any of the customer facing language strings from within the "language" section of your store's FoxyCart administration - so you'll be able to alter the checkout group headers there.

    In terms of where your custom fields display, you can change that, and you will do that by altering the actual checkout twig template. For details on working with our Twig templates, take a look at this page: https://wiki.foxycart.com/v/2.0/templates/advanced. The custom fields block is included with this code:
    {% if config.template_config.custom_script_values.checkout_fields %}
    {% include template_from_string(config.template_config.custom_script_values.checkout_fields) %}
    {% endif %}
    .

    You could either move that code within the checkout.inc.twig template, or you could include your custom fields directly in the template where you want them to appear, and not make use of the custom checkout fields option in the administration.
Sign In or Register to comment.