Looking for help?
< All Topics
Print

How to remove HTML from printed receipts?

PrinterCo Untitled 1 0011 WooCommerce 4

Woocommerce order printing HTML code. How to resolve this?

If your order items are printed with a mixture of HTML tags, then you will need to remove them. To do this, you must implement a hook for the before_send_order_to_iconnect filter. In that filter, you simply access it as follows:

$order->item[.....]->Description - for description
$order->item[.....]->Item - for item name

This is assuming that the order object is in a variable called $order. But you can call this whatever you like.

Previous How to build an order status page for customers in woocommerce
Next List of woocommerce plugins that are compatible with PrinterCo printing plugin
Table of Contents
0
    0
    Your Cart
    Your cart is emptyReturn to Shop