theme.xml 72 KB

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