Add InPost Pay integration to admin templates
- Created a new template for the cart rule form with custom label, switch, and choice widgets. - Implemented the InPost Pay block in the order details template for displaying delivery method, APM, and VAT invoice request. - Added legacy support for the order details template to maintain compatibility with older PrestaShop versions.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{% extends "@Modules/inpostizi/views/templates/admin/config/support/partials/block.html.twig" %}
|
||||
|
||||
{% block support_block_extra_classes %}mb-0{% endblock %}
|
||||
|
||||
{% block support_block_header %}
|
||||
{% endblock %}
|
||||
|
||||
{% block support_block_body_extra_classes %}p-4{% endblock %}
|
||||
|
||||
{% block support_block_body_content %}
|
||||
<div class="row row-flex mt-n3 align-items-center">
|
||||
<div class="col-md-9 col-lg-7 mr-auto col-12 col-xs-12 mt-3">
|
||||
<p class="h2 mb-4">
|
||||
{{ 'InPost Pay plugin configuration'|legacy_trans }}
|
||||
</p>
|
||||
<p class="mb-3">
|
||||
{{ 'Take care of the correct exposure of the InPost Pay service, so that:'|legacy_trans }}
|
||||
</p>
|
||||
|
||||
<ul class="mb-3">
|
||||
<li class="mb-1">
|
||||
{{ 'Buyers quickly recognize that when they make a purchase from your store, they can benefit from a fast and secure purchase and delivery service by a company whose services they know and trust, which directly contributes to customers\' purchasing decisions.'|legacy_trans }}
|
||||
</li>
|
||||
<li>
|
||||
{{ 'With the correct placement of the widget, you help your customers notice the InPost Pay service, which will allow them to finalize their purchases on your site without having to enter their data, which is especially important for customers who prefer anonymous shopping without logging in.'|legacy_trans }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p class="mb-0">
|
||||
{{ 'Check out Merchant\'s dedicated Guide to the correct implementation of the InPost Pay service. It gathers in one place information on the current branding of InPost Pay, guidelines for the visual implementation of the widget, and best practices worth following when building a positive user experience among online shoppers. You can find Merchant\'s guide in the "useful links" section.'|legacy_trans }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-3 col-12 col-xs-12 mt-3">
|
||||
<iframe
|
||||
style="max-width: 100%; width: 100%; aspect-ratio: 5/3"
|
||||
src="https://www.youtube.com/embed/xw25aFIUIIo?si=m1w2tT2mbGPVgs9R"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,37 @@
|
||||
{% extends "@Modules/inpostizi/views/templates/admin/config/support/partials/block.html.twig" %}
|
||||
|
||||
{% block support_block_extra_classes %}h-100 mb-0{% endblock %}
|
||||
|
||||
{% block support_block_header_content %}
|
||||
<i class="material-icons mr-2">info</i>
|
||||
<span>
|
||||
{{ 'Useful links'|legacy_trans }}
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block support_block_body_extra_classes %}p-3{% endblock %}
|
||||
|
||||
{% block support_block_body_content %}
|
||||
<ul class="mb-0 pl-3">
|
||||
<li class="mb-1">
|
||||
<a href="https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/308674566/Standardy+implementacji+InPost+Pay">
|
||||
{{ 'Merchant\'s guide - how to correctly display InPost Pay in your online store'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="mb-1">
|
||||
<a href="https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/163643393/InPost+Pay+-+PrestaShop">
|
||||
{{ 'InPost Pay plugin configuration instructions'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="mb-1">
|
||||
<a href="https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/154271751/Zwroty+i+transakcje#Panel-Merchanta">
|
||||
{{ 'Returns manual'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://malaysia.prod.0000wpo12a.vodeno.online/centaur-web/">
|
||||
{{ 'Merchant panel - previewing transactions and handling returns'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,63 @@
|
||||
{% extends "@Modules/inpostizi/views/templates/admin/config/support/partials/block.html.twig" %}
|
||||
|
||||
{% block support_block_extra_classes %}mb-3{% endblock %}
|
||||
|
||||
{% block support_block_header_content %}
|
||||
<i class="material-icons mr-2">check_circle</i>
|
||||
<span>
|
||||
{{ 'Module status'|legacy_trans }}:
|
||||
|
||||
{% if status.OK %}
|
||||
<span class="text-success text-uppercase">OK</span>
|
||||
{% else %}
|
||||
<span class="text-danger text-uppercase">{{ 'Error'|trans({}, 'validators') }}</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block support_block_body_extra_classes %}p-0{% endblock %}
|
||||
|
||||
{% block support_block_body_content %}
|
||||
<div class="row no-gutters">
|
||||
{% if not status.OK %}
|
||||
<div class="col-12 col-xs-12 border-bottom">
|
||||
<div class="p-3">
|
||||
<ul class="pl-3 mb-0">
|
||||
{% for error in status.errors %}
|
||||
<li>{{ error|raw }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-6 col-xs-6 border-right">
|
||||
<div class="p-3">
|
||||
<a href="{{ path('admin_inpost_izi_config_download_data') }}" class="btn btn-sm btn-block px-0 d-flex justify-content-center align-items-center btn-link">
|
||||
<span class="material-icons btn-icon">content_copy</span>
|
||||
{{ 'Download logs and module data'|legacy_trans }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 col-xs-6">
|
||||
{{ form_start(form) }}
|
||||
|
||||
{{ form_errors(form) }}
|
||||
<div class="p-3 d-flex align-items-center justify-content-center h-100">
|
||||
{{ form_widget(form.debugEnabled, {
|
||||
'label': 'Debug mode',
|
||||
'attr': {
|
||||
'class': 'form-check-input',
|
||||
'data-toggle': 'toggle',
|
||||
'data-on': 'On',
|
||||
'data-off': 'Off',
|
||||
'data-onstyle': 'success',
|
||||
'data-offstyle': 'danger',
|
||||
'data-size': 'sm',
|
||||
},
|
||||
}) }}
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,16 @@
|
||||
{% block support_block %}
|
||||
<div class="card {% block support_block_extra_classes %}{% endblock %}">
|
||||
{% block support_block_header %}
|
||||
<div class="card-header p-3 h3 mb-0 d-flex align-items-center font-weight-bold">
|
||||
{% block support_block_header_content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block support_block_body %}
|
||||
<div class="card-body panel-body {% block support_block_body_extra_classes %}{% endblock %}">
|
||||
{% block support_block_body_content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,32 @@
|
||||
{% extends "@Modules/inpostizi/views/templates/admin/config/support/partials/block.html.twig" %}
|
||||
|
||||
{% block support_block_extra_classes %}mb-0 h-100{% endblock %}
|
||||
|
||||
{% block support_block_header_content %}
|
||||
<i class="material-icons mr-2">error</i>
|
||||
<span>
|
||||
{{ 'Contact and support'|legacy_trans }}
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block support_block_body_extra_classes %}p-3{% endblock %}
|
||||
|
||||
{% block support_block_body_content %}
|
||||
<ul class="mb-0 pl-3">
|
||||
<li class="mb-1">
|
||||
<a href="https://inpostpay.pl/kontakt">
|
||||
{{ 'Technical support - use the contact form'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="mb-1">
|
||||
<a href="https://inpostpay.pl/kontakt">
|
||||
{{ 'Contact your sales representative'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/163905538/FAQ+InPost+Pay">
|
||||
{{ 'FAQ'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,22 @@
|
||||
{% extends "@Modules/inpostizi/views/templates/admin/config/support/partials/block.html.twig" %}
|
||||
|
||||
{% block support_block_extra_classes %}mb-0{% endblock %}
|
||||
|
||||
{% block support_block_header_content %}
|
||||
<i class="material-icons mr-2">new_releases</i>
|
||||
<span>
|
||||
{{ 'News'|legacy_trans }}
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block support_block_body_extra_classes %}p-3{% endblock %}
|
||||
|
||||
{% block support_block_body_content %}
|
||||
<ul class="mb-0 pl-3">
|
||||
<li>
|
||||
<a href="https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/163643393/InPost+Pay+-+PrestaShop">
|
||||
{{ 'Link to the module'|legacy_trans }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user