snippets.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="kingfisher_product_slider" inherit_id="website.snippets" name="Feature/New Product">
  5. <xpath expr="//div[@id='snippet_structure']" position="inside">
  6. <div>
  7. <div class="oe_snippet_thumbnail">
  8. <img class="oe_snippet_thumbnail_img" src="/kingfisher/static/src/img/New-Product.png"/>
  9. <span class="oe_snippet_thumbnail_title">Feature/New Product</span>
  10. </div>
  11. <section class="oe_snippet_body">
  12. <div class="oe_product_slider" data-product-count="0" data-slider-type="" contentEditable="false">
  13. <div class="container">
  14. <div class="slider_product_slider">
  15. <div class="col-md-12">
  16. <h3 id="snippet-title" class="section-title style1"><span>NOVEDADES</span></h3>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </section>
  22. </div>
  23. <div>
  24. <div class="oe_snippet_thumbnail">
  25. <img class="oe_snippet_thumbnail_img" src="/kingfisher/static/src/img/Information-Block.png"/>
  26. <span class="oe_snippet_thumbnail_title">Information Block</span>
  27. </div>
  28. <section class="oe_snippet_body policy-wrap">
  29. <div class="container">
  30. <div class="block-policy row">
  31. <div class="policy policy1 col-md-3 col-sm-6 ">
  32. <div class="policy-inner"><i class="fa fa-money"></i>
  33. <h2>entrega a los 30 días</h2>o su dinero es devuelto</div>
  34. </div>
  35. <div class="policy policy2 col-md-3 col-sm-6 ">
  36. <div class="policy-inner"><i class="fa fa-truck"></i><h2>entrega gratuita</h2>por su compra desde x reales</div>
  37. </div>
  38. <div class="policy policy3 col-md-3 col-sm-6 ">
  39. <div class="policy-inner"><i class="fa fa-calendar"></i><h2>menor precio</h2>garantía</div>
  40. </div>
  41. <div class="policy policy4 col-md-3 col-sm-6 ">
  42. <div class="policy-inner"><i class="fa fa-check-square"></i><h2>compra segura</h2>garantía </div>
  43. </div>
  44. </div>
  45. </div>
  46. </section>
  47. </div>
  48. <div>
  49. <div class="oe_snippet_thumbnail">
  50. <img class="oe_snippet_thumbnail_img" src="/kingfisher/static/src/img/our-brand.png"/>
  51. <span class="oe_snippet_thumbnail_title">NUESTRAS MARCAS</span>
  52. </div>
  53. <section class="oe_snippet_body">
  54. <div class="oe_brand_slider" contentEditable="false">
  55. <div class="container">
  56. <div class="row our-brands">
  57. <div class="col-md-12">
  58. <h3 id="snippet-title" class="section-title style1"><span>NUESTRAS MARCAS</span></h3>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </section>
  64. </div>
  65. </xpath>
  66. <xpath expr="//div[@id='snippet_options']" position="inside">
  67. <div data-snippet-option-id='kingfisher_product_slider'
  68. data-selector=".oe_product_slider">
  69. <li data-product_slider="">
  70. <a class="oe_product_slider">Modify</a>
  71. </li>
  72. </div>
  73. </xpath>
  74. <xpath expr="//div[@id='snippet_options']" position="inside">
  75. <div data-snippet-option-id='kingfisher_brand_slider'
  76. data-selector=".oe_brand_slider">
  77. <li data-product_slider="">
  78. <a class="oe_brand_slider">Modify</a>
  79. </li>
  80. </div>
  81. </xpath>
  82. <xpath expr="//div[@id='snippet_effect']" position="inside">
  83. <div>
  84. <div class="oe_snippet_thumbnail">
  85. <img class="oe_snippet_thumbnail_img" src="/kingfisher/static/src/img/Parralax-Kingfisher.png"/>
  86. <span class="oe_snippet_thumbnail_title">Hero Images Slider</span>
  87. </div>
  88. <div id="carousel_example_generic" class="oe_snippet_body home-slider carousel slide mb0">
  89. <!-- Indicators -->
  90. <ol class="carousel-indicators">
  91. <li data-target="#carousel_example_generic" data-slide-to="0" class="active"></li>
  92. <li data-target="#carousel_example_generic" data-slide-to="1"></li>
  93. </ol>
  94. <!-- Wrapper for slides -->
  95. <div class="carousel-inner" role="listbox">
  96. <div class="item active" style="background-image: url(/kingfisher/static/src/img/banner1.png)">
  97. <div class="container">
  98. <div class="row content"><img /> </div></div></div>
  99. <div class="item" style="background-image: url(/kingfisher/static/src/img/banner2.png)"><div class="container">
  100. <div class="row content"><img/> </div></div></div>
  101. </div>
  102. </div>
  103. </div>
  104. </xpath>
  105. </template>
  106. <template id="slider_script" inherit_id="website.assets_frontend" name="Product Slider script">
  107. <xpath expr="/t" position="inside">
  108. <script type="text/javascript" src="/kingfisher/static/src/js/kingfisher_front.js"></script>
  109. </xpath>
  110. </template>
  111. <template id="assets_editor" inherit_id="website.assets_editor" name="Event Editor">
  112. <xpath expr="." position="inside">
  113. <script type="text/javascript" src="/kingfisher/static/src/js/kingfisher.editor.js"></script>
  114. </xpath>
  115. </template>
  116. <template id="our_brand_slider" name="Brand Snippet">
  117. <div class="container">
  118. <div class="row our-brands">
  119. <div class="col-md-12">
  120. <h3 class="section-title style1" t-if="not brand_header"><span>NUESTRAS MARCAS</span></h3>
  121. <h3 class="section-title style1" t-if="brand_header"><span><t t-esc="brand_header"/></span></h3>
  122. <t t-set="website_brans_img" t-value="website.get_brand_img()"/>
  123. <div class="owl-carousel" t-if="website_brans_img">
  124. <t t-foreach="website_brans_img" t-as="brand">
  125. <div class="brand-logo">
  126. <img t-att-src="website.image_url(brand, 'image','210x88')" title="" alt="" width="210" height="88"/>
  127. </div>
  128. </t>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </template>
  134. <template id="product_snippet" name="Product Snippet">
  135. <div class="slider_product_slider" contentEditable="false">
  136. <div class="container">
  137. <div class="row featured-pro">
  138. <div class="col-md-12">
  139. <t t-if="products">
  140. <h3 class="section-title style1">
  141. <span>
  142. <t t-if="header">
  143. <t t-esc="header"/>
  144. </t>
  145. </span>
  146. </h3>
  147. <div class="owl-carousel" t-if="products">
  148. <t t-foreach="products" t-as="product">
  149. <div class="product">
  150. <a t-attf-href="/shop/product/#{slug(product)}">
  151. <div class="product-img">
  152. <img t-att-src="website.image_url(product, 'image', None if product_image_big else '300x300')" title="" alt="" />
  153. </div>
  154. </a>
  155. <t t-foreach="website.get_multiple_images(product.id)" t-as="im">
  156. <div class="image-back">
  157. <span itemprop="image">
  158. <img t-att-src="website.image_url(im, 'image')"/>
  159. </span>
  160. </div>
  161. </t>
  162. <div class="pro-info" align="center">
  163. <div class="title">
  164. <a t-attf-href="/shop/product/#{slug(product)}">
  165. <span t-esc="product.name"/>
  166. </a>
  167. </div>
  168. <div class="price-box" t-if="website.user_id != user_id">
  169. <span class="special-price">
  170. <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price" t-if="product.product_variant_ids">
  171. <b>
  172. <t t-if="(product.lst_price - product.price) &gt; 0.1">
  173. <del class="text-danger" style="white-space: nowrap;" t-field="product.lst_price" t-field-options='{
  174. "widget": "monetary",
  175. "from_currency": "product.company_id.currency_id",
  176. "display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
  177. }'/>&amp;nbsp;
  178. </t>
  179. <span t-field="product.price" style="white-space: nowrap;" t-field-options='{ "widget": "monetary",
  180. "display_currency": "user_id.partner_id.property_product_pricelist.currency_id"}'
  181. t-esc="str('{p:0,.0f}'.format(p=product.price).replace(',','.'))">
  182. </span> &#8370;
  183. <span itemprop="priceCurrency" style="display:none;" t-esc="user_id.partner_id.property_product_pricelist.currency_id.name"/>
  184. <span itemprop="price" style="display:none;" t-esc="product.price"/>
  185. </b>
  186. </div>
  187. </span>
  188. </div>
  189. <div class="add-cart " align="center" t-if="not user_id.partner_id.name == 'Public user'">
  190. <!-- <div class="add-cart "> -->
  191. <form action="/shop/cart/update" method="post" t-if="not len(product.product_variant_ids)&gt;1">
  192. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  193. </form>
  194. <t t-if="len(product.product_variant_ids)&gt;1">
  195. <a t-attf-href="/shop/product/#{slug(product)}">
  196. <button class="btn btn-primary" onclick="submit();">
  197. Elija su opción de compra.</button>
  198. </a>
  199. </t>
  200. <t t-if="not len(product.product_variant_ids)&gt;1">
  201. <a t-attf-href="/shop/product/#{slug(product)}">
  202. <button class="btn btn-primary" onclick="submit();">
  203. Elija su opción de compra.</button>
  204. </a>
  205. </t>
  206. </div>
  207. </div>
  208. </div>
  209. </t>
  210. </div>
  211. </t>
  212. <t t-if="not products">
  213. <h3 class="section-title style1" t-if="not header"><span>LANZAMIENTOS</span></h3>
  214. <h3 class="section-title style1" t-if="header"><span><t t-esc="header"/></span></h3>
  215. <div t-if="not products" class="col-md-6">Product Not Available</div>
  216. </t>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </template>
  222. </data>
  223. </openerp>