Hi,
Thanks for the report.
That's right, the setting "size" was just changing the height of the barcode but was not affecting the width.
So, I think that we have to modify the plugin "attach serial" in order to change how the settings are handle.
Please edit the file "plugins/hikaserial/attachserial/attachserial.php" and replace
if(empty($d['size']))
$d['size'] = 40;
$BarCode = hikaserial::get('inc.barcode', 'ean13', $d['size'], $width, $showText);
By
if(empty($d['h']))
$d['h'] = 40;
if(empty($d['size']))
$d['size'] = 1;
$BarCode = hikaserial::get('inc.barcode', 'ean13', $d['h'], $d['size'], $showText);
So it will use the parameter "size" to define the width of the barcode lines (in pixels) and it will use the parameter "height" in order to set the height of the barcode (in pixels).
You can't really define a fixed width of a EAN13 barcode, but you can use the parameter "size" as a width coefficient.
Regards,