snippets.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="feature" name="Feature/New Product">
  4. <section class="oe_snippet_body oe_product_slider" data-product-count="0" data-slider-type="" contentEditable="false">
  5. <div class="container">
  6. <div class="slider_product_slider">
  7. <div class="col-sm-12">
  8. <h3 id="snippet-title" class="section-title style1">
  9. <span>NEW ARRIVALS</span>
  10. </h3>
  11. </div>
  12. </div>
  13. </div>
  14. </section>
  15. </template>
  16. <template id="info_block" name="Information Block">
  17. <section class="oe_snippet_body policy-wrap">
  18. <div class="container">
  19. <div class="block-policy row">
  20. <div class="policy policy1 col-md-3 col-sm-6 ">
  21. <div class="policy-inner"><i class="fa fa-money fa-4x"></i>
  22. <h2>30 days return</h2>money back</div>
  23. </div>
  24. <div class="policy policy2 col-md-3 col-sm-6 ">
  25. <div class="policy-inner"><i class="fa fa-truck fa-4x"></i><h2>free shipping</h2>on all orders over $99</div>
  26. </div>
  27. <div class="policy policy3 col-md-3 col-sm-6 ">
  28. <div class="policy-inner"><i class="fa fa-calendar fa-4x"></i><h2>lowest price</h2>guarantee</div>
  29. </div>
  30. <div class="policy policy4 col-md-3 col-sm-6 ">
  31. <div class="policy-inner"><i class="fa fa-check-square fa-4x"></i><h2>safe shopping</h2>guarantee </div>
  32. </div>
  33. </div>
  34. </div>
  35. </section>
  36. </template>
  37. <template id="brands" name="Our Brands">
  38. <section class="oe_snippet_body oe_brand_slider">
  39. <div class="container">
  40. <div class="row our-brands">
  41. <div class="col-md-12">
  42. <h3 id="snippet-title" class="section-title style1"><span>Our Brands</span></h3>
  43. </div>
  44. </div>
  45. </div>
  46. </section>
  47. </template>
  48. <template id="kingfisher_product_option" inherit_id="website.snippet_options" name="Modify Options">
  49. <xpath expr="//div" position="after">
  50. <div data-js="kingfisher_product_slider"
  51. data-snippet-option-id='kingfisher_product_slider'
  52. data-selector=".oe_product_slider">
  53. <li data-product_slider=''>
  54. <a class="oe_product_slider_pop" >Modify</a>
  55. </li>
  56. </div>
  57. <div data-js="kingfisher_brand_slider"
  58. data-snippet-option-id='kingfisher_brand_slider'
  59. data-selector=".oe_brand_slider">
  60. <li data-brand_slider=''>
  61. <a class="oe_brand_slider">Modify</a>
  62. </li>
  63. </div>
  64. </xpath>
  65. </template>
  66. <template id="s_hero_image_slider" name="Hero Images Slider">
  67. <div id="s_hero_slider" class="carousel slide s_hero oe_custom_bg" data-interval="10000" style="height: 320px;">
  68. <!-- Indicators -->
  69. <ol class="carousel-indicators">
  70. <li data-target="#s_hero_slider" data-slide-to="0" class="active"></li>
  71. <li data-target="#s_hero_slider" data-slide-to="1"></li>
  72. </ol>
  73. <div class="carousel-inner">
  74. <div class="item oe_img_bg oe_custom_bg active" style="background-image: url(/kingfisher/static/src/img/banner1.jpg)">
  75. <div class="container">
  76. <div class="row content">
  77. </div>
  78. </div>
  79. </div>
  80. <div class="item oe_img_bg oe_custom_bg" style="background-image: url(/kingfisher/static/src/img/banner2.jpg)">
  81. <div class="container">
  82. <div class="row content">
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </template>
  89. <template id="kingfisher_custom_snippet" inherit_id="website.snippets" name="Feature/New Product">
  90. <xpath expr="//div[@id='snippet_structure']/div[@class='o_panel_body']" position="inside">
  91. <t t-snippet="kingfisher.feature" t-thumbnail="/kingfisher/static/src/img/New-Product.png"/>
  92. <t t-snippet="kingfisher.info_block" t-thumbnail="/kingfisher/static/src/img/Information-Block.png"/>
  93. <t t-snippet="kingfisher.brands" t-thumbnail="/kingfisher/static/src/img/our-brand.png"/>
  94. </xpath>
  95. <xpath expr="//div[@id='snippet_effect']/div[@class='o_panel_body']" position="inside">
  96. <t t-snippet="kingfisher.s_hero_image_slider" t-thumbnail="/kingfisher/static/src/img/Parralax-Kingfisher.png"/>
  97. </xpath>
  98. </template>
  99. <template id="slider_script" inherit_id="website.assets_frontend" name="Product Slider script">
  100. <xpath expr="/t" position="inside">
  101. <script type="text/javascript" src="/kingfisher/static/src/js/kingfisher_front.js"></script>
  102. </xpath>
  103. </template>
  104. <template id="assets_editor" inherit_id="website.assets_editor" name="Event Editor">
  105. <xpath expr="." position="inside">
  106. <script type="text/javascript" src="/kingfisher/static/src/js/kingfisher.editor.js"></script>
  107. </xpath>
  108. </template>
  109. <template id="our_brand_slider" name="Brand Snippet">
  110. <div class="container">
  111. <div class="row our-brands">
  112. <div class="col-sm-12">
  113. <h3 class="section-title style1" t-if="not brand_header"><span>Our Brands</span></h3>
  114. <h3 class="section-title style1" t-if="brand_header"><span><t t-esc="brand_header"/></span></h3>
  115. <t t-set="website_brans_img" t-value="website.get_brand_img()"/>
  116. <div class="owl-carousel" t-if="website_brans_img">
  117. <t t-foreach="website_brans_img" t-as="brand">
  118. <div class="brand-logo">
  119. <img t-att-src="website.image_url(brand, 'image','210x88')" title="" alt="" width="210" height="88"/>
  120. </div>
  121. </t>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </template>
  127. <template id="product_snippet" name="Product Snippet">
  128. <div class="slider_product_slider" contentEditable="false">
  129. <div class="container">
  130. <div class="row featured-pro">
  131. <div class="col-sm-12">
  132. <t t-if="products">
  133. <h3 class="section-title style1" t-if="header">
  134. <span>
  135. <t t-esc="header"/>
  136. </span>
  137. </h3>
  138. <h3 class="section-title style1" t-if="not header and default_header == 'is_arrival'">
  139. <span>NEW ARRIVALS</span>
  140. </h3>
  141. <h3 class="section-title style1" t-if="not header and default_header == 'is_features'">
  142. <span>FEATURES PRODUCT</span>
  143. </h3>
  144. <div class="owl-carousel" t-if="products">
  145. <t t-as="product" t-foreach="products">
  146. <div class="product">
  147. <a t-attf-href="/shop/product/#{slug(product)}">
  148. <div class="product-img">
  149. <img alt="" t-att-src="website.image_url(product, 'image', None if product_image_big else '300x300')" title=""/>
  150. </div>
  151. </a>
  152. <div class="pro-info">
  153. <div class="title">
  154. <a t-attf-href="/shop/product/#{slug(product)}">
  155. <span t-esc="product.name"/>
  156. </a>
  157. </div>
  158. <div class="price-box">
  159. <span class="special-price">
  160. <div class="product_price" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" t-if="product.product_variant_ids">
  161. <b>
  162. <t t-if="(compute_currency(product.lst_price) - product.price) &gt; 0.1">
  163. <del class="text-danger mr8" style="white-space: nowrap;" t-field="product.lst_price" t-field-options="{ &quot;widget&quot;: &quot;monetary&quot;, &quot;from_currency&quot;: &quot;product.company_id.currency_id&quot;, &quot;display_currency&quot;: &quot;website.currency_id&quot; }"/>
  164. </t>
  165. <span style="white-space: nowrap;" t-field="product.price" t-field-options="{ &quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;website.currency_id&quot; }"/>
  166. </b>
  167. </div>
  168. </span>
  169. </div>
  170. <div class="add-cart">
  171. <form action="/shop/cart/update" method="post">
  172. <input name="csrf_token" t-att-value="request.csrf_token()" type="hidden"/>
  173. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  174. <button class="btn btn-primary" onclick="submit();">
  175. <i class="fa fa-shopping-cart"/>Add to cart</button>
  176. </form>
  177. </div>
  178. </div>
  179. </div>
  180. </t>
  181. </div>
  182. </t>
  183. <t t-if="not products">
  184. <h3 class="section-title style1" t-if="header">
  185. <span>
  186. <t t-esc="header"/>
  187. </span>
  188. </h3>
  189. <h3 class="section-title style1" t-if="not header and default_header == 'is_arrival'">
  190. <span>NEW ARRIVALS</span>
  191. </h3>
  192. <h3 class="section-title style1" t-if="not header and default_header == 'is_features'">
  193. <span>FEATURES PRODUCT</span>
  194. </h3>
  195. <div class="col-md-6" t-if="not products">Product Not Available</div>
  196. </t>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. </template>
  202. </odoo>