pdf capability
-
I added product description in invoice.php, but my description is long that the words can’t cross over a page in pdf. How can I solve this problem? Cause my item need a long desciption
<?php
if (!empty($item[‘product’])) {
$_product = $item[‘product’]->is_type( ‘variation’ ) ? wc_get_product( $item[‘product’]->get_parent_id() ) : $item[‘product’];
if ( method_exists( $_product, ‘get_description’ ) ) {
echo $_product->get_description();
}
}
?>I added this coding in <table class=”order-details”>
The page I need help with: [log in to see the link]
- The topic ‘pdf capability’ is closed to new replies.