# fluent-cart/1.6.5/assets/Print.js

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.5. 2 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.5/code/assets/Print.js
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.5/raw/assets/Print.js
- Modified: 2026-06-11T12:21:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.5/code/assets/Print.js#L10-L20`.

```javascript
document.getElementById("print-button").addEventListener("click",()=>{let t=e("FluentCart Receipt");t&&document.getElementById("fct-order-invoice-no")&&(t=e("Receipt Number")+": "+document.getElementById("fct-order-invoice-no").innerText),document.querySelector(".fct-email-template-content"),document.querySelector(".fct-email-template-content-inner"),printThis(document.getElementById("receipt"),{debug:!1,importCSS:!0,printContainer:!0,pageTitle:t,removeInline:!1,printDelay:100,beforePrint:function(){},afterPrint:function(){}});function e(n){var i;return(((i=window.fct_receipt_data)==null?void 0:i.translations)||{})[n]||n}});window.addEventListener("DOMContentLoaded",function(){if(new URLSearchParams(window.location.search).get("download")==="1"){const e=document.getElementById("print-button");e&&e.click()}});

```
