theme.xml 108 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Logo -->
  5. <template customize_show="True" id="website.layout_logo_show" inherit_id="website.layout" name="Show Logo">
  6. <xpath expr="//header//a[@class='navbar-brand']" position="attributes">
  7. <attribute name="style">display:none;</attribute>
  8. </xpath>
  9. <xpath expr="//header//a[@class='navbar-brand']" position="before">
  10. <a class="navbar-brand logo" href="/page/website.homepage">
  11. <img alt="Homepro" src="/kingfisher_pro/static/src/img/kingfisher-logo.png" title="Homepro"/>
  12. </a>
  13. </xpath>
  14. <xpath expr="//footer" position="after">
  15. <a class="cd-top" href="#">
  16. <i class="fa fa-chevron-up"/>
  17. </a>
  18. </xpath>
  19. </template>
  20. <!-- Total on hover -->
  21. <template id="hover_total">
  22. <div id="cart_total" t-if="website_sale_order">
  23. <div class="cart-content">
  24. <div class="product-desc">
  25. <t t-as="line" t-foreach="website_sale_order.website_order_line">
  26. <div class="pd-row">
  27. <span class="product-img">
  28. <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
  29. <span t-field="line.product_id.image_small" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;img-rounded&quot;, &quot;alt-field&quot;: &quot;name&quot;}"/>
  30. </a>
  31. </span>
  32. <div class="product-detail">
  33. <p class="product-name">
  34. <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
  35. <t t-esc="line.product_id.name"/>
  36. </a>
  37. </p>
  38. <p>
  39. <span class="king_pro_cart_quantity" t-esc="int(line.product_uom_qty)"/>x
  40. <span t-field="line.price_unit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;user_id.partner_id.property_product_pricelist.currency_id&quot;}"/>
  41. <span class="price">
  42. <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">detalles</a></span>
  43. </p>
  44. </div>
  45. </div>
  46. </t>
  47. <div class="total" id="king_cart">
  48. <p class="">
  49. <div class="row" id="order_total">
  50. <span class="col-xs-6 text-right h4">Subtotal:</span>
  51. <span class="col-xs-6 text-left h4" style="white-space: nowrap;">
  52. <span style="white-space: nowrap;" t-field="website.sale_get_order().amount_total" t-field-options="{ &quot;widget&quot;: &quot;monetary&quot;, &quot;from_currency&quot;: &quot;website.sale_get_order().pricelist_id.currency_id&quot;, &quot;display_currency&quot;: &quot;website.currency_id&quot; }"/>
  53. </span>
  54. </div>
  55. </p>
  56. </div>
  57. <div class="button-box">
  58. <a class="view-all btn" href="/shop/cart">Ver Todo</a>
  59. <a class="proceed btn" href="/shop/checkout">Proceder a Pagar</a>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </template>
  65. <!-- Top header -->
  66. <template id="kingfisher_pro_header_layout" inherit_id="website.layout" name="Top Header">
  67. <xpath expr="//head//title" position="after">
  68. <t t-set="current_language" t-value="lang"/>
  69. </xpath>
  70. <xpath expr="//html/head" position="inside">
  71. <link href="/kingfisher_pro/static/src/img/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  72. </xpath>
  73. <xpath expr="//header//li//a[@href='/shop/cart']" position="attributes">
  74. <attribute name="style">display:none;</attribute>
  75. </xpath>
  76. <xpath expr="//div[@id='wrapwrap']//header//div[@class='container']" position="attributes">
  77. <attribute name="class">container header-middle header-nav</attribute>
  78. </xpath>
  79. <!-- Remove Administrator -->
  80. <xpath expr="//ul[@id='top_menu']/li[last()]" position="attributes">
  81. <attribute name="style">display:none;</attribute>
  82. </xpath>
  83. <xpath expr="//div[@id='wrapwrap']//header//div[@class='container header-middle header-nav']" position="before">
  84. <div class="header-top">
  85. <div class="top-header">
  86. <div class="container">
  87. <div class="top-row">
  88. <div class="row">
  89. <div class="top-left col-md-6 col-sm-8 col-xs-8 text-left">
  90. <p class="call-us">
  91. <span>
  92. <a t-attf-href="tel: #{res_company.phone}">
  93. <i class="fa fa-mobile"/>
  94. <span t-field="res_company.phone"/>
  95. </a>
  96. </span>
  97. </p>
  98. <a t-att-href="'mailto:%s' % res_company.email">
  99. <p class="mail">
  100. <span>
  101. <i class="fa fa-envelope-o"/>
  102. </span>
  103. <span t-field="res_company.email" t-ignore="true"/>
  104. </p>
  105. </a>
  106. </div>
  107. <div class="top-right col-md-6 col-sm-4 col-xs-4 text-right">
  108. <ul class="links">
  109. <div class="buscador col-xs-6">
  110. <form action="/shop" method="get" role="form formu_buscador">
  111. <div class="row">
  112. <div class="form-group">
  113. <div class="input-group">
  114. <t t-set="search_text" t-value="search"/>
  115. <input class="form-control" name="search" placeholder="Buscar..." required="required" type="text"/>
  116. <span class="input-group-btn">
  117. <button class="btn btn-info buscar" type="submit">
  118. <i aria-hidden="true" class="fa fa-search"/>
  119. </button>
  120. </span>
  121. </div>
  122. </div>
  123. </div>
  124. </form>
  125. </div>
  126. <li class="configuration">
  127. <a class="top-link-wishlist" href="#" title="Configure">
  128. <i class="fa fa-cog"/>
  129. </a>
  130. <div class="toggle-config">
  131. <div class="options" t-if="(request.website_multilang and len(languages) &gt; 1) or editable">
  132. <ul class="language-bar js_language_selector" id="lang">
  133. <label>Idioma</label>
  134. <div class="btn-group">
  135. <button class="dropdown-toggle btn-default" data-caret="true" data-toggle="dropdown" type="button">
  136. <t t-as="lgs" t-foreach="languages">
  137. <t t-if="current_language and current_language==lgs[0]">
  138. <t t-esc="lgs[0].split('_')[0]"/>
  139. </t>
  140. </t>
  141. <span class="caret"/>
  142. </button>
  143. <ul class="dropdown-menu dropdown-menu-right js_language_selector" role="menu">
  144. <t t-as="lg" t-foreach="languages">
  145. <li t-att-class="'active' if current_language == lg[0] else None">
  146. <a class="js_change_lang" t-att-data-default-lang="editable and 'true' if lg[0] == website.default_lang_code else None" t-att-data-lang="lg[0]" t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])">
  147. <t t-esc="lg[0].split('_')[0]"/>
  148. </a>
  149. </li>
  150. </t>
  151. <li groups="base.group_website_publisher">
  152. <t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
  153. <a t-attf-href="/web#action=base.action_view_base_language_install&amp;website_id=#{website.id}&amp;url_return=#{url_return}">Agregar...</a>
  154. </li>
  155. </ul>
  156. </div>
  157. </ul>
  158. </div>
  159. <div class="personal-info">
  160. <ul>
  161. <t t-if="website.user_id != user_id">
  162. <li>Bienvenido,
  163. <b>
  164. <t t-esc="user_id.name"/></b>
  165. </li>
  166. <li>
  167. <a href="/web">Mi Cuenta</a>
  168. </li>
  169. <li>
  170. <a role="menuitem" t-attf-href="/web/session/logout?redirect=/">Salir</a>
  171. </li>
  172. </t>
  173. <t t-if="website.user_id == user_id">
  174. <li>
  175. <a href="/web/login">Ingresar</a>
  176. </li>
  177. <li>
  178. <a href="/web/signup">Registrar</a>
  179. </li>
  180. </t>
  181. </ul>
  182. </div>
  183. </div>
  184. </li>
  185. <li class="item-no">
  186. <a class="top-link-checkout" href="#" title="Checkout">
  187. <i class="fa fa-shopping-cart"/>x
  188. <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
  189. <span class="king_pro_cart_quantity" t-esc="website_sale_order and website_sale_order.cart_quantity or 0"/></a>
  190. <div class="mini-cart-content dropdown-content left-hand block block-cart skip-content skip-content--style" id="header-cart">
  191. <div class="" t-if="not website_sale_order or not website_sale_order.website_order_line">Tu Canasto esta Vacio!
  192. </div>
  193. <div class="" t-if="website_sale_order and website_sale_order.website_order_line">
  194. <div class="block-subtitle">Agregado Recientemente(s)</div>
  195. <div id="king_hover_total">
  196. <t t-call="kingfisher_pro.hover_total"/>
  197. </div>
  198. </div>
  199. </div>
  200. </li>
  201. </ul>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. </xpath>
  209. </template>
  210. <!-- Custom Footer -->
  211. <template id="kingfisher_pro_footer_customize" inherit_id="website_less.footer_default">
  212. <xpath expr="//div[@class='container hidden-print']" position="attributes">
  213. <attribute name="style">display:none;</attribute>
  214. </xpath>
  215. <xpath expr="//div[@class='container hidden-print']" position="before">
  216. <div class="footer-top hidden-print">
  217. <div class="container">
  218. <div class="row">
  219. <div class="footer-content">
  220. <div class="col-md-3 col-sm-4 footer-col">
  221. <div class="fot-col fot-address">
  222. <div class="address-list">
  223. <address itemscope="itemscope" itemtype="http://schema.org/Organization">
  224. <div t-field="res_company.partner_id" t-field-options="{ &quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;]}"/>
  225. </address>
  226. <p class="call-us">
  227. <span>
  228. <a t-attf-href="tel: #{res_company.phone}">
  229. <i class="fa fa-phone"/>
  230. <span t-field="res_company.phone"/>
  231. </a>
  232. </span>
  233. </p>
  234. <a t-att-href="'mailto:%s' % res_company.email">
  235. <i class="fa fa-envelope-o"/>
  236. <span t-field="res_company.email" t-ignore="true"/>
  237. </a>
  238. </div>
  239. </div>
  240. </div>
  241. <div class="col-md-2 col-sm-3 footer-col">
  242. <section class="fot-col fot-link">
  243. <ul>
  244. <li>
  245. <a href="#">Seguridad</a>
  246. </li>
  247. <li>
  248. <a href="#">Privacidad</a>
  249. </li>
  250. <!-- <li>
  251. <a href="#">Mensaje de Texto</a>
  252. </li> -->
  253. <li>
  254. <a href="#">Legal</a>
  255. </li>
  256. <li>
  257. <a href="#">Soporte</a>
  258. </li>
  259. </ul>
  260. </section>
  261. </div>
  262. <div class="col-md-2 col-sm-3 footer-col">
  263. <section class="fot-col fot-link">
  264. <ul>
  265. <li>
  266. <a href="#">Preguntas Frecuentes</a>
  267. </li>
  268. <!-- <li>
  269. <a href="#">Gift Cards</a>
  270. </li> -->
  271. <li>
  272. <a href="#">Pedidos</a>
  273. </li>
  274. <li>
  275. <a href="#">Flete</a>
  276. </li>
  277. <li>
  278. <a href="#">Sucursales</a>
  279. </li>
  280. <li>
  281. <a href="#">Encuentranos</a>
  282. </li>
  283. </ul>
  284. </section>
  285. </div>
  286. <div class="col-md-2 col-sm-2 footer-col">
  287. <section class="fot-col fot-link">
  288. <ul>
  289. <li>
  290. <a href="#">Acerca de Dikasa</a>
  291. </li>
  292. <li>
  293. <a href="#">Trabajos</a>
  294. </li>
  295. <li>
  296. <a href="#">Afiliados</a>
  297. </li>
  298. <!-- <li>
  299. <a href="#">Meet The Maker</a>
  300. </li> -->
  301. <li>
  302. <a href="#">Contacto</a>
  303. </li>
  304. </ul>
  305. </section>
  306. </div>
  307. <div class="col-md-3 col-sm-12 newsletter-div">
  308. <section>
  309. <div class="newsletter">
  310. <h3>Newsletter!</h3>
  311. <p class="">Recibe Novedades!</p>
  312. <div class="oe_snippet_body input-group js_subscribe" data-list-id="1" data-subscribe="off">
  313. <input class="js_subscribe_email form-control" name="email" placeholder="your email..." type="email"/>
  314. <span class="btn-box">
  315. <a class="btn btn-primary js_subscribe_btn" href="#">Suscribete ahora
  316. <i class="fa fa-angle-right"/></a>
  317. <a class="btn btn-success js_subscribed_btn hidden" disabled="disabled" href="#">Gracias</a>
  318. </span>
  319. <div class="alert alert-success hidden">Gracias por suscribirse!</div>
  320. </div>
  321. </div>
  322. </section>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </xpath>
  329. </template>
  330. <!-- Copyright Footer -->
  331. <template id="footer_copyright" inherit_id="website.layout_footer_copyright">
  332. <xpath expr="//div[@class='container mt16 mb8']" position="attributes">
  333. <attribute name="style">display:none;</attribute>
  334. </xpath>
  335. <xpath expr="//div[@class='container mt16 mb8']" position="before">
  336. <div class="footer-btm">
  337. <div class="container">
  338. <div class="footer-bottom-div">
  339. <div class="row">
  340. <div class="col-md-6 col-sm-6">
  341. <p>© 2019 By
  342. <span>Dikasa.</span>
  343. Derechos Reservados.</p>
  344. </div>
  345. <div class="col-md-6 col-sm-6">
  346. <ul class="link">
  347. <li>
  348. <a href="#">La Empresa</a>
  349. </li>
  350. <li>
  351. <a href="#">Contacto</a>
  352. </li>
  353. <li>
  354. <a href="#">Atención al Cliente</a>
  355. </li>
  356. <li class="last-li">
  357. <a href="#">Política de Privacidad</a>
  358. </li>
  359. </ul>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </xpath>
  366. </template>
  367. <!-- Multi image feature for products -->
  368. <template active="True" customize_show="True" id="website_multiple_image_product_slider" inherit_id="website_sale.product" name="Multi-Image Product">
  369. <xpath expr="//section[@id='product_detail']//span[@itemprop='image']" position="attributes">
  370. <attribute name="style">display:none;</attribute>
  371. </xpath>
  372. <xpath expr="//section[@id='product_detail']//span[@itemprop='image']" position="before">
  373. <!-- <span itemprop="image">-->
  374. <t t-if="not product.multi_image and not product.is_flip_image">
  375. <span itemprop="image" t-field="product.image" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;product_detail_img&quot;, &quot;alt-field&quot;: &quot;name&quot;}"/>
  376. </t>
  377. <t t-if="product.is_flip_image and not product.flip_image">
  378. <span itemprop="image" t-field="product.image" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;product_detail_img&quot;, &quot;alt-field&quot;: &quot;name&quot;}"/>
  379. </t>
  380. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.flip_image">
  381. <span itemprop="image">
  382. <div id="gallery">
  383. <img class="product_detail_img" t-att-alt="product.name" t-att-data-image="website.image_url(product, 'image')" t-att-src="website.image_url(product, 'image')" t-att-title="product.name"/>
  384. <t t-if="product.is_flip_image and product.flip_image">
  385. <img t-att-alt="product.name" t-att-data-image="website.image_url(product, 'flip_image')" t-att-src="website.image_url(product, 'flip_image')" t-att-title="product.name"/>
  386. </t>
  387. </div>
  388. </span>
  389. </t>
  390. <t t-if="not product.multi_image and product.flip_image">
  391. <span itemprop="image">
  392. <div id="gallery">
  393. <img class="product_detail_img" t-att-alt="product.name" t-att-data-image="website.image_url(product, 'image')" t-att-src="website.image_url(product, 'image')" t-att-title="product.name"/>
  394. <t t-if="product.is_flip_image and product.flip_image">
  395. <img t-att-alt="product.name" t-att-data-image="website.image_url(product, 'flip_image')" t-att-src="website.image_url(product, 'flip_image')" t-att-title="product.name"/>
  396. </t>
  397. </div>
  398. </span>
  399. </t>
  400. <t t-if="product.multi_image and website.get_multiple_images(product.id)">
  401. <span itemprop="image">
  402. <div id="gallery">
  403. <img class="product_detail_img" t-att-alt="product.name" t-att-data-image="website.image_url(product, 'image')" t-att-src="website.image_url(product, 'image')" t-att-title="product.name"/>
  404. <t t-as="im" t-foreach="website.get_multiple_images(product.id)">
  405. <t t-if="im.attach_type == 'image'">
  406. <img t-att-alt="im.alt if im.alt else im.name" t-att-data-image="website.image_url(im, 'image')" t-att-src="website.image_url(im, 'image')" t-att-title="im.name if im.name else product.name"/>
  407. </t>
  408. <t t-if="im.attach_type == 'video'">
  409. <t t-if="im.video_type == 'youtube'">
  410. <img data-type="youtube" t-att-alt="im.alt if im.alt else im.name" t-att-data-description="im.name if im.name else product.name" t-att-data-videoid="im.video_id"/>
  411. </t>
  412. <t t-if="im.video_type == 'vimeo'">
  413. <img data-type="vimeo" t-att-alt="im.alt if im.alt else im.name" t-att-data-description="im.name if im.name else product.name" t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')" t-att-data-videoid="im.video_id" t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"/>
  414. </t>
  415. <t t-if="im.video_type == 'html5video'">
  416. <img data-type="html5video" t-att-alt="im.alt if im.alt else im.name" t-att-data-description="im.name if im.name else product.name" t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')" t-att-data-videomp4="im.video_mp4 if im.video_mp4 else '' " t-att-data-videoogv="im.video_ogv if im.video_ogv else '' " t-att-data-videowebm="im.video_webm if im.video_webm else '' " t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"/>
  417. </t>
  418. </t>
  419. </t>
  420. <t t-if="product.is_flip_image and product.flip_image">
  421. <img t-att-alt="product.name" t-att-data-image="website.image_url(product, 'flip_image')" t-att-src="website.image_url(product, 'flip_image')" t-att-title="product.name"/>
  422. </t>
  423. </div>
  424. </span>
  425. </t>
  426. <t t-if="product.multi_image and not website.get_multiple_images(product.id)">
  427. <span itemprop="image" t-field="product.image" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;product_detail_img&quot;, &quot;alt-field&quot;: &quot;name&quot;}"/>
  428. </t>
  429. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.is_flip_image and product.flip_image">
  430. <span itemprop="image">
  431. <div id="gallery">
  432. <img class="product_detail_img" t-att-alt="product.name" t-att-data-image="website.image_url(product, 'image')" t-att-src="website.image_url(product, 'image')" t-att-title="product.name"/>
  433. <t t-if="product.is_flip_image and product.flip_image">
  434. <img t-att-alt="product.name" t-att-data-image="website.image_url(product, 'flip_image')" t-att-src="website.image_url(product, 'flip_image')" t-att-title="product.name"/>
  435. </t>
  436. </div>
  437. </span>
  438. </t>
  439. <!-- </span>-->
  440. </xpath>
  441. </template>
  442. <!-- Product detail page -->
  443. <template id="kingfisher_pro_product_details" inherit_id="website_sale.product" name="Product Details">
  444. <xpath expr="//div[@itemscope='itemscope']/section/div" position="attributes">
  445. <attribute name="style">display:none;</attribute>
  446. </xpath>
  447. <!-- Added class for main section in product detail page -->
  448. <xpath expr="//div[@itemscope='itemscope']/section" position="attributes">
  449. <attribute name="t-attf-class">container mt8 product-view oe_website_sale #{(compute_currency(product.lst_price) - product.price) &gt; 0.1 and 'discount'}</attribute>
  450. </xpath>
  451. <!-- Theme breadcrumb -->
  452. <xpath expr="//div[@itemscope='itemscope']/section" position="before">
  453. <section class="page-title">
  454. <div class="container">
  455. <div class="col-sm-8">
  456. <ul class="breadcrumb">
  457. <li>
  458. <a href="/page/homepage">Inicio</a>
  459. </li>
  460. <li>
  461. <a href="/shop">Productos</a>
  462. </li>
  463. <li t-if="category">
  464. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  465. </li>
  466. <li class="active">
  467. <span t-field="product.name"/>
  468. </li>
  469. </ul>
  470. </div>
  471. <div class="col-sm-4 col-xs-6" groups="base.group_sale_manager">
  472. <t t-call="website.publish_management">
  473. <t t-set="object" t-value="product"/>
  474. <t t-set="publish_edit" t-value="True"/>
  475. <t t-set="action" t-value="'product.product_template_action'"/>
  476. </t>
  477. </div>
  478. </div>
  479. </section>
  480. </xpath>
  481. <!-- Product detail page right side design -->
  482. <xpath expr="//section[@id='product_detail']//div[@class='row']//div[@class='col-sm-5 col-md-5 col-lg-4 col-lg-offset-1']" position="attributes">
  483. <attribute name="style">display:none;</attribute>
  484. </xpath>
  485. <xpath expr="//section[@id='product_detail']//div[@class='row']//div[@class='col-sm-5 col-md-5 col-lg-4 col-lg-offset-1']" position="before">
  486. <div class="col-xs-12 col-md-5 col-lg-5 col-sm-5 product-detail" id="product_details">
  487. <div class="product-shop-info">
  488. <div class="product-title">
  489. <h1 itemprop="name" t-field="product.name">Nombre de Producto</h1>
  490. <p class="review">
  491. <a href="#">
  492. <span>
  493. <t t-esc="len(product.website_message_ids)"/>
  494. </span>Valoracion(es) | Agregar tu Comentario</a>
  495. </p>
  496. <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
  497. </div>
  498. <div class="product-options-bottom">
  499. <form class="js_add_cart_variants" method="POST" t-att-action="keep('/shop/cart/update')">
  500. <div class="js_product">
  501. <div class="details">
  502. <div class="price-box">
  503. <t t-call="website_sale.product_price"/>
  504. </div>
  505. <t t-if="product.description_sale">
  506. <div class="pro-desc">
  507. <p t-field="product.description_sale"/>
  508. </div>
  509. </t>
  510. </div>
  511. <t t-placeholder="select">
  512. <input class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'" type="hidden"/>
  513. <t t-call="website_sale.variants">
  514. <t t-set="ul_class" t-value="'nav-stacked'"/>
  515. </t>
  516. </t>
  517. <p class="css_not_available_msg bg-danger" style="padding: 15px;" t-if="len(product.product_variant_ids) &gt; 1">Producto no Disponible</p>
  518. <div class="add-to-cart">
  519. <a class="btn cart-btn btn-lg js_check_product a-submit" href="#" id="add_to_cart">
  520. <i class="fa fa-shopping-cart"/>Agregar al Carro</a>
  521. </div>
  522. </div>
  523. </form>
  524. </div>
  525. </div>
  526. </div>
  527. </xpath>
  528. <!-- Product Description -->
  529. <xpath expr="//div[@itemprop='description']" position="attributes">
  530. <attribute name="style">display:none;</attribute>
  531. </xpath>
  532. <xpath expr="//div[@itemprop='description']" position="before">
  533. <div class="container" id="website_description">
  534. <div class="pd-more-info">
  535. <!-- Nav tabs -->
  536. <ul class="nav nav-tabs" id="description_reviews_tabs" role="tablist">
  537. <li class="active" role="presentation">
  538. <a aria-controls="more_info" data-toggle="tab" href="#description" role="tab">Descripción</a>
  539. </li>
  540. </ul>
  541. <div class="tab-content" id="description_reviews_tabs_contents">
  542. <div class="tab-pane active" id="description" role="tabpanel">
  543. <div class="oe_structure mt16" id="product_full_description" itemprop="description" t-field="product.website_description"/>
  544. <div class="oe_structure"/>
  545. </div>
  546. </div>
  547. </div>
  548. </div>
  549. </xpath>
  550. </template>
  551. <!-- Removed Sign In -->
  552. <template customize_show="False" groups="base.group_public" id="website.show_sign_in" inherit_id="website.layout" name="Show Sign In">
  553. <xpath expr="//ul[@id='top_menu']" position="inside">
  554. <li class="divider" style="display:none"/>
  555. <li style="display:none">
  556. <a t-attf-href="/web/login">
  557. <b>Ingresar</b>
  558. </a>
  559. </li>
  560. </xpath>
  561. </template>
  562. <!-- Select quantity inherited from website sale -->
  563. <template customize_show="True" id="website_sale.product_quantity" inherit_id="website_sale.product" name="Select Quantity">
  564. <xpath expr="//div[contains(@class,'js_product')]" position="inside">
  565. <div class="css_quantity input-group oe_website_spinner">
  566. <span class="input-group-addon">
  567. <a class="mb8 js_add_cart_json" t-attf-href="#">
  568. <i class="fa fa-minus"/>
  569. </a>
  570. </span>
  571. <input class="js_quantity form-control" data-min="1" name="add_qty" type="text" value="1"/>
  572. <span class="input-group-addon">
  573. <a class="mb8 float_left js_add_cart_json" t-attf-href="#">
  574. <i class="fa fa-plus"/>
  575. </a>
  576. </span>
  577. </div>
  578. </xpath>
  579. </template>
  580. <template customize_show="True" id="product_attributes" inherit_id="kingfisher_pro.kingfisher_pro_product_details" name="Product attributes">
  581. <xpath expr="//p[@t-field='product.description_sale']" position="after">
  582. <hr style="border-top: 1px solid #eeeeee;" t-if="sum([(1 if len(l.value_ids)==1 else 0) for l in product.attribute_line_ids])"/>
  583. <p class="text-muted">
  584. <t t-as="variant_id" t-foreach="product.attribute_line_ids">
  585. <t t-if="len(variant_id.value_ids)==1">
  586. <span t-field="variant_id.attribute_id"/>:
  587. <span t-field="variant_id.value_ids[0].name"/>
  588. <br/></t>
  589. </t>
  590. </p>
  591. </xpath>
  592. </template>
  593. <!-- Discussion inherited to display in tabs -->
  594. <template active="True" customize_show="True" id="website_sale.product_comment" inherit_id="kingfisher_pro.kingfisher_pro_product_details" name="Discussion">
  595. <!-- Will add review tab -->
  596. <xpath expr="//div[@id='website_description']/div/ul/li" position="after">
  597. <li role="presentation">
  598. <a aria-controls="reviews" data-toggle="tab" href="#reviews" role="tab">Valoraciones
  599. <t t-if="len(product.website_message_ids)">
  600. <span class="review_label">
  601. (
  602. <t t-esc="len(product.website_message_ids)"/>
  603. )</span>
  604. </t>
  605. </a>
  606. </li>
  607. </xpath>
  608. <!-- Will add review tab contents -->
  609. <xpath expr="//div[@id='website_description']//div[@id='description']" position="after">
  610. <div class="tab-pane" id="reviews" role="tabpanel">
  611. <section class="container">
  612. <div class="row col-md-10 col-md-offset-1">
  613. <div class="text-muted">
  614. <h3 class="fa fa-comment-o">
  615. <a id="comments">
  616. <t t-if="len(product.website_message_ids) &lt;= 1">
  617. <t t-esc="len(product.website_message_ids)"/>Comentarios</t>
  618. <t t-if="len(product.website_message_ids) &gt;1">
  619. <t t-esc="len(product.website_message_ids)"/>Comentarios</t>
  620. </a>
  621. </h3>
  622. </div>
  623. <ul class="media-list" id="comments-list" t-if="product.website_message_ids">
  624. <li class="media" t-as="message" t-foreach="product.website_message_ids">
  625. <div class="media-body oe_msg">
  626. <img class="media-object pull-left oe_msg_avatar" style="width: 50px; margin-right: 10px;" t-att-src="website.image_url(message.author_id, 'image_small')"/>
  627. <div class="media-body oe_msg_content">
  628. <t t-call="website.publish_short">
  629. <t t-set="object" t-value="message"/>
  630. </t>
  631. <h5 class="media-heading">
  632. <span t-field="message.author_id"/>
  633. <small>en
  634. <span t-field="message.date"/></small>
  635. </h5>
  636. <div t-field="message.body"/>
  637. <div>
  638. <div class="oe_msg_attachment" t-as="attachment" t-foreach="message.attachment_ids">
  639. <a t-att-href="'/mail/download_attachment?model=mail.message&amp;id='+str(message.id)+'&amp;method=download_attachment&amp;attachment_id='+str(attachment.id)" target="_blank">
  640. <t t-if="attachment.file_type_icon == 'webimage'">
  641. <img class="oe_attachment_embedded" t-att-src="'/web/binary/image?model=ir.attachment&amp;field=datas&amp;id=' + str(attachment.id) + '&amp;resize=100,80'"/>
  642. </t>
  643. <t t-if="attachment.file_type_icon != 'webimage'">
  644. <img class="oe_attachment_webimage" t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"/>
  645. </t>
  646. <div class="oe_attachment_name">
  647. <t t-raw="attachment.name"/>
  648. </div>
  649. </a>
  650. </div>
  651. </div>
  652. </div>
  653. </div>
  654. </li>
  655. </ul>
  656. <div class="css_editable_mode_hidden">
  657. <form id="comment" method="POST" t-attf-action="/shop/product/comment/#{product.id}">
  658. <img class="img pull-left img-rounded" style="width: 50px; margin-right: 10px;" t-att-src="website.image_url(user_id.partner_id, 'image_small')"/>
  659. <div class="pull-left mb32" style="width: 75%%">
  660. <textarea class="form-control" name="comment" placeholder="Write a comment..." rows="3"/>
  661. <a class="btn btn-primary mt8 a-submit">Publicaciones</a>
  662. </div>
  663. </form>
  664. </div>
  665. </div>
  666. </section>
  667. </div>
  668. </xpath>
  669. </template>
  670. <!-- Suggested products -->
  671. <template customize_show="True" id="website_sale.recommended_products" inherit_id="website_sale.product" name="Alternative Products">
  672. <xpath expr="//div[@id='product_full_description']" position="after">
  673. <div class="related-products container" t-if="product.alternative_product_ids">
  674. <div class="left-title">
  675. <h3>Alternaticas Sugeridas:</h3>
  676. <hr/>
  677. </div>
  678. <div class="owl-carousel" id="recommended_products_slider">
  679. <t t-as="product" t-foreach="product.alternative_product_ids">
  680. <div class="cs-product">
  681. <div class="pwp-img">
  682. <a t-att-href="'/shop/product/%s' % slug(product)">
  683. <img t-att-alt="product.name" t-att-src="website.image_url(product, 'image')" t-att-title="product.name"/>
  684. </a>
  685. </div>
  686. <div class="pink-box">
  687. <div class="view">
  688. <div class="shopping-cart">
  689. <a t-attf-href="/shop/product/#{ slug(product) }">
  690. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  691. </a>
  692. </div>
  693. </div>
  694. </div>
  695. <div class="pwp-info">
  696. <p class="pwpi-title">
  697. <a t-attf-href="/shop/product/#{ slug(product) }">
  698. <span t-field="product.name"/>
  699. </a>
  700. </p>
  701. <p class="price">
  702. <span class="price">
  703. <span t-field="product.lst_price" t-field-options="{ &quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;website.pricelist_id.currency_id&quot; }"/>
  704. </span>
  705. </p>
  706. </div>
  707. </div>
  708. </t>
  709. </div>
  710. </div>
  711. </xpath>
  712. </template>
  713. <!-- Products Items -->
  714. <template id="king_pro_products_item" name="Kingfisher Product item">
  715. <form action="/shop/cart/update" method="post">
  716. <div itemscope="itemscope" itemtype="http://schema.org/Product">
  717. <div class="cs-product">
  718. <div class="pwp-img">
  719. <a itemprop="url" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  720. <img class="img img-responsive" itemprop="image" t-att-alt="product.name" t-att-src="website.image_url(product, 'image', None if product_image_big else '300x300')"/>
  721. </a>
  722. </div>
  723. <div class="pwp-info">
  724. <p class="pwpi-title">
  725. <a itemprop="name" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))" t-field="product.name"/>
  726. </p>
  727. <p class="price">
  728. <span class="price" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" t-if="product.product_variant_ids">
  729. <b>
  730. <t t-if="(compute_currency(product.lst_price) - product.price) &gt; 0.1">
  731. <del class="text-danger" 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;user_id.partner_id.property_product_pricelist.currency_id&quot; }"/>&amp;nbsp;</t>
  732. <span style="white-space: nowrap;" t-field="product.price" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;user_id.partner_id.property_product_pricelist.currency_id&quot;}"/>
  733. <span itemprop="price" style="display:none;" t-esc="product.price"/>
  734. <span itemprop="priceCurrency" style="display:none;" t-esc="user_id.partner_id.property_product_pricelist.currency_id.name"/>
  735. </b>
  736. </span>
  737. </p>
  738. <div class="hidden" id="list_add_to_cart">
  739. <span t-field="product.description_sale"/>
  740. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  741. <t t-if="len(product.product_variant_ids) == 1">
  742. <a class="a-submit btn btn-primary">Agregar al Carro</a>
  743. </t>
  744. <t t-if="len(product.product_variant_ids) &gt; 1">
  745. <a class="btn btn-primary" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">Agregar al Carro</a>
  746. </t>
  747. </div>
  748. </div>
  749. </div>
  750. </div>
  751. </form>
  752. </template>
  753. <!-- Product Style Tag image -->
  754. <template active="True" customize_show="True" id="kingfisher_pro_style_tags" inherit_id="kingfisher_pro.king_pro_products_item" name="Product Sale Tags">
  755. <xpath expr="//div[@itemscope='itemscope']/div[@class='cs-product']/div" position="inside">
  756. <div t-att-class="'%s' % product.product_style_tag_id.color if product and product.product_style_tag_id else ''" t-if="product and product.product_style_tag_id">
  757. <t t-esc="product.product_style_tag_id.name"/>
  758. </div>
  759. </xpath>
  760. </template>
  761. <!-- Enable/Disable Flip image -->
  762. <template active="True" customize_show="True" id="kingfisher_pro_flip_image" inherit_id="kingfisher_pro.king_pro_products_item" name="Flip Image">
  763. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="attributes">
  764. <attribute name="class">front img img-responsive</attribute>
  765. </xpath>
  766. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="after">
  767. <img class="back img img-responsive" itemprop="image" t-att-alt="product.name" t-att-src="website.image_url(product, 'flip_image', None if product_image_big else '300x300')"/>
  768. </xpath>
  769. </template>
  770. <!-- Products page -->
  771. <template id="kingfisher_pro_sale_products" inherit_id="website_sale.products" name="Kingfisher Pro Products">
  772. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[3]" position="attributes">
  773. <attribute name="style">display:none;</attribute>
  774. </xpath>
  775. <!-- Brand Cover and description -->
  776. <xpath expr="//div[@id='products_grid']/table" position="before">
  777. <t t-if="brand_obj.brand_cover">
  778. <img class="mb16" height="300" style="width:100%; padding: 0 15px;" t-att-alt="brand_obj.name" t-att-src="website.image_url(brand_obj, 'brand_cover')" t-att-title="brand_obj.name"/>
  779. </t>
  780. <t t-if="brand_obj.brand_description">
  781. <div class="mb16" style="width:100%; padding: 0 15px;">
  782. <t t-raw="brand_obj.brand_description"/>
  783. </div>
  784. </t>
  785. </xpath>
  786. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[@class='products_pager']" position="attributes">
  787. <attribute name="style">display:none;</attribute>
  788. </xpath>
  789. <xpath expr="//div[@id='wrap']//div[@class='oe_structure']" position="before">
  790. <section class="page-title">
  791. <div class="container">
  792. <ul class="breadcrumb">
  793. <li>
  794. <a href="/page/homepage">Inicio</a>
  795. </li>
  796. <li t-att-class="'' if category else 'active'">
  797. <a href="/shop">Productos</a>
  798. </li>
  799. <li t-att-class="'active' if category else ''" t-if="category">
  800. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  801. </li>
  802. </ul>
  803. </div>
  804. </section>
  805. </xpath>
  806. <!-- Category name, grid/list switching, pager, sort by -->
  807. <xpath expr="//div[@id='products_grid']/table" position="before">
  808. <div class="right-title">
  809. <t t-if="category">
  810. <h3 t-field="category.name"/>
  811. </t>
  812. <t t-if="not category">
  813. <h3>Todos los Productos
  814. </h3>
  815. </t>
  816. <hr/>
  817. </div>
  818. <div class="category-products category_products">
  819. <div class="toolbar">
  820. <div class="toolbar-pager">
  821. <div class="pager_left">
  822. <div class="view-mode">
  823. <button class="shift_grid_view active">
  824. <i class="fa fa-th-large"/>
  825. </button>
  826. <button class="shift_list_view">
  827. <i class="fa fa-bars"/>
  828. </button>
  829. </div>
  830. <div class="paging_sort">
  831. <!-- Product paging -->
  832. <t t-if="products and website.get_pager_selection()">
  833. <t t-set="website_ppp" t-value="website.get_pager_selection()"/>
  834. <span t-attf-class="#{website_ppp and len(website_ppp['page_no'])&gt;1 and 'simple_name' or 'hidden'}">
  835. <t t-esc="website_ppp['name']"/>
  836. <div t-attf-class="#{website_ppp and len(website_ppp['page_no'])&gt;1 and 'dropdown' or 'hidden'} btn-group">
  837. <t t-set="curr_ppp" t-value="website.get_current_pager_selection()"/>
  838. <a class="dropdown-toggle btn btn-default" data-toggle="dropdown" href="#">
  839. <t t-esc="curr_ppp or ' - '"/>
  840. <span class="caret"/>
  841. </a>
  842. <ul class="dropdown-menu" role="menu">
  843. <li t-as="pl" t-foreach="website_ppp['page_no']">
  844. <a t-att-href="'/shop/pager_selection/%s' % pl.id">
  845. <span class="switcher_pricelist" t-att-data-pl_id="pl.id" t-esc="pl.name"/>
  846. </a>
  847. </li>
  848. </ul>
  849. </div>
  850. </span>
  851. </t>
  852. </div>
  853. </div>
  854. <div class="pager_right">
  855. <div class="products_pager">
  856. <t t-call="website.pager"/>
  857. </div>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. </xpath>
  863. <!-- Kingfisher Pro Prodcut Grid View -->
  864. <xpath expr="//div[@id='products_grid']/table" position="attributes">
  865. <attribute name="style">display:none;</attribute>
  866. </xpath>
  867. <xpath expr="//div[@id='products_grid']/table" position="before">
  868. <div id="kingfisher_pro_products_grid_view">
  869. <t t-as="tr_product" t-foreach="bins">
  870. <t t-as="td_product" t-foreach="tr_product">
  871. <t t-if="td_product">
  872. <t t-set="product" t-value="td_product['product']"/>
  873. <div class="col-md-6 col-sm-6 list-items" t-if="website.product_display_grid == '2'">
  874. <t t-call="kingfisher_pro.king_pro_products_item"/>
  875. </div>
  876. <div class="col-md-4 col-sm-6 list-items" t-if="website.product_display_grid == '3'">
  877. <t t-call="kingfisher_pro.king_pro_products_item"/>
  878. </div>
  879. <div class="col-md-3 col-sm-6 list-items" t-if="website.product_display_grid == '4'">
  880. <t t-call="kingfisher_pro.king_pro_products_item"/>
  881. </div>
  882. </t>
  883. </t>
  884. </t>
  885. </div>
  886. <!-- For not bins -->
  887. </xpath>
  888. </template>
  889. <!-- Kingfisher Pro Product list view -->
  890. <template active="False" customize_show="False" id="website_sale.products_list_view" inherit_id="website_sale.products" name="List View">
  891. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="attributes">
  892. <attribute name="style">display:none;</attribute>
  893. </xpath>
  894. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="before">
  895. <div id="kingfisher_pro_products_list_view">
  896. <t t-as="product" t-foreach="products">
  897. <div class="col-md-4 col-sm-6 oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
  898. <t t-call="kingfisher_pro.king_pro_products_item"/>
  899. </div>
  900. </t>
  901. </div>
  902. </xpath>
  903. </template>
  904. <!-- Remove main add to cart -->
  905. <template active="False" customize_show="False" id="website_sale.products_add_to_cart" inherit_id="website_sale.products_item" name="Add to Cart">
  906. <xpath expr="//div[@class='product_price']" position="inside">
  907. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  908. <t t-if="len(product.product_variant_ids) == 1">
  909. <a class="btn btn-default btn-xs a-submit">
  910. <span class="fa fa-shopping-cart"/>
  911. </a>
  912. </t>
  913. <t t-if="len(product.product_variant_ids) &gt; 1">
  914. <a class="btn btn-default btn-xs" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  915. <span class="fa fa-shopping-cart"/>
  916. </a>
  917. </t>
  918. </xpath>
  919. </template>
  920. <!-- Inherited Add to cart -->
  921. <template active="True" customize_show="True" id="kingfisher_pro_products_add_to_cart" inherit_id="kingfisher_pro.king_pro_products_item" name="Add to Cart">
  922. <xpath expr="//div[@class='pwp-info']" position="before">
  923. <div class="pink-box">
  924. <div class="view">
  925. <div class="shopping-cart">
  926. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  927. <t t-if="len(product.product_variant_ids) == 1">
  928. <a class="a-submit">
  929. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  930. </a>
  931. </t>
  932. <t t-if="len(product.product_variant_ids) &gt; 1">
  933. <a t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  934. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  935. </a>
  936. </t>
  937. </div>
  938. </div>
  939. </div>
  940. </xpath>
  941. </template>
  942. <!-- Product Sorting -->
  943. <template active="False" customize_show="True" id="kingfisher_pro_product_sorting" inherit_id="kingfisher_pro.kingfisher_pro_sale_products" name="Product Sorting">
  944. <xpath expr="//div[@class='category-products category_products']//div[@class='pager_right']/div" position="before">
  945. <t t-if="website.enable_sort_by">
  946. <div class="sort-by">
  947. <div class="dropdown ">
  948. <button aria-expanded="false" aria-haspopup="true" data-toggle="dropdown" id="sort_by" type="button">
  949. <t t-set="cur_sort" t-value="website.set_current_sorting_data()"/>
  950. <t t-if="not cur_sort">Filtrar por
  951. </t>
  952. <t t-if="cur_sort">Filtrar por:
  953. </t>
  954. <t t-esc="cur_sort"/>
  955. <span class="caret"/>
  956. </button>
  957. <ul class="dropdown-menu" role="menu">
  958. <t t-if="not category">
  959. <t t-as="a" t-foreach="website.get_sort_by_data()">
  960. <li>
  961. <a t-att-href="'/shop?sort_id=%s' % a.id" t-field="a.name"/>
  962. </li>
  963. </t>
  964. </t>
  965. <t t-if="category">
  966. <t t-as="a" t-foreach="website.get_sort_by_data()">
  967. <li>
  968. <a t-att-href="'/shop/category/%s?sort_id=%s' % (slug(category), a.id)" t-field="a.name"/>
  969. </li>
  970. </t>
  971. </t>
  972. </ul>
  973. </div>
  974. </div>
  975. </t>
  976. </xpath>
  977. </template>
  978. <!-- Custom Filters -->
  979. <template active="False" customize_show="True" id="kingfisher_pro_custom_filterz" inherit_id="website_sale.products" name="Custom Filters" priority="1">
  980. <xpath expr="//div[@id='products_grid_before']" position="inside">
  981. <div class="popular-tags" t-if="request.session.get('tag') or request.session.get('sortid') or request.session.get('pricerange')">
  982. <div class="left-title mb16">
  983. <h3>Seleccionar filtros</h3>
  984. <hr/>
  985. </div>
  986. <ul id="selectedattr">
  987. <t t-if="request.session.get('tag')">
  988. <label class="label label-info" id="tag">
  989. <span>Etiqueta:
  990. <t t-esc="request.session['tag'][1]"/></span>
  991. <a id="clear">X</a>
  992. </label>
  993. </t>
  994. <t t-if="request.session.get('sortid')">
  995. <label class="label label-info" id="sortid" t-if="len(request.session['sortid']) &gt;1">
  996. <span>Filtrar por:
  997. <t t-esc="request.session['sortid'][2]"/></span>
  998. <a id="clear">X</a>
  999. </label>
  1000. </t>
  1001. <t t-if="request.session.get('pricerange')">
  1002. <label class="label label-info" id="pricerange">
  1003. <span>Precio-Rango:
  1004. <t t-esc="request.session['pricerange']"/></span>
  1005. <a id="clear">X</a>
  1006. </label>
  1007. </t>
  1008. </ul>
  1009. </div>
  1010. </xpath>
  1011. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1012. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1013. </xpath>
  1014. <xpath expr="//div[@id='products_grid']" position="attributes">
  1015. <attribute name="class">col-md-9 col-sm-8</attribute>
  1016. </xpath>
  1017. </template>
  1018. <!-- Inherited Product Categories -->
  1019. <template active="False" customize_show="True" id="website_sale.products_categories" inherit_id="website_sale.products" name="Product Categories" priority="2">
  1020. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1021. <div class="left-title">
  1022. <h3>Categorias</h3>
  1023. <hr/>
  1024. </div>
  1025. <ul class="nav nav-pills nav-stacked category_nav mb16">
  1026. <li t-att-class=" '' if category else 'active' ">
  1027. <a t-att-href="keep('/shop',category=0)">Todos los Productos</a>
  1028. </li>
  1029. <t t-as="c" t-foreach="categories">
  1030. <t t-call="website_sale.categories_recursive"/>
  1031. </t>
  1032. </ul>
  1033. </xpath>
  1034. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1035. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1036. </xpath>
  1037. <xpath expr="//div[@id='products_grid']" position="attributes">
  1038. <attribute name="class">col-md-9 col-sm-8</attribute>
  1039. </xpath>
  1040. </template>
  1041. <template id="king_pro_option_collapse_categories_recursive" name="Collapse Category Recursive">
  1042. <li t-att-class="'active' if categ.id == int(category or 0) else ''">
  1043. <i t-attf-class="text-primary fa #{'fa-chevron-down' if categ.id in parent_category_ids else 'fa-chevron-right'}" t-if="categ.child_id"/>
  1044. <a t-att-href="keep('/shop/category/' + slug(categ), category=0)" t-field="categ.name"/>
  1045. <ul class="nav nav-pills nav-stacked nav-hierarchy" t-att-style="'display:block;' if categ.id in parent_category_ids else 'display:none;'" t-if="categ.child_id">
  1046. <t t-as="categ" t-foreach="categ.child_id">
  1047. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1048. </t>
  1049. </ul>
  1050. </li>
  1051. </template>
  1052. <template active="False" customize_show="True" id="option_collapse_products_categories" inherit_id="website_sale.products_categories" name="Collapsible Category List">
  1053. <xpath expr="//div[@id='products_grid_before']/ul" position="replace">
  1054. <ul class="nav nav-pills nav-stacked mb16" id="o_shop_collapse_category">
  1055. <li t-att-class=" '' if category else 'active' ">
  1056. <a t-att-href="keep('/shop',category=0)">Todos los Productos</a>
  1057. </li>
  1058. <t t-as="categ" t-foreach="categories">
  1059. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1060. </t>
  1061. </ul>
  1062. </xpath>
  1063. </template>
  1064. <!-- Inherited Product Attributes -->
  1065. <template active="False" customize_show="True" id="website_sale.products_attributes" inherit_id="website_sale.products" name="Product Attribute's Filters">
  1066. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1067. <div class="shop-by mb16">
  1068. <div class="left-title">
  1069. <h3>Comprar por</h3>
  1070. <hr/>
  1071. </div>
  1072. <form class="js_attributes" method="get">
  1073. <input name="buscar" t-att-value="search" type="hidden"/>
  1074. <ul class="nav nav-pills nav-stacked mt16">
  1075. <t t-as="b" t-foreach="attributes">
  1076. <t t-if="b.name == 'Color'">
  1077. <li t-if="b.value_ids and len(b.value_ids) &gt;1">
  1078. <div>
  1079. <strong class="filtrouno">Filtro por Colores</strong>
  1080. </div>
  1081. <t t-if="b.name == 'Color'">
  1082. <t t-as="w" t-foreach="b.value_ids">
  1083. <label t-attf-class="css_attribute_color #{'active' if w.id in attrib_set else ''}" t-attf-style="background-color:#{w.color or w.name}">
  1084. <input name="attrib" t-att-checked="'checked' if w.id in attrib_set else ''" t-att-title="w.name" t-att-value="'%s-%s' % (b.id,w.id)" type="checkbox"/>
  1085. </label>
  1086. </t>
  1087. </t>
  1088. </li>
  1089. </t>
  1090. </t>
  1091. </ul>
  1092. </form>
  1093. <form class="js_attributes" method="get">
  1094. <input name="search" t-att-value="search" type="hidden"/>
  1095. <ul class="nav nav-pills nav-stacked mt16">
  1096. <t t-as="a" t-foreach="attributes">
  1097. <t t-if="a.type != 'hidden'">
  1098. <li t-if="a.value_ids and len(a.value_ids) &gt;1 and a.name != 'Color'">
  1099. <div>
  1100. <strong class="filtrouno" t-field="a.name"/>
  1101. </div>
  1102. <t t-if="a.type == 'color'">
  1103. <t t-as="v" t-foreach="a.value_ids">
  1104. <label t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}" t-attf-style="background-color:#{v.color or v.name}">
  1105. <input name="attrib" t-att-checked="'checked' if v.id in attrib_set else ''" t-att-title="v.name" t-att-value="'%s-%s' % (a.id,v.id)" type="checkbox"/>
  1106. </label>
  1107. </t>
  1108. </t>
  1109. <t t-if="a.type == 'select'">
  1110. <select class="form-control" name="attrib">
  1111. <option value=""/>
  1112. <t t-as="v" t-foreach="a.value_ids">
  1113. <option t-att-selected="'selected' if v.id in attrib_set else ''" t-att-value="'%s-%s' % (a.id,v.id)" t-esc="v.name"/>
  1114. </t>
  1115. </select>
  1116. </t>
  1117. <t t-if="a.type == 'radio'">
  1118. <ul class="nav nav-pills nav-stacked" style="overflow: auto; max-height:200px; columns: 2; -webkit- columns: 2;-moz- columns: 2;-o- columns: 2;">
  1119. <t t-as="v" t-foreach="a.value_ids">
  1120. <li style="margin-top: 0px;" t-att-class="'active' if v.id in attrib_set else ''">
  1121. <label style="margin: 0 20px;">
  1122. <input name="attrib" t-att-checked="'checked' if v.id in attrib_set else ''" t-att-value="'%s-%s' % (a.id,v.id)" type="checkbox"/>
  1123. <span style="font-weight: normal" t-field="v.name"/>
  1124. </label>
  1125. </li>
  1126. </t>
  1127. </ul>
  1128. </t>
  1129. </li>
  1130. </t>
  1131. </t>
  1132. </ul>
  1133. </form>
  1134. <!-- <form class="js_attributes" method="get"><input name="search" t-att-value="search" type="hidden"/><ul class="nav nav-pills nav-stacked mt16"><t t-as="a" t-foreach="attributes"><t t-if="a.type != 'hidden'"><li t-if="a.value_ids and len(a.value_ids) &gt;1"><div><strong t-field="a.name"/></div><t t-if="a.type == 'select'"><select class="form-control" name="attrib"><option value=""/><t t-as="v" t-foreach="a.value_ids"><option t-att-selected="'selected' if v.id in attrib_set else ''" t-att-value="'%s-%s' % (a.id,v.id)" t-esc="v.name"/></t></select></t><t t-if="a.type == 'radio'"><ul class="nav nav-pills nav-stacked"><t t-as="v" t-foreach="a.value_ids"><li t-att-class="'active' if v.id in attrib_set else ''"><label style="margin: 0 20px;"><input name="attrib" t-att-checked="'checked' if v.id in attrib_set else ''" t-att-value="'%s-%s' % (a.id,v.id)" type="checkbox"/><span style="font-weight: normal" t-field="v.name"/></label></li></t></ul></t><t t-if="a.type == 'color'"><t t-as="v" t-foreach="a.value_ids"><label t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}" t-attf-style="background-color:#{v.color or v.name}"><input name="attrib" t-att-checked="'checked' if v.id in attrib_set else ''" t-att-title="v.name" t-att-value="'%s-%s' % (a.id,v.id)" type="checkbox"/></label></t></t></li></t></t></ul></form>-->
  1135. </div>
  1136. </xpath>
  1137. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1138. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1139. </xpath>
  1140. <xpath expr="//div[@id='products_grid']" position="attributes">
  1141. <attribute name="class">col-md-9 col-sm-8</attribute>
  1142. </xpath>
  1143. </template>
  1144. <!-- Product Tags -->
  1145. <template active="False" customize_show="True" id="kingfisher_pro_product_tag" inherit_id="website_sale.products" name="Product Tags">
  1146. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1147. <div class="popular-tags mb16">
  1148. <div class="left-title">
  1149. <h3>Etiquetas Populares</h3>
  1150. <hr/>
  1151. </div>
  1152. <ul class="tags">
  1153. <t t-if="not category">
  1154. <t t-as="c" t-foreach="website.get_product_tags()">
  1155. <li>
  1156. <a t-att-href="'/shop?tag=%s'%c.id" t-field="c.name"/>
  1157. </li>
  1158. </t>
  1159. </t>
  1160. <t t-if="category">
  1161. <t t-as="c" t-foreach="website.get_product_tags()">
  1162. <li>
  1163. <a t-att-href="'/shop/category/%s?tag=%s' % (slug(category), c.id)" t-field="c.name"/>
  1164. </li>
  1165. </t>
  1166. </t>
  1167. </ul>
  1168. </div>
  1169. </xpath>
  1170. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1171. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1172. </xpath>
  1173. <xpath expr="//div[@id='products_grid']" position="attributes">
  1174. <attribute name="class">col-md-9 col-sm-8</attribute>
  1175. </xpath>
  1176. </template>
  1177. <!-- Price Slider -->
  1178. <template active="False" customize_show="True" id="kingfisher_pro_slider_layout" inherit_id="website_sale.products" name="Product Price Slider">
  1179. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1180. <div class="popular-tags mb16">
  1181. <div class="left-title">
  1182. <h3>Por Precio</h3>
  1183. <hr/>
  1184. </div>
  1185. <div class="price-slider">
  1186. <form method="post" t-att-action="keep('/shop'+ ('/category/'+slug(category)) if category else '',search=0)">
  1187. <div id="priceslider"/>
  1188. <input id="king_pro_website_currency" name="website_currency" t-att-value="website.pricelist_id.currency_id.symbol" type="hidden"/>
  1189. <input id="m1" name="min1" t-att-value="min1" type="hidden"/>
  1190. <input id="m2" name="max1" t-att-value="max1" type="hidden"/>
  1191. <input id="ra1" name="range1" t-att-value="range1" type="hidden"/>
  1192. <input id="ra2" name="range2" t-att-value="range2" type="hidden"/>
  1193. </form>
  1194. </div>
  1195. </div>
  1196. </xpath>
  1197. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1198. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1199. </xpath>
  1200. <xpath expr="//div[@id='products_grid']" position="attributes">
  1201. <attribute name="class">col-md-9 col-sm-8</attribute>
  1202. </xpath>
  1203. </template>
  1204. <!-- Added class in 'continue shopping' button -->
  1205. <template id="kingfisher_pro_checkout" inherit_id="website_sale.checkout">
  1206. <xpath expr="//a[@class='btn btn-default btn-primary pull-right mb32 a-submit']" position="attributes">
  1207. <attribute name="class">btn btn-primary pull-right mb32 a-submit</attribute>
  1208. </xpath>
  1209. </template>
  1210. <!-- Kingfisher Pro Website Megamenu -->
  1211. <template id="kingfisher_pro_website_megamenu_submenu" inherit_id="website.submenu">
  1212. <xpath expr="//li[1]" position="attributes">
  1213. <attribute name="t-if">not submenu.child_id and not submenu.is_megamenu</attribute>
  1214. </xpath>
  1215. <xpath expr="//li" position="after">
  1216. <li t-att-class="'li-mega-menu mm_icon' if submenu.menu_icon and submenu.menu_icon_image else 'li-mega-menu'" t-if="submenu.is_megamenu">
  1217. <a t-att-href="'%s' % (submenu.url) if submenu.url else ''" t-att-target="'_blank' if submenu.new_window else ''">
  1218. <t t-if="submenu.menu_icon and submenu.menu_icon_image">
  1219. <img class="img-responsive icon" t-att-alt="submenu.name" t-att-src="website.image_url(submenu, 'menu_icon_image', '30x30')"/>
  1220. </t>
  1221. <span t-field="submenu.name"/>
  1222. <span class="fa fa-angle-down" t-ignore="true"/>
  1223. </a>
  1224. <!-- 2 Column -->
  1225. <t t-if="submenu.megamenu_type == '2_col'">
  1226. <ul class="dropdown-menu mega-dropdown-menu row" t-att-style="'background: url(data:image/png;base64,%s); background-size: cover;' % (submenu.megamenu_bg_image) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_img' else '' 'background: %s !important;' % (submenu.megamenu_bg_color) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_color' else ''">
  1227. <div class="row">
  1228. <t t-set="product_categories" t-value="website.get_public_product_category(submenu)"/>
  1229. <t t-if="not product_categories">
  1230. <li class="dropdown-header message" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">Espere, aun no se han asignado categorias a este menu.!!!
  1231. </li>
  1232. </t>
  1233. <t t-if="product_categories">
  1234. <div t-att-class="'col-md-4 col-xs-12' if submenu.category_slider else ''" t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1235. <t t-if="submenu.category_slider">
  1236. <li>
  1237. <ul>
  1238. <li class="dropdown-header slider_header" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1239. <t t-esc="submenu.carousel_header_name"/>
  1240. </li>
  1241. <div class="carousel slide" data-ride="carousel" t-att-id="'myCarousel-%s' % submenu.id">
  1242. <div class="carousel-inner">
  1243. <t t-set="a" t-value="0"/>
  1244. <t t-as="categ" t-foreach="product_categories">
  1245. <div t-att-class="'item active' if a == 0 else 'item'">
  1246. <t t-set="a" t-value="a+1"/>
  1247. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1248. <img class="img-responsive" t-att-alt="categ.name" t-att-src="website.image_url(categ, 'image', '300x250')"/>
  1249. </a>
  1250. <h4>
  1251. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1252. <t t-esc="categ.name"/>
  1253. </small>
  1254. </h4>
  1255. </div>
  1256. </t>
  1257. </div>
  1258. </div>
  1259. <div class="carousel-control left" data-slide="prev" t-att-data-target="'#myCarousel-%s' % submenu.id">
  1260. <i class="fa fa-chevron-left"/>
  1261. </div>
  1262. <div class="carousel-control right" data-slide="next" t-att-data-target="'#myCarousel-%s' % submenu.id">
  1263. <i class="fa fa-chevron-right"/>
  1264. </div>
  1265. </ul>
  1266. </li>
  1267. </t>
  1268. </div>
  1269. <div t-att-class="'col-md-8 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1270. <t t-as="category" t-foreach="product_categories">
  1271. <li class="col-sm-6 inline-block">
  1272. <ul>
  1273. <li class="dropdown-header">
  1274. <a t-att-href="'/shop/category/%s' % slug(category)" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1275. <t t-esc="category.name"/>
  1276. </a>
  1277. </li>
  1278. <t t-if="category.child_id">
  1279. <t t-as="categ" t-foreach="website.get_public_product_child_category(category.child_id)">
  1280. <li class="categories">
  1281. <a t-att-href="'/shop/category/%s' % slug(categ)" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1282. <t t-esc="categ.name"/>
  1283. </a>
  1284. </li>
  1285. </t>
  1286. </t>
  1287. </ul>
  1288. </li>
  1289. </t>
  1290. </div>
  1291. </t>
  1292. </div>
  1293. <div class="row" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''" t-if="submenu.display_menu_footer">
  1294. <div class="footer">
  1295. <t t-raw="submenu.menu_footer"/>
  1296. </div>
  1297. </div>
  1298. </ul>
  1299. </t>
  1300. <!-- 3 Column -->
  1301. <t t-if="submenu.megamenu_type == '3_col'">
  1302. <ul class="dropdown-menu mega-dropdown-menu row" t-att-style="'background: url(data:image/png;base64,%s); background-size: cover;' % (submenu.megamenu_bg_image) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_img' else '' 'background: %s !important;' % (submenu.megamenu_bg_color) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_color' else ''">
  1303. <div class="row">
  1304. <t t-set="product_categories" t-value="website.get_public_product_category(submenu)"/>
  1305. <t t-if="not product_categories">
  1306. <li class="dropdown-header message" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">Espere, aun no se han asignado categorias a este menu.!!!
  1307. </li>
  1308. </t>
  1309. <t t-if="product_categories">
  1310. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''" t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1311. <t t-if="submenu.category_slider">
  1312. <li class="margin">
  1313. <ul>
  1314. <li class="dropdown-header slider_header" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1315. <t t-esc="submenu.carousel_header_name"/>
  1316. </li>
  1317. <div class="carousel slide" data-ride="carousel" t-att-id="'myCarousel-%s' % submenu.id">
  1318. <div class="carousel-inner">
  1319. <t t-set="a" t-value="0"/>
  1320. <t t-as="categ" t-foreach="product_categories">
  1321. <div t-att-class="'item active' if a == 0 else 'item'">
  1322. <t t-set="a" t-value="a+1"/>
  1323. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1324. <img class="img-responsive" t-att-alt="categ.name" t-att-src="website.image_url(categ, 'image', '300x250')"/>
  1325. </a>
  1326. <h4>
  1327. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1328. <t t-esc="categ.name"/>
  1329. </small>
  1330. </h4>
  1331. </div>
  1332. </t>
  1333. </div>
  1334. </div>
  1335. <div class="carousel-control left" data-slide="prev" t-att-data-target="'#myCarousel-%s' % submenu.id">
  1336. <i class="fa fa-chevron-left"/>
  1337. </div>
  1338. <div class="carousel-control right" data-slide="next" t-att-data-target="'#myCarousel-%s' % submenu.id">
  1339. <i class="fa fa-chevron-right"/>
  1340. </div>
  1341. </ul>
  1342. </li>
  1343. </t>
  1344. </div>
  1345. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1346. <t t-as="category" t-foreach="product_categories">
  1347. <li class="col-sm-4 inline-block">
  1348. <ul>
  1349. <li class="dropdown-header">
  1350. <a t-att-href="'/shop/category/%s' % slug(category)" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1351. <t t-esc="category.name"/>
  1352. </a>
  1353. </li>
  1354. <t t-if="category.child_id">
  1355. <t t-as="categ" t-foreach="website.get_public_product_child_category(category.child_id)">
  1356. <li class="categories">
  1357. <a t-att-href="'/shop/category/%s' % slug(categ)" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1358. <t t-esc="categ.name"/>
  1359. </a>
  1360. </li>
  1361. </t>
  1362. </t>
  1363. </ul>
  1364. </li>
  1365. </t>
  1366. </div>
  1367. </t>
  1368. </div>
  1369. <div class="row" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''" t-if="submenu.display_menu_footer">
  1370. <div class="footer">
  1371. <t t-raw="submenu.menu_footer"/>
  1372. </div>
  1373. </div>
  1374. </ul>
  1375. </t>
  1376. <!-- 4 Column -->
  1377. <t t-if="submenu.megamenu_type == '4_col'">
  1378. <ul class="dropdown-menu mega-dropdown-menu row" t-att-style="'background: url(data:image/png;base64,%s); background-size: cover;' % (submenu.megamenu_bg_image) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_img' else '' 'background: %s !important;' % (submenu.megamenu_bg_color) if submenu.megamenu_bg and submenu.megamenu_bg_img_color == 'bg_color' else ''">
  1379. <div class="row">
  1380. <t t-set="product_categories" t-value="website.get_public_product_category(submenu)"/>
  1381. <t t-if="not product_categories">
  1382. <li class="dropdown-header message" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">Espere, aun no se han asignado categorias a este menu.!!!
  1383. </li>
  1384. </t>
  1385. <t t-if="product_categories">
  1386. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''" t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1387. <t t-if="submenu.category_slider">
  1388. <li class="margin">
  1389. <ul>
  1390. <li class="dropdown-header slider_header" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1391. <t t-esc="submenu.carousel_header_name"/>
  1392. </li>
  1393. <div class="carousel slide" data-ride="carousel" t-att-id="'myCarousel-%s' % submenu.id">
  1394. <div class="carousel-inner">
  1395. <t t-set="a" t-value="0"/>
  1396. <t t-as="categ" t-foreach="product_categories">
  1397. <div t-att-class="'item active' if a == 0 else 'item'">
  1398. <t t-set="a" t-value="a+1"/>
  1399. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1400. <img class="img-responsive" t-att-alt="categ.name" t-att-src="website.image_url(categ, 'image', '300x250')"/>
  1401. </a>
  1402. <h4>
  1403. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1404. <t t-esc="categ.name"/>
  1405. </small>
  1406. </h4>
  1407. </div>
  1408. </t>
  1409. </div>
  1410. </div>
  1411. <div class="carousel-control left" data-slide="prev" t-att-data-target="'#myCarousel-%s' % submenu.id">
  1412. <i class="fa fa-chevron-left"/>
  1413. </div>
  1414. <div class="carousel-control right" data-slide="next" t-att-data-target="'#myCarousel-%s' % submenu.id">
  1415. <i class="fa fa-chevron-right"/>
  1416. </div>
  1417. </ul>
  1418. </li>
  1419. </t>
  1420. </div>
  1421. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1422. <t t-as="category" t-foreach="product_categories">
  1423. <li class="col-sm-3 inline-block">
  1424. <ul>
  1425. <li class="dropdown-header">
  1426. <a t-att-href="'/shop/category/%s' % slug(category)" t-att-style="'color: %s' %(submenu.main_category_color) if submenu.customize_menu_colors and submenu.main_category_color else ''">
  1427. <t t-esc="category.name"/>
  1428. </a>
  1429. </li>
  1430. <t t-if="category.child_id">
  1431. <t t-as="categ" t-foreach="website.get_public_product_child_category(category.child_id)">
  1432. <li class="categories">
  1433. <a t-att-href="'/shop/category/%s' % slug(categ)" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1434. <t t-esc="categ.name"/>
  1435. </a>
  1436. </li>
  1437. </t>
  1438. </t>
  1439. </ul>
  1440. </li>
  1441. </t>
  1442. </div>
  1443. </t>
  1444. </div>
  1445. <div class="row" t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''" t-if="submenu.display_menu_footer">
  1446. <div class="footer">
  1447. <t t-raw="submenu.menu_footer"/>
  1448. </div>
  1449. </div>
  1450. </ul>
  1451. </t>
  1452. </li>
  1453. </xpath>
  1454. </template>
  1455. <!-- First / Last pager -->
  1456. <template id="website_pager_addition" inherit_id="website.pager">
  1457. <xpath expr="//ul/li" position="before">
  1458. <t t-if="website.enable_first_last_pager and pager['page_count'] &gt;2">
  1459. <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
  1460. <a t-att-href=" pager['page_first']['url'] if pager['page']['num'] != 1 else ''">Primero</a>
  1461. </li>
  1462. </t>
  1463. </xpath>
  1464. <xpath expr="//ul/li[last()]" position="after">
  1465. <t t-if="website.enable_first_last_pager and pager['page_count'] &gt;2">
  1466. <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
  1467. <a t-att-href="pager['page_last']['url'] if pager['page']['num'] != pager['page_count'] else ''">Ultimo</a>
  1468. </li>
  1469. </t>
  1470. </xpath>
  1471. </template>
  1472. <!-- 404 page -->
  1473. <template customize_show="True" id="404_page_template" inherit_id="website.404">
  1474. <xpath expr="//div[@id='wrap']" position="replace">
  1475. <div class="container">
  1476. <div class="row section-404 well">
  1477. <div class="col-md-12 text-center">
  1478. <div class="content-404">
  1479. <img src="/kingfisher_pro/static/src/img/kingfisher-pro-404.png"/>
  1480. <label>404</label>
  1481. </div>
  1482. <p class="text-center not-found-message">La pagina que está buscano no esta disponible</p>
  1483. <p class="text-center try-pages">Puede intentar las paginas siguientes
  1484. <span>
  1485. <a t-attf-href="/page/website.homepage" title="Writizmo">Página Inicial</a></span>
  1486. </p>
  1487. </div>
  1488. </div>
  1489. </div>
  1490. </xpath>
  1491. </template>
  1492. </data>
  1493. </openerp>