Looking for help?
< All Topics

How to display custom product data on Receipt template

#1. add custom product data to POS product data

    function custom_op_product_data($product_data,$product){
        $product_id = $product_data['id'];
        $product_data['custom_product_data'] = 'Custom product data value'; // enter your logic at here
        return $product_data;

#2. add data to receipt template composer

  <% items.forEach(function(item){ %>
            <p class="itemtext">Custom Product Data Value: 
            <%= item.product.custom_product_data %></p>
    <% }); %>
Previous How to create z-report for register
Next How to reset custom order number
Table of Contents
[elementor-template id="5546"]