theme.xml 102 KB

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