Forum Replies Created
-
AuthorPosts
-
Hi Victor,
Hmm… That’s odd… I’ve just re-tested it on my server, and it seems to be working fine here – the fee amount is visible in the fee line as well – please check this screenshot. Would it be possible to share access to your site, so I could log in and check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option, and I will continue solving it remotely.
Hi,
Yes, that’s possible. It’s quite straightforward actually – please take a look at this screenshot – each variation has its own EAN field. Please give it a try and let me know if you have any questions.
P.S. And yes, when the customer switches between variations on the frontend, EAN changes according to the selected variation.
Hi again, Alexandre,
I wasn’t able to make the final release today, however, I did finish your task. I’ve just sent you the newest plugin version (v2.7.0-dev) via WeTransfer. After the update, please go to “WooCommerce > Settings > Product Notes > Advanced” and uncheck the new “Formatting Options > Escape HTML > Admin orders: Private notes” checkbox there.
Please give it a try and let me know if it’s working as expected.
Hi Alexandre,
Ok, got it. Will be trying to release the new plugin version a bit later today.
Hi,
I believe this is theme-related. Could you please let me know which theme are you using? And if it’s a paid one – could you please send it to me (at [email protected])? Or alternatively, you can share access to your site.
Hi Alexandre,
Sorry for the late reply.
By “Order Details page” you mean admin order edit page, correct? If that’s the case – you are right, we are escaping HTML there, which means that instead of:
… this is a test note in bold…
you will see:
… this is a test note in <strong>bold</strong>…
Let me try to add some options to make this behavior customizable in our plugin. Will get back to you soon.
Hi Julien,
Thank you ๐ I really appreciate it!
Regarding styling – yes, I’ve tried styling
<div>as well, but got much better results styling<table>instead. Sometimes it’s a challenge to know which CSS is supported in TCPDF. There are some articles about it I found on Google, e.g. this one, but in the end, I think, you will still have to test it and see if it really works.March 4, 2022 at 6:06 pm in reply to: Automatically delete the EAN when duplicating a product in WooCommerce #85135Hi Julien,
Not sure if I’m getting it correctly, but wouldn’t the “Admin product duplicate” option that I mentioned yesterday, do the trick? Or am I missing something?
You can now exclude EAN from the admin “Duplicate” product action. There is a new checkbox โ “Admin product duplicate” (in “WooCommerce > Settings > EAN > General”). It’s enabled by default, so you need to disable it.
Hi Julien,
[alg_wc_ean_product_image]shortcode haswidthandheightattributes – they will set the image size in pixels. Both values are set to30pixels by default. Also, there is thesizeattribute, which sets the image that should be displayed (e.g. thumbnail or full) – it’s set towoocommerce_thumbnailby default, so you may want to set it to e.g.full:[alg_wc_ean_product_image width="50" height="50" size="full"]
Hi Julien,
General approach would be to wrap your “Print > Template” content in
<table>with two cells, and setwidth: 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.
Hi Julien,
Thank you ๐
> How to remove the EAN number from the field
[alg_wc_ean_product_name]Please try this:
[alg_wc_ean_product_name type="title"]
P.S. It’s adding EAN to the product name because WooCommerce adds SKU there, and they are the same in your case.
> How to vertically center the content on the label?
Unfortunately, it’s not as easy as it may seem. We are using the TCPDF library to produce PDFs in our plugin. And while this library can render the most-used HTML and CSS codes, it cannot handle all of it the way a browser can. There are a couple of solutions though (found them here):
1. Try wrapping your “Print > Template” in
<table>, and add this<div>to cells:<table> <tr> <td> <div style="font-size: 27pt"> </div> [alg_wc_ean_barcode] </td> </tr> </table>That is – we are adding an empty
<div>, and by adjusting itsfont-size, you can position the content in the middle of the cell.2. Another solution would be to simply add a number of
<br>before the content, like this:<table> <tr> <td> <br><br><br><br> [alg_wc_ean_barcode] </td> </tr> </table>> How to horizontally center the elements on the label?
Luckily, this is much easier than aligning it vertically. Again, I would suggest wrapping it in
<table>, and then you can simply addtext-align: centerstyling to your table cells, e.g.:<table> <tr> <td style="text-align: center">[alg_wc_ean_barcode]</td> </tr> </table>Hope this helps. Please let me know if you have any questions.
Hi Julien,
> How to add an internal margin on the barcode labels? (I can only set the pages margins)
There is probably a number of ways of doing it. One would be to wrap all your content in
<table>and set somepadding, i.e. try setting your “Print > Template” option to something like this:<table style="padding: 50px"> <tr> <td>[alg_wc_ean_barcode]</td> </tr> </table>> How to insert custom fields values on the barcode labels?
Please update the plugin to the latest v3.6.0. I’ve added a new shortcode there –
[alg_wc_ean_product_meta]. So now you can use it in your “Print > Template” option, e.g.:[alg_wc_ean_product_meta key="your_custom_field_key"]
Please give it a try and let me know what you think.
Hi Julien,
Please update the plugin to the latest v3.6.0. There are a couple of new options that may be useful for you:
1. You can now exclude EAN from the admin “Duplicate” product action. There is a new checkbox – “Admin product duplicate” (in “WooCommerce > Settings > EAN > General”). It’s enabled by default, so you need to disable it.
2. You can now output (on the admin product edit page) if EAN is unique in your shop. This can be enabled with the new “Check if unique” checkbox (in “WooCommerce > Settings > EAN > General > Admin product edit page”). However, please note that if you are going to hide the EAN input field with the PHP snippet we’ve discussed in another thread, then this option will have no effect.
Please give it a try and let me know what you think.
Hi again, Julien,
Please update the plugin to the latest v3.6.0. Then add this PHP snippet to your site:
add_filter( 'alg_wc_ean_edit', '__return_false' );
This should hide the EAN input field on the product edit page (and in “quick edit” and “bulk edit” as well).
Give it a try and let me know if it’s working as expected.
Hi Julien,
Ok, got it. Let me work on it (as well as on your other questions) and get back to you a bit later today.
-
AuthorPosts