How to add custom product meta or product attributes below the product description?

In order to add (custom) product attributes and product meta below the product description/title, add the below filter to your themes functions.php file. /** * Add product attributes to the product description. * * @param string $description Description. * @param int $item_id Item ID. * @param WC_Order_Item_Product $item Product. * * @return string */ function Read more about How to add custom product meta or product attributes below the product description?[…]

How to add the product image to the template?

Use below filter function to add the product thumbnail image below the product description on the template. Add the code to your functions.php file within your theme. function add_product_image( $description, $item_id, $item ) { $product = $item->get_product(); if ( $product ) { $description = sprintf( ‘<table style=”border:none;padding:0;margin:0;”><tr><td width=”10%%” style=”border:none;padding:0;”><img src=”%s” width=”50″ height=”50″/></td><td width=”40%%” style=”border:none;padding:0;text-align:left;”>%s</td></tr></table>’, wp_get_attachment_url( Read more about How to add the product image to the template?[…]

How to display the parent product SKU below the product description?

If you are using product variations and you would only like to show the parent product SKU instead of the variation SKU’s, make sure to disable the setting “Show SKU as meta data” and add below filter to your themes functions.php file. /** * Add product attributes to the product description. * * @param string Read more about How to display the parent product SKU below the product description?[…]

How to add invoice information meta?

In order to add invoice information meta to the PDF invoice template, simply use below filter function as an example and add it to your themes functions.php file. /** * Add PDF invoice information meta. * * @param array $info Invoice info meta. * @param BEWPI_Invoice $invoice Invoice object. * * @return array. */ function add_invoice_information_meta( Read more about How to add invoice information meta?[…]

How to change the invoice information meta?

In order to change the invoice information meta from the PDF invoice template, simply use below filter function as an example and add it to your themes functions.php file. /** * Change PDF invoice information meta. * * @param array $info Invoice info meta. * @param BEWPI_Invoice $invoice Invoice object. * * @return array. */ function Read more about How to change the invoice information meta?[…]