Spaces:
Sleeping
Sleeping
Update templates/order.html (#10)
Browse files- Update templates/order.html (9c9a99412ef33338cd2b2dbfd39925ff755904cb)
Co-authored-by: v l s r subrahmanyam <[email protected]>
- templates/order.html +52 -5
templates/order.html
CHANGED
@@ -107,6 +107,9 @@
|
|
107 |
color: #ffcc00;
|
108 |
font-weight: bold;
|
109 |
}
|
|
|
|
|
|
|
110 |
</style>
|
111 |
</head>
|
112 |
<body>
|
@@ -137,18 +140,62 @@
|
|
137 |
</div>
|
138 |
|
139 |
<!-- Price -->
|
140 |
-
<div class="cart-item-actions">
|
141 |
-
<strong>{{ item_parts[3].strip().replace('Price:', '') }}</strong>
|
|
|
|
|
|
|
142 |
</div>
|
143 |
</div>
|
144 |
{% endfor %}
|
145 |
|
146 |
<!-- Total Section -->
|
147 |
-
<div class="order-summary mt-4">
|
148 |
<p><strong>Sub-Total:</strong> <span class="total-price">${{ order.Total_Amount__c }}</span></p>
|
149 |
<p><strong>Discount:</strong> <span class="total-price">${{ "%.2f"|format(order.Discount__c) }}</span></p>
|
150 |
<p><strong>Total Bill:</strong> <span class="total-price">${{ "%.2f"|format(order.Total_Bill__c) }}</span></p>
|
151 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
{% else %}
|
154 |
<p class="text-center">No order details available.</p>
|
@@ -164,4 +211,4 @@
|
|
164 |
<p>Thank you for dining with us! <span>We look forward to serving you again.</span></p>
|
165 |
</footer>
|
166 |
</body>
|
167 |
-
</html>
|
|
|
107 |
color: #ffcc00;
|
108 |
font-weight: bold;
|
109 |
}
|
110 |
+
.totsl_bill{
|
111 |
+
max-width: 768px;
|
112 |
+
}
|
113 |
</style>
|
114 |
</head>
|
115 |
<body>
|
|
|
140 |
</div>
|
141 |
|
142 |
<!-- Price -->
|
143 |
+
<div class="cart-item-actions m">
|
144 |
+
<!-- <strong>{{ item_parts[3].strip().replace('Price:', '') }}</strong> -->
|
145 |
+
<!-- <strong>{{ item_parts[3].strip().replace('Price:', '') }}</strong> -->
|
146 |
+
<span style="font-size: 16px; margin-left: 20px">{{ item_parts[3].strip().replace('Price:', '') }}</span>
|
147 |
+
|
148 |
</div>
|
149 |
</div>
|
150 |
{% endfor %}
|
151 |
|
152 |
<!-- Total Section -->
|
153 |
+
<!-- <div class="order-summary mt-4">
|
154 |
<p><strong>Sub-Total:</strong> <span class="total-price">${{ order.Total_Amount__c }}</span></p>
|
155 |
<p><strong>Discount:</strong> <span class="total-price">${{ "%.2f"|format(order.Discount__c) }}</span></p>
|
156 |
<p><strong>Total Bill:</strong> <span class="total-price">${{ "%.2f"|format(order.Total_Bill__c) }}</span></p>
|
157 |
+
</div> -->
|
158 |
+
<div class="container mt-5 cart-item">
|
159 |
+
<!-- <div class="container ">
|
160 |
+
<div class="d-flex justify-content-between mb-3">
|
161 |
+
<p><strong>Sub-Total:</strong></p>
|
162 |
+
<p class="cart-item-actions">${{ order.Total_Amount__c }}</p>
|
163 |
+
</div>
|
164 |
+
<div class="d-flex justify-content-between mb-3">
|
165 |
+
<p><strong>Discount:</strong></p>
|
166 |
+
<p class="cart-item-actions">${{ "%.2f"|format(order.Discount__c) }}</p>
|
167 |
+
</div>
|
168 |
+
<div class="d-flex justify-content-between mb-3">
|
169 |
+
<p><strong>Total Bill:</strong></p>
|
170 |
+
<p class="cart-item-actions">${{ "%.2f"|format(order.Total_Bill__c) }}</p>
|
171 |
+
</div>
|
172 |
+
</div> -->
|
173 |
+
<div class="container">
|
174 |
+
<div class="d-flex justify-content-between mb-3">
|
175 |
+
<p><strong>Sub-Total:</strong></p>
|
176 |
+
<p class="cart-item-actions" style="font-size: 16px;">${{ order.Total_Amount__c }}</p>
|
177 |
+
</div>
|
178 |
+
<div class="d-flex justify-content-between mb-3">
|
179 |
+
<p><strong>Discount:</strong></p>
|
180 |
+
<p class="cart-item-actions" style="font-size: 16px;">${{ "%.2f"|format(order.Discount__c) }}</p>
|
181 |
+
</div>
|
182 |
+
<!-- Add dotted line here -->
|
183 |
+
<div style="border-bottom: 1px dotted #000; margin-bottom: 10px;"></div>
|
184 |
+
<div class="d-flex justify-content-between mb-3">
|
185 |
+
<p><strong>Total Bill:</strong></p>
|
186 |
+
<p class="cart-item-actions" style="font-size: 16px;">${{ "%.2f"|format(order.Total_Bill__c) }}</p>
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
</div>
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
|
200 |
{% else %}
|
201 |
<p class="text-center">No order details available.</p>
|
|
|
211 |
<p>Thank you for dining with us! <span>We look forward to serving you again.</span></p>
|
212 |
</footer>
|
213 |
</body>
|
214 |
+
</html>
|