Add header language switcher and local json config
This commit is contained in:
182
mandelstudio/mandelstudio.json
Normal file
182
mandelstudio/mandelstudio.json
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
{
|
||||||
|
"ocyan_plugins": [
|
||||||
|
"ocyan.plugin.contact_form",
|
||||||
|
"ocyan.plugin.cookie_jar",
|
||||||
|
"ocyan.plugin.django",
|
||||||
|
"ocyan.plugin.newsletter",
|
||||||
|
"ocyan.plugin.oscar",
|
||||||
|
"ocyan.plugin.oscar_basket",
|
||||||
|
"ocyan.plugin.oscar_catalogue",
|
||||||
|
"ocyan.plugin.oscar_catalogue_dashboard",
|
||||||
|
"ocyan.plugin.oscar_checkout",
|
||||||
|
"ocyan.plugin.oscar_elasticsearch",
|
||||||
|
"ocyan.plugin.oscar_order",
|
||||||
|
"ocyan.plugin.oscar_partner",
|
||||||
|
"ocyan.plugin.oscar_shipping",
|
||||||
|
"ocyan.plugin.oscar_sequential_order_numbers",
|
||||||
|
"ocyan.plugin.payment_mollie",
|
||||||
|
"ocyan.plugin.roadrunner_bs5",
|
||||||
|
"ocyan.plugin.template_engine",
|
||||||
|
"ocyan.plugin.roadrunner_productchooser",
|
||||||
|
"ocyan.plugin.carbasa",
|
||||||
|
"ocyan.plugin.coyote",
|
||||||
|
"ocyan.plugin.sentry_logging",
|
||||||
|
"ocyan.plugin.seo",
|
||||||
|
"oxyan.themes",
|
||||||
|
"ocyan.plugin.varnish",
|
||||||
|
"ocyan.plugin.wagtail",
|
||||||
|
"ocyan.plugin.i18n",
|
||||||
|
"ocyan.plugin.ai_auto_translate",
|
||||||
|
"ocyan.plugin.wagtail_blog",
|
||||||
|
"ocyan.plugin.wagtail_content_page",
|
||||||
|
"ocyan.plugin.wagtail_forms",
|
||||||
|
"ocyan.plugin.wagtail_oscar_integration",
|
||||||
|
"ocyan.plugin.roadrunner_highlight_slider",
|
||||||
|
"ocyan.plugin.wordspinner"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"cookie_jar": {
|
||||||
|
"analytical": true,
|
||||||
|
"functional": true,
|
||||||
|
"google_analytics": "",
|
||||||
|
"google_tag_manager": "",
|
||||||
|
"marketing": false,
|
||||||
|
"social": false,
|
||||||
|
"trusted": ""
|
||||||
|
},
|
||||||
|
"django": {
|
||||||
|
"description": "",
|
||||||
|
"domain": "mandelstudio.nl",
|
||||||
|
"email_from": "webshop@mandelblog.com",
|
||||||
|
"email_host": "vps.transip.email",
|
||||||
|
"email_host_password": "CHANGE_ME",
|
||||||
|
"email_host_user": "noreply@mandelblog.com",
|
||||||
|
"email_port": "587",
|
||||||
|
"email_to": "info@mandelstudio.nl",
|
||||||
|
"email_use_tls": true,
|
||||||
|
"language_code": "nl",
|
||||||
|
"name": "mandelstudio",
|
||||||
|
"username": "administrator"
|
||||||
|
},
|
||||||
|
"i18n": {
|
||||||
|
"languages": [
|
||||||
|
"nl",
|
||||||
|
"en"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"payment_mollie": {
|
||||||
|
"api_key": "CHANGE_ME",
|
||||||
|
"ideal": true,
|
||||||
|
"creditcard": true,
|
||||||
|
"paypal": true,
|
||||||
|
"bancontact": true,
|
||||||
|
"sofort": true,
|
||||||
|
"banktransfer": false,
|
||||||
|
"belfius": false,
|
||||||
|
"bitcoin": false,
|
||||||
|
"directdebit": false,
|
||||||
|
"eps": false,
|
||||||
|
"giftcard": false,
|
||||||
|
"giropay": false,
|
||||||
|
"inghomepay": false,
|
||||||
|
"kbc": false,
|
||||||
|
"mistercash": false
|
||||||
|
},
|
||||||
|
"oscar": {
|
||||||
|
"allow_anon_checkout": true,
|
||||||
|
"cancelled_order_status": "cancelled",
|
||||||
|
"complete_order_status": "complete",
|
||||||
|
"dashboard_items_per_page": 21,
|
||||||
|
"default_currency": "EUR",
|
||||||
|
"delayed_payment_status": "delayed-payment",
|
||||||
|
"enable_cost_prices": false,
|
||||||
|
"enable_long_description": true,
|
||||||
|
"enable_retail_prices": false,
|
||||||
|
"enable_reviews": true,
|
||||||
|
"enable_wishlist": true,
|
||||||
|
"homepage": true,
|
||||||
|
"initial_order_status": "new",
|
||||||
|
"moderate_reviews": true,
|
||||||
|
"order_pipeline": [],
|
||||||
|
"paid_order_status": "paid",
|
||||||
|
"product_image_geometry": "x230",
|
||||||
|
"refund_order_status": "refund",
|
||||||
|
"shop_base_url": "shop",
|
||||||
|
"show_tax_everywhere": true,
|
||||||
|
"tax_rates": [
|
||||||
|
"high"
|
||||||
|
],
|
||||||
|
"use_price_incl_tax": true,
|
||||||
|
"waiting_for_payment_order_status": "pending-payment"
|
||||||
|
},
|
||||||
|
"oscar_catalogue": {
|
||||||
|
"minimum_quantity_attribute_code": "min_quantity",
|
||||||
|
"slug_id_separator": "-"
|
||||||
|
},
|
||||||
|
"oscar_elasticsearch": {
|
||||||
|
"facet_bucket_size": 10,
|
||||||
|
"facets": [],
|
||||||
|
"filter_available": false,
|
||||||
|
"price_ranges": "25, 100, 500, 1000",
|
||||||
|
"query_page_size": 100
|
||||||
|
},
|
||||||
|
"oscar_importexport": {
|
||||||
|
"category_extra_fields": [],
|
||||||
|
"category_separator": "|",
|
||||||
|
"product_extra_fields": [],
|
||||||
|
"stockrecord_extra_fields": []
|
||||||
|
},
|
||||||
|
"sentry logging": {
|
||||||
|
"dsn_secret": "https://309733f5d10b9210a99e269db8b95520:112999435d89a49657fc417fd42dbbec@sentry.mandelblog.com/34"
|
||||||
|
},
|
||||||
|
"shipping": {
|
||||||
|
"enable_charged_shipping": true,
|
||||||
|
"enable_free_shipping": true,
|
||||||
|
"enable_weightbased_shipping": true,
|
||||||
|
"paid_shipping_first": true
|
||||||
|
},
|
||||||
|
"themes": {
|
||||||
|
"theme": "default",
|
||||||
|
"theme-switcher": false
|
||||||
|
},
|
||||||
|
"theme": {
|
||||||
|
"category_navigation_depth": 1,
|
||||||
|
"danger_color": "",
|
||||||
|
"header": "header5",
|
||||||
|
"info_color": "",
|
||||||
|
"menu_depth": 2,
|
||||||
|
"name": "template9",
|
||||||
|
"primary_color": "#da0627",
|
||||||
|
"secondary_color": "",
|
||||||
|
"secondary_text_color": "",
|
||||||
|
"success_color": "",
|
||||||
|
"warning_color": "",
|
||||||
|
"dark_color": "#333333"
|
||||||
|
},
|
||||||
|
"wagtail": {
|
||||||
|
"wagtailuserbar_position": "bottom-right"
|
||||||
|
},
|
||||||
|
"wagtail content page": {
|
||||||
|
"actionbuttons": false,
|
||||||
|
"add_to_cart": false,
|
||||||
|
"heading": true,
|
||||||
|
"html": false,
|
||||||
|
"image": true,
|
||||||
|
"paragraph": true,
|
||||||
|
"table": true
|
||||||
|
},
|
||||||
|
"wagtail_blog": {
|
||||||
|
"items_per_page": 10
|
||||||
|
},
|
||||||
|
"wagtail_oscar": {
|
||||||
|
"sitemap_include_child_products": false
|
||||||
|
},
|
||||||
|
"ai_auto_translate": {
|
||||||
|
"auto_translated_fields": [
|
||||||
|
"catalogue.product.title",
|
||||||
|
"catalogue.product.description"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,6 +1,23 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
|
{% get_current_language as current_language %}
|
||||||
|
{% get_available_languages as available_languages %}
|
||||||
|
{% get_language_info_list for available_languages as languages %}
|
||||||
|
|
||||||
|
<form action="{% url 'set_language' %}" method="post" class="ms-lang-switcher me-2" aria-label="{% trans 'Language switcher' %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input name="next" type="hidden" value="{{ request.path }}"/>
|
||||||
|
<label for="header-language-switcher" class="visually-hidden">{% trans "Language" %}</label>
|
||||||
|
<select id="header-language-switcher" name="language" class="form-select form-select-sm" onchange="this.form.submit()">
|
||||||
|
{% for language in languages %}
|
||||||
|
<option value="{{ language.code }}" {% if language.code == current_language %}selected{% endif %}>
|
||||||
|
{{ language.code|upper }}
|
||||||
|
</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</form>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-label="{% trans 'Open Search' %}"
|
aria-label="{% trans 'Open Search' %}"
|
||||||
@@ -22,4 +39,3 @@
|
|||||||
<div class="alert-messages-header" aria-live="polite">
|
<div class="alert-messages-header" aria-live="polite">
|
||||||
{% include "oscar/partials/alert_messages.html" with messages=messages %}
|
{% include "oscar/partials/alert_messages.html" with messages=messages %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user