Change countries list on back-end
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Change countries list on back-end
I need to customize countries list on customer page on back-end.
As I see it is done here:
How can I do it elegantly ? I need remove unnecessary countries from list.
Thank you!
As I see it is done here:
Code: Select all
Aimeos.Customer = {
init : function() {
this.setupComponents();
Aimeos.Customer.Product.init();
},
select: function(ev, ui) {
var node = $(ev.delegateTarget);
node.closest("card-block").find("input.item-countryid").val(node.val());
},
setupComponents : function() {
$(".item-customer .item-countryid.combobox").combobox({
getfcn: Aimeos.getCountries,
select: Aimeos.Customer.select
});
}
};
Thank you!
Re: Change countries list on back-end
Overwrite the "Aimeos.getCountries" function to return only those countries you want to show.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star