theme.xml 74 KB

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