[*] BO : Added option to always rewrite friendly url of product
This commit is contained in:
1 parent
bf3c27e864
commit
0de9c3ac6c
4 files changed
+18
-3
No files matched your search
+1
-1
@@ -136,7 +136,7 @@ function copy2friendlyURL()
|
||||
if (typeof(id_product) == 'undefined')
|
||||
id_product = false;
|
||||
|
||||
if (!$('#link_rewrite_' + id_language).val().length || !id_product)//check if user didn't type anything in rewrite field, to prevent overwriting
|
||||
if (ps_force_friendly_product || !$('#link_rewrite_' + id_language).val().length || !id_product)//check if user didn't type anything in rewrite field, to prevent overwriting
|
||||
{
|
||||
$('#link_rewrite_' + id_language).val(str2url($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8').replace('%', ''));
|
||||
if ($('#friendly-url'))
|
||||
|
||||
Reference in new issue
Block a user