Le 24/04/2018 à 1:51 PM, DOKI4ever a dit :
Hello,
I have the same problem, did anyone solve it? Y tried to change the Validate.php, but not all the codes get saved.
works for me for space and special characters
add in this code each characters you want to allow with \
example you want allow ( put \(
like
/classes/Validate.php
return !$upc || preg_match('/^[a-zA-Z 0-9-\(\)-]{0,64}$/', $upc);
/www/admin/themes/default/template/controllers/products/informations.tpl
<input maxlength="64" type="text" id="upc" name="upc" value="{$product->upc|escape:'html':'UTF-8'}" />
/public_html/themes/default-bootstrap/product.tpl
insert wher your want to see UPC
<div id="product_upc"{if empty($product->upc) || !$product->upc} style="display: none;"{/if}> <label> <i class="fas fa-industry" aria-hidden="true"></I> {l s='UPC:'} </label> <span class="editable" itemprop="upc"{if !empty($product->upc) && $product->upc} content="{$product->upc}"{/if}>{if !isset($groups)}{$product->upc|escape:'html':'UTF-8'}{/if}</span>