summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-07-30 09:50:36 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-07-30 09:50:36 +0700
commit1e1e3226e84b6e8d7a628855051e0768b7d4e71e (patch)
treea21130f87a919376dabf27f57b886a844cea3fa4 /indoteknik_custom/views
parentf369c55dc0b696449eddad6cd30f2db285b49542 (diff)
cr reminder email checkout
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/website_user_cart.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/indoteknik_custom/views/website_user_cart.xml b/indoteknik_custom/views/website_user_cart.xml
index 97e8cf02..7303a221 100755
--- a/indoteknik_custom/views/website_user_cart.xml
+++ b/indoteknik_custom/views/website_user_cart.xml
@@ -136,6 +136,7 @@
% set product_price = cart.get_price_website(cart.product_id.id)
% set product_template_id = cart.product_id.product_tmpl_id.id
% set subtotal = product_price['price'] * cart.qty
+ % set flashsale = cart.check_product_flashsale(cart.product_id.id)
<tr>
% if cart.program_line_id:
% set promo, free_product = cart.get_data_promo(cart.program_line_id.id)
@@ -212,6 +213,36 @@
No promotion available for this product.
</td>
% endif
+
+ % elif flashsale['is_flashsale'] == True:
+ <td style="border: 1px solid #dddddd; padding: 8px;">
+ <div class="container text-center">
+ <div style="display: flex; gap: 20px; align-items: center; margin-top: 8px;">
+ <div class="col-3">
+ <img src="${base_url}api/image/product.template/image_512/${product_template_id}"
+ alt="${cart.product_id.name}" width="120" height="120"
+ style="object-fit: fill; object-position: center;"/>
+ </div>
+ <div class="col-6">
+ <div style="font-weight: 600; margin-bottom: 8px;">${cart.product_id.name}</div>
+ <div style="display: flex; gap: 20px; align-items: center; margin-bottom: 8px;">
+ <div style="color: grey; text-decoration: line-through; margin-right: 10px;">
+ Rp ${cart.format_currency(product_price['price'])}
+ </div>
+ <div style="color: red; font-weight: bold;">
+ Rp ${cart.format_currency(flashsale['price'])}
+ </div>
+ </div>
+ <div style="color: grey;">
+ ${cart.product_id.default_code} | Berat barang: ${cart.product_id.weight} Kg
+ </div>
+ </div>
+ <div class="col-3">
+ <button type="button" class="btn btn-outline-secondary" style="margin-left: 11rem; margin-top: 2.5rem;">${cart.format_integer(cart.qty)}</button>
+ </div>
+ </div>
+ </div>
+ </td>
% else:
<td style="border: 1px solid #dddddd; padding: 8px;">
<div class="container text-center">