From 488e6e8145ce64dd124ba6187a5d7b5813bb927b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?=
 =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?=
 <erik@darapsa.co.id>
Date: Tue, 20 Jul 2021 14:50:48 +0800
Subject: Trying to get weight shouldn't be the template user's concern

---
 pages/ord/checkout.html | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

(limited to 'pages/ord')

diff --git a/pages/ord/checkout.html b/pages/ord/checkout.html
index ae2e694..19617fe 100644
--- a/pages/ord/checkout.html
+++ b/pages/ord/checkout.html
@@ -84,14 +84,8 @@
 							<div class="container my-4">
 								<div class="block-body">
 									<div class="row">
-										<div class="form-group col-md-6 d-flex align-items-center">[tmp weight][perl products]
-											my $weight = 0.0;
-											for my $item (@{$Carts->{main}}) {
-												$weight += tag_data('products', 'weight', "$item->{code}") * $item->{quantity};
-											}
-											return $weight;
-											[/perl][/tmp]
-											[pikul_codes company="__PIKUL_ANTERAJA__" district="[value address2]" city="[value city]" province="[value state]" weight="[scratch weight]"]
+										<div class="form-group col-md-6 d-flex align-items-center">
+											[pikul_codes company="__PIKUL_ANTERAJA__" district="[value address2]" city="[value city]" province="[value state]"]
 											<label class="ml-3" for="ship_widget">
 												<strong class="d-block text-uppercase mb-2">[shipping-desc]</strong>
 												<span class="text-muted text-sm">
-- 
cgit v1.2.3