{% extends "vend/_layouts/settings" %} {% import "_includes/forms" as forms %} {% from "vend/_includes/macros.html" import configWarning %} {% block content %} {% if oauthAppMissing %}

You are not connected to Vend, please connect to your Vend store first.

{% elseif not oauthToken or not oauthProvider %}

Your OAuth app needs a token generating, you can do this here.

{% endif %} {% if not oauthAppMissing and oauthToken and oauthProvider %}
{{ redirectInput('vend/settings/tax') }} {{ csrfInput() }}

{{ "Tax Settings"|t('vend') }}

For each Commerce tax category, choose the Vend sales tax that you want it to match.

{% for taxCategory in taxCategories %} {% endfor %}
Tax Category Vend Sales Tax
{{ taxCategory.name }} {{ forms.selectField({ id: 'taxMap-'~taxCategory.id, name: 'taxMap['~taxCategory.id~']', value: settings.taxMap and settings.taxMap[taxCategory.id] is defined ? settings.taxMap[taxCategory.id] : null, options: vendTaxes, required: true, }) }}

{% endif %} {% endblock %}