Module FedEx pour proposer le suivi du colis par FedEx + l'envoi d'un mail avec l'URL de suivi.
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
{javascripts file="assets/js/bootstrap-switch/bootstrap-switch.js"}
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
/*
|
||||
$(".freeshipping-activation-FedEx").bootstrapSwitch();
|
||||
|
||||
$(".freeshipping-activation-FedEx").on("switch-change", function(e, data){
|
||||
var is_checked = data.value;
|
||||
var form = $("#freeshippingform");
|
||||
$('body').append('<div class="modal-backdrop fade in" id="loading-event"><div class="loading"></div></div>');
|
||||
$.ajax({
|
||||
url: form.attr('action'),
|
||||
type: form.attr('method'),
|
||||
data: form.serialize()
|
||||
}).done(function(){
|
||||
$("#loading-event").remove();
|
||||
})
|
||||
.success(function() {
|
||||
if (is_checked) {
|
||||
$('#config-btn-0').removeClass('disabled');
|
||||
$('#table-prices-FedEx').hide('slow');
|
||||
} else {
|
||||
$('#config-btn-0').addClass('disabled');
|
||||
$('#table-prices-FedEx').show('slow');
|
||||
}
|
||||
})
|
||||
.fail(function(jqXHR, textStatus, errorThrown){
|
||||
$("#loading-event").remove();
|
||||
$('#freeshipping-failed-body').html(jqXHR.responseJSON.error);
|
||||
$("#freeshipping-failed").modal("show");
|
||||
});
|
||||
});
|
||||
*/
|
||||
});
|
||||
</script>
|
||||
@@ -13,21 +13,6 @@
|
||||
<p>{intl d='fedex.bo.default' l="FedEx Module allows to send your products all around the world with FedEx."}</p>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="freeshipping-failed" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3>{intl d='fedex.bo.default' l="An error occured"}</h3>
|
||||
</div>
|
||||
<div class="modal-body" id="freeshipping-failed-body">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="general-block-decorator">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@@ -35,23 +20,9 @@
|
||||
<form method="POST" action="{url path='/admin/module/fedex/configuration/update'}">
|
||||
{form_hidden_fields form=$form}
|
||||
|
||||
{form_field form=$form field="tracking_url"}
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="{$label_attr.for}">
|
||||
<input type="text" name="{$name}" id="{$label_attr.for}" />
|
||||
{$label}
|
||||
|
||||
{form_error form=$form field="tracking_url" value={module_config module="FedEx" key='tracking_url' locale="en_US"}}
|
||||
<br />
|
||||
<span class="error">{$message}</span>
|
||||
{/form_error}
|
||||
</label>
|
||||
{if ! empty($label_attr.help)}
|
||||
<span class="help-block">{$label_attr.help}</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{loop type="module-config" name="boucle" module="FedEx" variable="tracking_url"}
|
||||
{render_form_field field="tracking_url" value=$VALUE}
|
||||
{/loop}
|
||||
<button type="submit" name="fedex_save_configuration" value="save" class="form-submit-button btn btn-sm btn-default" title="{intl d='fedex.bo.default' l='Save'}">
|
||||
{intl d='fedex.bo.default' l='Save'}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user