Quelques nouveaux fichiers et modules en conf

This commit is contained in:
2021-01-25 18:42:52 +01:00
parent 9b4d5e339b
commit af1552b390
212 changed files with 38073 additions and 817 deletions

View File

@@ -0,0 +1,19 @@
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
{intl l="Customer comment" d="ordercomment.bo.default"}
</h3>
</div>
<div class="panel-body">
{$comment = ''}
{loop type="order.comment.comment" name="order_comment_loop" order_id=$order_id}
{$comment = $ORDER_COMMENT}
{/loop}
{if $comment}
{$comment|nl2br nofilter}
{else}
{intl l="No comment for this order was defined." d="ordercomment.bo.default"}
{/if}
</div>
</div>

View File

@@ -0,0 +1 @@
$('#cart > a').slice(-2).remove();

View File

@@ -0,0 +1,10 @@
{form name="order.comment.form"}
<form id="order-comment-form" action="{url path='/ordercomment/set/comment'}" method="post">
{form_hidden_fields form=$form}
{include file="OrderComment/comment-input.html"}
<a href="{navigate to="index"}" role="button" class="btn btn-default"><i class="fa fa-chevron-left"></i> {intl l="Continue Shopping"}</a>
<button type="submit" class="btn btn-primary pull-right"><i class="fa fa-chevron-right"></i> {intl l="Proceed checkout"}</button>
</form>
{/form}

View File

@@ -0,0 +1,13 @@
<div class="panel panel-default">
<div class="panel-heading">
{intl l="Add your comment" d="ordercomment.fo.default"}
</div>
<div class="panel-body">
{if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
<div id="alert-comment"></div>
{form_field form=$form field='comment'}
<textarea class="form-control" name="{$name}" placeholder="{intl l='Type your message here' d='ordercomment.fo.default'}">{loop type="order.comment.session.comment" name="session-order-comment" }{ifloop rel="session-order-comment"}{$ORDER_COMMENT}{/ifloop}{/loop}</textarea>
{/form_field}
</div>
</div>

View File

@@ -0,0 +1,11 @@
{loop type="order.comment.comment" name="order_comment_loop" order_id="$order_id" }
<table style="border:1px solid #333; margin:0; padding:0;">
<col style="padding: 0mm 3mm;" />
<tr>
<td class="table-3-module" style="border-left:solid 3px #f6993c;">
<strong>{intl l="Message" d="ordercomment.bo.default"}</strong> :<br />
{$ORDER_COMMENT|nl2br nofilter}
</td>
</tr>
</table>
{/loop}