Hi,
When you work on OpenCart, you keep Save and then re-Open same product for further changes.
In "Joomla" they use: Save or Apply or Close ...
And if "Apply" uses Ajax, it will be perfect.
I can make this change, using Ajax for you, if you want.
Thanks
And who do you refer to, by using "you"?massalha wrote:I can make this change, using Ajax for you, if you want.
If you want, make it, and put it in the extensions' store, free or paid, it doesn't really matter
See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart
Hi,
you can add following lines to admin/view/template/common/header.tpl, somewhere inside <script> tags
bye
you can add following lines to admin/view/template/common/header.tpl, somewhere inside <script> tags
Code: Select all
$(document).ready(function(){
$("a.button").each(function(){
var onclick = $(this).attr('onclick');
if(typeof onclick != 'undefined' && onclick.indexOf('#form') != -1 && onclick.indexOf('.submit()') != -1){
var apply = '<a class="button" onclick="apply_form()">Apply</a>';
$(this).after(apply);
}
});
});
function apply_form(){
$.ajax({
type: 'POST',
url: $('#form').attr('action'),
data: $('#form').serialize(),
dataType: 'text',
success: function(data){
if($(data).find('.error').length > 0){
$("#form").submit();
}else{
$('.success,.warning,.attention,.required').remove();
$(data).find('.success,.warning,.attention,.required').clone().appendTo('div.breadcrumb').css('margin-top','10px');
setTimeout(function(){$('.success,.warning,.attention,.required').remove()},5000);
}
}
});
}
Who is online
Users browsing this forum: No registered users and 30 guests