theme.xml 105 KB

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