Hi @seoidau,
Have you updated the plugin? In previous versions, there was a <br> tag that is no longer available.
Can you check, please?
Best regards,
YIThemes
Hi. I am using the current version, 1.1.0.
Hi @seoidau,
It can depend on any other plugin you have activated on your site. Pre-Order 1.1.0 doesn’t print <br> tags, and it has never printed <small> tags. It could also depend on the WooCommerce version you are using. If you haven’t already, we suggest updating it to the latest version.
About your suggestion, are you referring to add a “Pre-Order product” label to the cart page to highlight the products that are Pre-Order? If so, we will add this feature soon.
Best regards,
YIThemes
All plugins I am using are current.
In this particular store I have both backorder (WooCommerce function) and pre-order (your plugin) products active. What I have noticed is this:
WooCommerce backorder:
<br></br>
<small>Backordered: 1</small>
</td>
YITH Pre-Order:
<div>Pre-Order product</div>
<br></br>
<small></small>
</td>
Is perhaps WooCommerce putting the br and small tags in because this product requires a note? Is your plugin able to leverage this for consistency and insert ‘Pre-Order product’ in the small tags if they are going to be there anyway?
As for my suggestion, yes. Apart from the product button changing to say pre-order, there is no further reminder of this until in emails. Just like with backorder products, further advice/reminders about this transaction type would assist customers.
Hi @seoidau,
It seems that these tags (<br> and <small>) are generated by WooCommerce in the template email-order-items.php. Please take a look.
if ( ! empty( $item_meta->meta ) ) {
echo '<br/><small>' . nl2br( $item_meta->display( true, true, '_', "\n" ) ) . '</small>';
}
YITH Pre-Order for WooCommerce uses the action ‘woocommerce_order_item_meta_start’ in order to display ‘Pre-Order product’ below the item name. This is all the plugin does. It doesn’t print any other tags or elements.
I hope this clears up any doubts.
Cheers,
YIThemes
Okay, thanks for clarifying. So nothing can be done to fix products marked as pre-order items from activating the unnecessary code?
Hi @seoidau,
It seems that from the next WooCommerce release you won’t have this problem anymore, because the developers have made some changes in the email-order-items.php file.
Stay tuned and don’t miss out the new WooCommerce version.
Best regards,
YIThemes