diff --git a/plugins/romanah/bagisto/components/Session.php b/plugins/romanah/bagisto/components/Session.php index 7838bee..c5295e5 100644 --- a/plugins/romanah/bagisto/components/Session.php +++ b/plugins/romanah/bagisto/components/Session.php @@ -111,4 +111,25 @@ class Session extends ComponentBase return $dataqq; } + + function onDeleteCartItemPage() + { + $getToken = SessionP::get('nurgulToken'); + $dataInput = post(); + + $response = Http::delete('http://nurgul.com.tm/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { + $http->header('Authorization', 'Bearer '.$getToken); + }); + + $dataqq = json_decode($response); + + if (!empty($dataqq)) { + Flash::success("Üstünlikli Sebede Goşuldy"); + return redirect()->refresh(); + } + } + } + + + diff --git a/themes/nurgul/pages/cart.htm b/themes/nurgul/pages/cart.htm new file mode 100755 index 0000000..5fab831 --- /dev/null +++ b/themes/nurgul/pages/cart.htm @@ -0,0 +1,62 @@ +title = "Cart" +url = "/cart" +layout = "mainN" +== +{%partial "bread" title='cart.title'|_ %} + + +
+
+
+
+
+
+ + + + + + + + +
+
+
+ + + + + + + +
{{'cart.total'|_}}0.00 TMT
+ +
+
+
+
+
+
+ diff --git a/themes/nurgul/partials/cart.htm b/themes/nurgul/partials/cart.htm index 3907bae..6907273 100755 --- a/themes/nurgul/partials/cart.htm +++ b/themes/nurgul/partials/cart.htm @@ -15,7 +15,7 @@
{{'cart.total'|_}} 0.00 TMT
- {{'cart.view.title'|_}} + {{'cart.view.title'|_}} {{'cart.checkout.title'|_}}
diff --git a/themes/nurgul/partials/header.htm b/themes/nurgul/partials/header.htm index 3d8a9b5..c7513af 100755 --- a/themes/nurgul/partials/header.htm +++ b/themes/nurgul/partials/header.htm @@ -151,6 +151,7 @@ + {% if nurgulToken != "" %} {% put scripts %}