Hi Julien,
General approach would be to wrap your “Print > Template” content in <table>
with two cells, and set width: 50%
for both cells. With some additional styling it could look like this:
<table style="padding: 10px">
<tr>
<td style="width: 50%; text-align: center">
<div style="font-size: 15pt"> </div>
[alg_wc_ean_product_image]
</td>
<td style="width: 50%; text-align: center">
[alg_wc_ean_barcode after="<br>"]
[alg_wc_ean_product_name after="<br>"]
[alg_wc_ean_product_price]
</td>
</tr>
</table>
One note about the “variation name” though – the [alg_wc_ean_product_name]
shortcode outputs full variation name with attributes, e.g. if the main variable product’s name is “Hat”, then this shortcode will output something like “Hat – Green” for variation. If that’s not what you need, and you want to output variable name and variation’s attributes on different lines, then please update the plugin to the latest v3.6.0, and replace this:
[alg_wc_ean_product_name after="<br>"]
with this:
[alg_wc_ean_product_name parent="yes" after="<br>"]
[alg_wc_ean_product_function name="get_attribute_summary" after="<br>"]
Hope this helps. Please let me know if you have any questions.