DTF Print & Press V26
About this app
DTF Print & Press application to calculate costs for custom print services based on selection.
DTF Print & Press V26 DTF Print & Press V26 Powered by SeaSide Silk Screening Name/PO Number Quantity Qty Price Breaks: 24, 36, 48, 72, 144, 288 Product Type T-Shirt - $0 Polo - $1 Fleece - $2 Cap - $3 Print Location 1 N/A - $0 Left Front Chest - $1 Right Front Chest - $1 Full Front - $2 Full Back - $2 Print Location 2 N/A - $0 Left Front Chest - $1 Right Front Chest - $1 Full Front - $2 Full Back - $2 Print Location 3 N/A - $0 Left Front Chest - $1 Right Front Chest - $1 Full Front - $2 Full Back - $2 Print Location 4 N/A - $0 Left Front Chest - $1 Right Front Chest - $1 Full Front - $2 Full Back - $2 Total Price: $0.00
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>DTF Print & Press V26</title>
<meta name="description" content="DTF Print & Press application to calculate costs for custom print services based on selection.">
<meta name="keywords" content="DTF, print, press, custom apparel, pricing calculator">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous">
</script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const qtySlider = document.getElementById('quantity-slider');
const qtyInput = document.getElementById('quantity');
const productType = document.getElementById('product-type');
const printLoc1 = document.getElementById('print-loc-1');
const printLoc2 = document.getElementById('print-loc-2');
const printLoc3 = document.getElementById('print-loc-3');
const printLoc4 = document.getElementById('print-loc-4');
const productPrices = {
"T-Shirt": 0,
"Polo": 1,
"Fleece": 2,
"Cap": 3
};
const locationPrices = {
"N/A": 0,
"Left Front Chest": 1,
"Right Front Chest": 1,
"Full Front": 2,
"Full Back": 2
};
qtySlider.addEventListener('input', () => {
qtyInput.value = qtySlider.value;
calculateTotal();
});
qtyInput.addEventListener('input', () => {
if(qtyInput.value < 1) qtyInput.value = 1;
qtySlider.value = qtyInput.value;
calculateTotal();
});
productType.addEventListener('change', calculateTotal);
printLoc1.addEventListener('change', calculateTotal);
printLoc2.addEventListener('change', calculateTotal);
printLoc3.addEventListener('change', calculateTotal);
printLoc4.addEventListener('change', calculateTotal);
function calculateTotal() {
const quantity = parseInt(qtyInput.value);
const productPrice = productPrices[productType.value] || 0;
const loc1Price = locationPrices[printLoc1.value] || 0;
const loc2Price = locationPrices[printLoc2.value] || 0;
const loc3Price = locationPrices[printLoc3.value] || 0;
const loc4Price = locationPrices[printLoc4.value] || 0;
const total = (productPrice + loc1Price + loc2Price + loc3Price + loc4Price) * quantity;
document.getElementById('total-price').innerText = `$${total.toFixed(2)}`;
}
calculateTotal(); // Call it for the first calculation
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #ffcc00, #ff6699);
color: #333;
}
#main-container {
margin-top: 50px;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
label {
font-weight: bold;
}
.slider {
width: 100%;
}
#total-price {
font-size: 24px;
color: #007bff;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h2 class="text-center">DTF Print & Press V26</h2>
<small class="text-center d-block mb-4">Powered by SeaSide Silk Screening</small>
<form>
<div class="mb-3">
<label for="name-po" class="form-label">Name/PO Number</label>
<input type="text" class="form-control" id="name-po" required>
</div>
<div class="mb-3">
<label for="quantity" class="form-label">Quantity</label>
<input type="number" class="form-control" id="quantity" value="1" min="1" required>
<input type="range" class="slider" id="quantity-slider" value="1" min="1" max="500" step="1">
<small class="form-text">Qty Price Breaks: 24, 36, 48, 72, 144, 288</small>
</div>
<div class="mb-3">
<label for="product-type" class="form-label">Product Type</label>
<select class="form-select" id="product-type">
<option value="T-Shirt">T-Shirt - $0</option>
<option value="Polo">Polo - $1</option>
<option value="Fleece">Fleece - $2</option>
<option value="Cap">Cap - $3</option>
</select>
</div>
<div class="mb-3">
<label for="print-loc-1" class="form-label">Print Location 1</label>
<select class="form-select" id="print-loc-1">
<option value="N/A">N/A - $0</option>
<option value="Left Front Chest">Left Front Chest - $1</option>
<option value="Right Front Chest">Right Front Chest - $1</option>
<option value="Full Front">Full Front - $2</option>
<option value="Full Back">Full Back - $2</option>
</select>
</div>
<div class="mb-3">
<label for="print-loc-2" class="form-label">Print Location 2</label>
<select class="form-select" id="print-loc-2">
<option value="N/A">N/A - $0</option>
<option value="Left Front Chest">Left Front Chest - $1</option>
<option value="Right Front Chest">Right Front Chest - $1</option>
<option value="Full Front">Full Front - $2</option>
<option value="Full Back">Full Back - $2</option>
</select>
</div>
<div class="mb-3">
<label for="print-loc-3" class="form-label">Print Location 3</label>
<select class="form-select" id="print-loc-3">
<option value="N/A">N/A - $0</option>
<option value="Left Front Chest">Left Front Chest - $1</option>
<option value="Right Front Chest">Right Front Chest - $1</option>
<option value="Full Front">Full Front - $2</option>
<option value="Full Back">Full Back - $2</option>
</select>
</div>
<div class="mb-3">
<label for="print-loc-4" class="form-label">Print Location 4</label>
<select class="form-select" id="print-loc-4">
<option value="N/A">N/A - $0</option>
<option value="Left Front Chest">Left Front Chest - $1</option>
<option value="Right Front Chest">Right Front Chest - $1</option>
<option value="Full Front">Full Front - $2</option>
<option value="Full Back">Full Back - $2</option>
</select>
</div>
</form>
<div id="total-price">Total Price: $0.00</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!