Hide bundle items from Order Printer Pro receipts / invoices

 
 
Note that if you have Add bundle items as separate line items to orders? app setting disabled, then this help article is not applicable to you.
 

 
By default, the dummy bundle product and its bundle items are individually displayed on the Order Printer Pro receipts / invoices.
 
Merchants may choose to hide the bundle items from these receipts / invoices for operational purposes.
 

 
Open the Order Printer Pro app and go to the Manage Templates tab.
 
Find Receipt / Invoice template and click Edit template.
notion image
 
 
Search for the below code snippet in your template:
for line_item in line_items
 
notion image
 
Add this code snippet before {% for line_item in line_items %}:
<!-- BUNDLE KIT --> {% assign discount_application_titles = discount_applications | map: 'title' %} <!-- BUNDLE KIT -->
 
And add this code snippet after {% for line_item in line_items %}:
<!-- BUNDLE KIT --> {% assign line_item_is_a_bundle_item = false %} {% assign total_bundle_items_price = 0 %} {% for discount_allocation in line_item.discount_allocations %} {% if discount_application_titles[discount_allocation.discount_application_index] contains 'Bundle Kit:' %} {% assign line_item_is_a_bundle_item = true %} {% assign bundle_item_line_price = line_item.original_price | times: line_item.quantity %} {% assign total_bundle_items_price = total_bundle_items_price | plus: bundle_item_line_price %} {% endif %} {% endfor %} {% if line_item_is_a_bundle_item == true %} {% continue %} {% endif %} <!-- BUNDLE KIT -->
 
 
Once added, the template code should look something like this:
notion image
 
 
Click Save to save the template.
 
Once saved, bundle items shall be hidden from the Order Printer Pro receipts / invoices.
 

 

Hide “Bundle Kit” discounts in pricing summary

 
By default, the Order Printer Pro receipts / invoices displays Bundle Kit discounts in the pricing summary:
 
notion image
 
 
Merchants may choose to hide Bundle Kit discounts in the pricing summary following below.
 

 
Search for the below code snippet in your template:
<div class="pricing"> {% if total_discounts != 0.0 %}
 
Replace the entire {% if total_discounts != 0.0 %} block shown below…
notion image
 
with the following code snippet:
<!-- BUNDLE KIT --> {% assign total_discount_amount = total_discounts | minus: total_bundle_items_price %} {% assign non_bundle_discount_amount = 0 %} {% for discount_application in discount_applications %} {% if discount_application.title contains 'Bundle Kit:' %}{% continue %}{% endif %} {% assign non_bundle_discount_amount = non_bundle_discount_amount | plus: discount_application.value %} {% endfor %} {% assign total_discount_amount = non_bundle_discount_amount %} {% if total_discount_amount != 0.0 %} <div class="pricing-row text-align-right"> <div class="pricing-title"> {{ TEXT_discount }}<br> {% for discount_application in discount_applications %} {% if discount_application.title contains 'Bundle Kit:' %}{% continue %}{% endif %} {{ discount_application.title }} {% endfor %} </div> <div class="pricing-details"> -{{ total_discount_amount | money }} </div> </div> {% endif %} <!-- BUNDLE KIT -->
 
 
Once replaced, the template code should look something like this:
notion image
 
 
Click Save to save the template.
 
Once saved, the Bundle Kit discounts will be hidden in the pricing summary.
notion image