27 lines
577 B
PHTML
27 lines
577 B
PHTML
|
|
<script>
|
|
require([
|
|
'jquery',
|
|
'prototype',
|
|
], function(jQuery){
|
|
function syncronize() {
|
|
params = {
|
|
};
|
|
|
|
new Ajax.Request('<?php echo $block->getAjaxSyncUrl() ?>', {
|
|
loaderArea: false,
|
|
asynchronous: true,
|
|
parameters: params,
|
|
onSuccess: function(transport) {
|
|
var response = JSON.parse(transport.responseText);
|
|
}
|
|
});
|
|
}
|
|
|
|
jQuery('#order_button').click(function () {
|
|
syncronize();
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<?php echo $block->getButtonHtml() ?> |