Hi!
Unfortunately it’s not possible to change the styles of the quantity based on the content (actual quantity)
However, you can add an extra class to the row based on the quantity, by using a filter (read this if you don’t know what to do with this):
add_filter( 'wpo_wcpdf_item_row_class', 'wpo_wcpdf_product_quantity', 10, 4 );
function wpo_wcpdf_product_quantity ( $classes, $template_type, $order, $item_id = '' ) {
$item_meta = $order->get_item_meta( $item_id );
if ( !empty($item_meta['_qty']) ) {
$qty = (int) array_shift( $item_meta['_qty'] );
if ($qty > 1) {
$classes = $classes . ' multiple';
}
}
return $classes;
}
You can then enter the following in the “Custom styles” box on the customizer tab, which will make the higher quantity bold:
.order-details tr.multiple .quantity {
font-weight: bold;
}
If you need more help with this or any other questions, please email us at [email protected] (include order number or license key). As a paying customer you’re entitled to priority support! We’re also not allowed to use this forum for support of our premium extensions.
Ewout