Hi,
Try to change the code:
if(preg_match_all('#\{([a-z_0-9]+)\}#i',$format,$matches)){
foreach($matches[1] as $match){
if(isset($data->$match)){
$format = str_replace('{'.$match.'}',$data->$match,$format);
}else{
$format = str_replace('{'.$match.'}','',$format);
}
}
}
to:
if(preg_match_all('#\{([a-z_0-9]+) *(?:size=(?:"|\')(.*)(?:"|\'))? *\}#i',$format,$matches)){
foreach($matches[1] as $k => $match){
if(isset($data->$match)){
$copy = $data->$match;
if(!empty($matches[2][$k])){
$copy = sprintf('%0'.$matches[2][$k].'d', $copy);
}
$format = str_replace('{'.$match.'}',$copy,$format);
}else{
$format = str_replace('{'.$match.'}','',$format);
}
}
}
in the file administrator/components/com_hikashop/helpers/helper.php and that should allow you to use the size parameter for any field of the order, not just the id.