From c8da3466a6ebba2066ab2278dc499dedd21f0478 Mon Sep 17 00:00:00 2001 From: Kerim Date: Mon, 19 Jun 2023 23:52:12 +0500 Subject: [PATCH] detail api --- themes/nurgul/pages/productdetail.htm | 159 ++++++++++++++++++ themes/nurgul/partials/loader/loader.htm | 5 + .../nurgul/partials/product/detail_footer.htm | 110 ++++++++++++ themes/nurgul/partials/scripts/prodCard.htm | 2 +- .../nurgul/partials/scripts/productDetail.htm | 70 ++++++++ themes/nurgul/partials/scripts/setModal.htm | 3 +- 6 files changed, 346 insertions(+), 3 deletions(-) create mode 100755 themes/nurgul/pages/productdetail.htm create mode 100755 themes/nurgul/partials/loader/loader.htm create mode 100755 themes/nurgul/partials/product/detail_footer.htm create mode 100755 themes/nurgul/partials/scripts/productDetail.htm diff --git a/themes/nurgul/pages/productdetail.htm b/themes/nurgul/pages/productdetail.htm new file mode 100755 index 0000000..87f588f --- /dev/null +++ b/themes/nurgul/pages/productdetail.htm @@ -0,0 +1,159 @@ +url = "/product/detail/:id" +layout = "main" +title = "Product/detail" +== +param('id'); +} +?> +== +{% partial 'loader/loader' id='loader' %} +
+ +
+
+
+
+
+

{{'prod.detail.header'|_}}

+
+ +
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+ + {% partial 'product/detail_footer' %} +
+ + + +{% partial 'scripts/productDetail' add='add.cart'|_ query= '?locale=tm' prodId=prodId %} diff --git a/themes/nurgul/partials/loader/loader.htm b/themes/nurgul/partials/loader/loader.htm new file mode 100755 index 0000000..a3329c1 --- /dev/null +++ b/themes/nurgul/partials/loader/loader.htm @@ -0,0 +1,5 @@ +
+
+ +
+
\ No newline at end of file diff --git a/themes/nurgul/partials/product/detail_footer.htm b/themes/nurgul/partials/product/detail_footer.htm new file mode 100755 index 0000000..f58cab2 --- /dev/null +++ b/themes/nurgul/partials/product/detail_footer.htm @@ -0,0 +1,110 @@ + +
+
+
+
+
+ +
+
+
+

+
+
+ +
+
+

Shipping policy for our store

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nam voluptates rerum neque ea libero numquam officiis ipsum, consectetur ducimus dicta in earum repellat sunt ab odit laboriosam cupiditate ipsam, doloremque.

+
    +
  • 1-2 business days (Typically by end of day)
  • +
  • 30 days money back guaranty
  • +
  • 24/7 live support
  • +
  • odio dignissim qui blandit praesent
  • +
  • luptatum zzril delenit augue duis dolore
  • +
  • te feugait nulla facilisi.
  • +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Omnis, quia vel eligendi ipsam. Ea, quasi quam ducimus recusandae unde ipsa nam rem a minus tenetur quae sint voluptatem voluptate inventore.

+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SIZEXSSS/MMM/LLXL
UK46 - 86 - 1010 - 1212 - 1614 - 1618
+ EUREUROPE + 3234 - 3634 - 3838 - 4040 - 4442 - 4446
+ USA/CANADA CA + 02 - 42 - 66 - 88 - 1210 - 1214
AUS / NZ46 - 86 - 1010 - 1212 - 1614 - 1618
+
+ +
+
+
+
+
+
+
+
+ diff --git a/themes/nurgul/partials/scripts/prodCard.htm b/themes/nurgul/partials/scripts/prodCard.htm index ca23cdd..cf9e6c6 100755 --- a/themes/nurgul/partials/scripts/prodCard.htm +++ b/themes/nurgul/partials/scripts/prodCard.htm @@ -8,7 +8,7 @@ var card = `
- + Nurgul `+product.name+` ` diff --git a/themes/nurgul/partials/scripts/productDetail.htm b/themes/nurgul/partials/scripts/productDetail.htm new file mode 100755 index 0000000..6f391b1 --- /dev/null +++ b/themes/nurgul/partials/scripts/productDetail.htm @@ -0,0 +1,70 @@ +{% put scripts %} + + +{% endput %} diff --git a/themes/nurgul/partials/scripts/setModal.htm b/themes/nurgul/partials/scripts/setModal.htm index d826d08..7729e24 100755 --- a/themes/nurgul/partials/scripts/setModal.htm +++ b/themes/nurgul/partials/scripts/setModal.htm @@ -5,7 +5,6 @@ $('#modal_img').html(`Nurgul `+ product.name +``); $('#modal_name').html(product.name); $('#modal_price').html(product.formatted_price); - $('#modal_price').html(product.formatted_price); $('#modal_desc').html(product.description); $('#modal_add').html('{{add}}'); if(product.hasOwnProperty('special_price')){ @@ -17,4 +16,4 @@ } -{% endput %} \ No newline at end of file +{% endput %}