theme.xml 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626
  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;09735492592&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}">Add...</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">
  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>
  613. </form>
  614. </div>
  615. </div>
  616. </div>
  617. </xpath>
  618. <!-- Product Description -->
  619. <xpath expr="//div[@itemprop='description']" position="attributes">
  620. <attribute name="style">display:none;</attribute>
  621. </xpath>
  622. <xpath expr="//div[@itemprop='description']" position="before">
  623. <div class="container" id="website_description">
  624. <div class="pd-more-info">
  625. <!-- Nav tabs -->
  626. <ul id="description_reviews_tabs" class="nav nav-tabs" role="tablist">
  627. <li role="presentation" class="active">
  628. <a href="#description" aria-controls="more_info" role="tab" data-toggle="tab">Descripción</a>
  629. </li>
  630. </ul>
  631. <div id="description_reviews_tabs_contents" class="tab-content">
  632. <div role="tabpanel" class="tab-pane active" id="description">
  633. <div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
  634. <div class="oe_structure"/>
  635. </div>
  636. </div>
  637. </div>
  638. </div>
  639. </xpath>
  640. </template>
  641. <!-- Removed Sign In -->
  642. <template id="website.show_sign_in" customize_show="False" inherit_id="website.layout" name="Show Sign In" groups="base.group_public">
  643. <xpath expr="//ul[@id='top_menu']" position="inside">
  644. <li class="divider" style="display:none"/>
  645. <li style="display:none">
  646. <a t-attf-href="/web/login">
  647. <b>Ingresar</b>
  648. </a>
  649. </li>
  650. </xpath>
  651. </template>
  652. <!-- Select quantity inherited from website sale -->
  653. <template id="website_sale.product_quantity" inherit_id="website_sale.product" customize_show="True" name="Select Quantity">
  654. <xpath expr="//section[@id='product_detail']/div[@class='row']//div[2]//div[@class='js_product']" position="inside">
  655. <div class="css_quantity input-group oe_website_spinner" contenteditable="false">
  656. <a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json">
  657. <i class="fa fa-minus"></i>
  658. </a>
  659. <input type="text" class="form-control" data-min="1" name="add_qty" value="1"/>
  660. <a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json">
  661. <i class="fa fa-plus"></i>
  662. </a>
  663. </div>
  664. </xpath>
  665. </template>
  666. <!-- Discussion inherited to display in tabs -->
  667. <template id="website_sale.product_comment" inherit_id="kingfisher_pro.kingfisher_pro_product_details" active="True" customize_show="True" name="Discussion">
  668. <!-- Will add review tab -->
  669. <xpath expr="//div[@id='website_description']/div/ul/li" position="after">
  670. <li role="presentation">
  671. <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>
  672. </li>
  673. </xpath>
  674. <!-- Will add review tab contents -->
  675. <xpath expr="//div[@id='website_description']//div[@id='description']" position="after">
  676. <div role="tabpanel" class="tab-pane" id="reviews">
  677. <section class="container">
  678. <div class="row col-md-10 col-md-offset-1">
  679. <div class="text-muted">
  680. <h3 class="fa fa-comment-o">
  681. <a id="comments">
  682. <t t-if="len(product.website_message_ids) &lt;= 1" ><t t-esc="len(product.website_message_ids)"/> comentario</t>
  683. <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comentarios</t>
  684. </a>
  685. </h3>
  686. </div>
  687. <ul class="media-list" id="comments-list" t-if="product.website_message_ids">
  688. <li t-foreach="product.website_message_ids" t-as="message" class="media">
  689. <div class="media-body oe_msg">
  690. <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;"/>
  691. <div class="media-body oe_msg_content">
  692. <t t-call="website.publish_short">
  693. <t t-set="object" t-value="message"/>
  694. </t>
  695. <h5 class="media-heading">
  696. <span t-field="message.author_id"/> <small>en <span t-field="message.date"/></small>
  697. </h5>
  698. <div t-field="message.body"/>
  699. <div>
  700. <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
  701. <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">
  702. <t t-if="attachment.file_type_icon == 'webimage'">
  703. <img t-att-src="'/web/binary/image?model=ir.attachment&amp;field=datas&amp;id=' + str(attachment.id) + '&amp;resize=100,80'"
  704. class='oe_attachment_embedded'></img>
  705. </t>
  706. <t t-if="attachment.file_type_icon != 'webimage'">
  707. <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
  708. class='oe_attachment_webimage'></img>
  709. </t>
  710. <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
  711. </a>
  712. </div>
  713. </div>
  714. </div>
  715. </div>
  716. </li>
  717. </ul>
  718. <div class="css_editable_mode_hidden">
  719. <form id="comment" t-attf-action="/shop/product/comment/#{product.id}" method="POST">
  720. <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;"/>
  721. <div class="pull-left mb32" style="width: 75%%">
  722. <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
  723. <a class="btn btn-primary mt8 a-submit">Post</a>
  724. </div>
  725. </form>
  726. </div>
  727. </div>
  728. </section>
  729. </div>
  730. </xpath>
  731. </template>
  732. <!-- Suggested products -->
  733. <template id="website_sale.recommended_products" inherit_id="website_sale.product" customize_show="True" name="Alternative Products">
  734. <xpath expr="//div[@id='product_full_description']" position="after">
  735. <div class="related-products container" t-if="product.alternative_product_ids">
  736. <div class="left-title">
  737. <h3>Alternativas Sugeridas:</h3><hr/>
  738. </div>
  739. <div id="recommended_products_slider" class="owl-carousel">
  740. <t t-foreach="product.alternative_product_ids" t-as="product">
  741. <div class="cs-product">
  742. <div class="pwp-img" style="height: 371px">
  743. <a t-att-href="'/shop/product/%s' % slug(product)">
  744. <img t-att-src="website.image_url(product, 'image')" t-att-title="product.name" t-att-alt="product.name"/>
  745. </a>
  746. </div>
  747. <div class="pink-box">
  748. <div class="view">
  749. <div class="shopping-cart">
  750. <a t-attf-href="/shop/product/#{ slug(product) }">
  751. <!-- <img src="/kingfisher_pro/static/src/img/cart2.png" alt="Shopping-cart" title="Shopping Cart" /> --><h5 style="color:#ffffff;">¡LO QUIERO!</h5>
  752. </a>
  753. </div>
  754. </div>
  755. </div>
  756. <div class="pwp-info">
  757. <p class="pwpi-title">
  758. <a t-attf-href="/shop/product/#{ slug(product) }">
  759. <span t-field='product.name'/>
  760. </a>
  761. </p>
  762. <p class="price">
  763. <span class="price">
  764. <span t-field="product.lst_price"
  765. t-field-options='{
  766. "widget": "monetary",
  767. "display_currency": "website.pricelist_id.currency_id"
  768. }'></span>
  769. </span>
  770. </p>
  771. </div>
  772. </div>
  773. </t>
  774. </div>
  775. </div>
  776. </xpath>
  777. </template>
  778. <!-- Products Items -->
  779. <template id="king_pro_products_item" name="Kingfisher Product item">
  780. <form action="/shop/cart/update" method="post">
  781. <div itemscope="itemscope" itemtype="http://schema.org/Product">
  782. <div class="cs-product">
  783. <div class="pwp-img" style="height: 371px">
  784. <a itemprop="url" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))">
  785. <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')"/>
  786. </a>
  787. </div>
  788. <div class="pwp-info">
  789. <p class="pwpi-title">
  790. <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"/>
  791. </p>
  792. <p class="price">
  793. <span class="price" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" t-if="product.product_variant_ids">
  794. <b>
  795. <t t-if="(compute_currency(product.lst_price) - product.price) &gt; 0.1">
  796. <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>
  797. <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"}'/>
  798. <span itemprop="price" style="display:none;" t-esc="product.price"/>
  799. <span itemprop="priceCurrency" style="display:none;" t-esc="user_id.partner_id.property_product_pricelist.currency_id.name"/>
  800. </b>
  801. </span>
  802. </p>
  803. <div id='list_add_to_cart' class="hidden">
  804. <span t-field="product.description_sale"/>
  805. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  806. <t t-if="len(product.product_variant_ids) == 1">
  807. <a class="a-submit btn btn-primary">Agregar al carro</a>
  808. </t>
  809. <t t-if="len(product.product_variant_ids) &gt; 1">
  810. <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>
  811. </t>
  812. </div>
  813. </div>
  814. </div>
  815. </div>
  816. </form>
  817. </template>
  818. <!-- Product Style Tag image -->
  819. <template id="kingfisher_pro_style_tags" inherit_id="kingfisher_pro.king_pro_products_item" name="Product Sale Tags" active="True" customize_show="True">
  820. <xpath expr="//div[@itemscope='itemscope']/div[@class='cs-product']/div" position="inside">
  821. <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 ''">
  822. <t t-esc="product.product_style_tag_id.name"/>
  823. </div>
  824. </xpath>
  825. </template>
  826. <!-- Enable/Disable Flip image -->
  827. <template id="kingfisher_pro_flip_image" inherit_id="kingfisher_pro.king_pro_products_item" name="Flip Image" active="True" customize_show="True">
  828. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="attributes">
  829. <attribute name="class">front img img-responsive</attribute>
  830. </xpath>
  831. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="after">
  832. <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')"/>
  833. </xpath>
  834. </template>
  835. <!-- Products page -->
  836. <template id="kingfisher_pro_sale_products" inherit_id="website_sale.products" name="Kingfisher Pro Products">
  837. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[3]" position="attributes">
  838. <attribute name="style">display:none;</attribute>
  839. </xpath>
  840. <!-- Brand Cover and description -->
  841. <xpath expr="//div[@id='products_grid']/table" position="before">
  842. <t t-if="brand_obj.brand_cover">
  843. <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;"/>
  844. </t>
  845. <t t-if="brand_obj.brand_description">
  846. <div class="mb16" style="width:100%; padding: 0 15px;">
  847. <t t-raw="brand_obj.brand_description"/>
  848. </div>
  849. </t>
  850. </xpath>
  851. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[@class='products_pager']" position="attributes">
  852. <attribute name="style">display:none;</attribute>
  853. </xpath>
  854. <xpath expr="//div[@id='wrap']//div[@class='oe_structure']" position="before">
  855. <section class="page-title">
  856. <div class="container">
  857. <ul class="breadcrumb">
  858. <li>
  859. <a href="/page/homepage">Inicio</a>
  860. </li>
  861. <li t-att-class="'' if category else 'active'">
  862. <a href="/shop">Productos</a>
  863. </li>
  864. <li t-if="category" t-att-class="'active' if category else ''">
  865. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  866. </li>
  867. </ul>
  868. </div>
  869. </section>
  870. </xpath>
  871. <!-- Category name, grid/list switching, pager, sort by -->
  872. <xpath expr="//div[@id='products_grid']/table" position="before">
  873. <div class="right-title">
  874. <t t-if="category">
  875. <h3 t-field='category.name'/>
  876. </t>
  877. <t t-if="not category">
  878. <h3>
  879. Todos los Productos
  880. </h3>
  881. </t>
  882. <hr/>
  883. </div>
  884. <div class="category-products category_products">
  885. <div class="toolbar">
  886. <div class="toolbar-pager">
  887. <div class="pager_left">
  888. <div class="view-mode">
  889. <button class="shift_grid_view active">
  890. <i class="fa fa-th-large"/>
  891. </button>
  892. <button class="shift_list_view">
  893. <i class="fa fa-bars"/>
  894. </button>
  895. </div>
  896. <div class="paging_sort">
  897. <!-- Product paging -->
  898. <t t-if="products and website.get_pager_selection()">
  899. <t t-set="website_ppp" t-value="website.get_pager_selection()"/>
  900. <span t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'simple_name' or 'hidden'}">
  901. Ver
  902. <div t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'dropdown' or 'hidden'} btn-group">
  903. <t t-set="curr_ppp" t-value="website.get_current_pager_selection()"/>
  904. <a href="#" class="dropdown-toggle btn btn-default" data-toggle="dropdown">
  905. <t t-esc="curr_ppp or ' - '" />
  906. <span class="caret"></span>
  907. </a>
  908. <ul class="dropdown-menu" role="menu">
  909. <li t-foreach="website_ppp['page_no']" t-as="pl" >
  910. <a t-att-href="'/shop/pager_selection/%s' % pl.id">
  911. <span class='switcher_pricelist' t-att-data-pl_id="pl.id" t-esc="pl.name"/>
  912. </a>
  913. </li>
  914. </ul>
  915. </div>
  916. </span>
  917. </t>
  918. </div>
  919. </div>
  920. <div class="pager_right">
  921. <div class="products_pager">
  922. <t t-call="website.pager"/>
  923. </div>
  924. </div>
  925. </div>
  926. </div>
  927. </div>
  928. </xpath>
  929. <!-- Kingfisher Pro Prodcut Grid View -->
  930. <xpath expr="//div[@id='products_grid']/table" position="attributes">
  931. <attribute name="style">display:none;</attribute>
  932. </xpath>
  933. <xpath expr="//div[@id='products_grid']/table" position="before">
  934. <div id="kingfisher_pro_products_grid_view">
  935. <t t-as="tr_product" t-foreach="bins">
  936. <t t-as="td_product" t-foreach="tr_product">
  937. <t t-if="td_product">
  938. <t t-set="product" t-value="td_product['product']"/>
  939. <div t-if="website.product_display_grid == '2'" class="col-md-6 col-sm-6 list-items">
  940. <t t-call="kingfisher_pro.king_pro_products_item"/>
  941. </div>
  942. <div t-if="website.product_display_grid == '3'" class="col-md-4 col-sm-6 list-items">
  943. <t t-call="kingfisher_pro.king_pro_products_item"/>
  944. </div>
  945. <div t-if="website.product_display_grid == '4'" class="col-md-3 col-sm-6 list-items">
  946. <t t-call="kingfisher_pro.king_pro_products_item"/>
  947. </div>
  948. </t>
  949. </t>
  950. </t>
  951. </div>
  952. <!-- For not bins -->
  953. </xpath>
  954. </template>
  955. <!-- Kingfisher Pro Product list view -->
  956. <template id="website_sale.products_list_view" inherit_id="website_sale.products" name="List View" active="False" customize_show="False">
  957. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="attributes">
  958. <attribute name="style">display:none;</attribute>
  959. </xpath>
  960. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="before">
  961. <div id="kingfisher_pro_products_list_view">
  962. <t t-as="product" t-foreach="products">
  963. <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'">
  964. <t t-call="kingfisher_pro.king_pro_products_item"/>
  965. </div>
  966. </t>
  967. </div>
  968. </xpath>
  969. </template>
  970. <!-- Remove main add to cart -->
  971. <template id="website_sale.products_add_to_cart" inherit_id="website_sale.products_item" active="False" customize_show="False" name="Add to Cart">
  972. <xpath expr="//div[@class='product_price']" position="inside">
  973. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  974. <t t-if="len(product.product_variant_ids) == 1">
  975. <a class="btn btn-default btn-xs a-submit"><span class="fa fa-shopping-cart"/></a>
  976. </t>
  977. <t t-if="len(product.product_variant_ids) &gt; 1">
  978. <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>
  979. </t>
  980. </xpath>
  981. </template>
  982. <!-- Inherited Add to cart -->
  983. <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">
  984. <xpath expr="//div[@class='pwp-info']" position="before">
  985. <div class='pink-box'>
  986. <div class="view">
  987. <div class="shopping-cart">
  988. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  989. <t t-if="len(product.product_variant_ids) == 1">
  990. <a class="a-submit">
  991. <!--<img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>--><h5 style="color:#ffffff;">¡LO QUIERO!</h5>
  992. </a>
  993. </t>
  994. <t t-if="len(product.product_variant_ids) &gt; 1">
  995. <a t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  996. <!-- <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/> --><h5 style="color:#ffffff;">¡LO QUIERO!</h5>
  997. </a>
  998. </t>
  999. </div>
  1000. </div>
  1001. </div>
  1002. </xpath>
  1003. </template>
  1004. <!-- Product Sorting -->
  1005. <template id="kingfisher_pro_product_sorting" inherit_id="kingfisher_pro.kingfisher_pro_sale_products" name="Product Sorting" active="False" customize_show="True">
  1006. <xpath expr="//div[@class='category-products category_products']//div[@class='pager_right']/div" position="before">
  1007. <t t-if="website.enable_sort_by">
  1008. <div class="sort-by">
  1009. <div class="dropdown ">
  1010. <button data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" id="sort_by" type="button">
  1011. <t t-set="cur_sort" t-value="website.set_current_sorting_data()"/>
  1012. <t t-if="not cur_sort">
  1013. Ordenar por
  1014. </t>
  1015. <t t-if="cur_sort">
  1016. Ordenar por:
  1017. </t>
  1018. <t t-esc="cur_sort"/>
  1019. <span class="caret"/>
  1020. </button>
  1021. <ul class="dropdown-menu" role="menu">
  1022. <t t-if="not category">
  1023. <t t-as="a" t-foreach="website.get_sort_by_data()">
  1024. <li>
  1025. <a t-att-href="'/shop?sort_id=%s' % a.id" t-field="a.name"/>
  1026. </li>
  1027. </t>
  1028. </t>
  1029. <t t-if="category">
  1030. <t t-as="a" t-foreach="website.get_sort_by_data()">
  1031. <li>
  1032. <a t-att-href="'/shop/category/%s?sort_id=%s' % (slug(category), a.id)" t-field="a.name"/>
  1033. </li>
  1034. </t>
  1035. </t>
  1036. </ul>
  1037. </div>
  1038. </div>
  1039. </t>
  1040. </xpath>
  1041. </template>
  1042. <!-- Custom Filters -->
  1043. <template id="kingfisher_pro_custom_filterz" inherit_id="website_sale.products" active="False" customize_show="True" name="Custom Filters" priority="1">
  1044. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1045. <div t-if="request.session.get('tag') or request.session.get('sortid') or request.session.get('pricerange')" class="popular-tags">
  1046. <div class="left-title mb16">
  1047. <h3>Seleccionar Filtros</h3>
  1048. <hr/>
  1049. </div>
  1050. <ul id="selectedattr">
  1051. <t t-if="request.session.get('tag')">
  1052. <label id="tag" class="label label-info">
  1053. <span>Etiqueta: <t t-esc="request.session['tag'][1]"/></span>
  1054. <a id="clear">X</a>
  1055. </label>
  1056. </t>
  1057. <t t-if="request.session.get('sortid')">
  1058. <label id="sortid" t-if="len(request.session['sortid']) &gt;1" class="label label-info">
  1059. <span>Filtrar por: <t t-esc="request.session['sortid'][2]"/></span>
  1060. <a id="clear">X</a>
  1061. </label>
  1062. </t>
  1063. <t t-if="request.session.get('pricerange')">
  1064. <label id="pricerange" class="label label-info">
  1065. <span>Rango-Precio: <t t-esc="request.session['pricerange']"/></span>
  1066. <a id="clear">X</a>
  1067. </label>
  1068. </t>
  1069. </ul>
  1070. </div>
  1071. </xpath>
  1072. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1073. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1074. </xpath>
  1075. <xpath expr="//div[@id='products_grid']" position="attributes">
  1076. <attribute name="class">col-md-9 col-sm-8</attribute>
  1077. </xpath>
  1078. </template>
  1079. <!-- Inherited Product Categories -->
  1080. <template id="website_sale.products_categories" inherit_id="website_sale.products" name="Product Categories" active="False" customize_show="True" priority="2">
  1081. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1082. <div class="left-title">
  1083. <h3>Categorias</h3>
  1084. <hr/>
  1085. </div>
  1086. <ul class="nav nav-pills nav-stacked category_nav mb16">
  1087. <li t-att-class=" '' if category else 'active' ">
  1088. <a t-att-href="keep('/shop',category=0)">Todos los Productos</a>
  1089. </li>
  1090. <t t-as="c" t-foreach="categories">
  1091. <t t-call="website_sale.categories_recursive"/>
  1092. </t>
  1093. </ul>
  1094. </xpath>
  1095. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1096. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1097. </xpath>
  1098. <xpath expr="//div[@id='products_grid']" position="attributes">
  1099. <attribute name="class">col-md-9 col-sm-8</attribute>
  1100. </xpath>
  1101. </template>
  1102. <template id="king_pro_option_collapse_categories_recursive" name="Collapse Category Recursive">
  1103. <li t-att-class="'active' if categ.id == int(category or 0) else ''">
  1104. <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'}"/>
  1105. <a t-att-href="keep('/shop/category/' + slug(categ), category=0)" t-field="categ.name"></a>
  1106. <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;'">
  1107. <t t-foreach="categ.child_id" t-as="categ">
  1108. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1109. </t>
  1110. </ul>
  1111. </li>
  1112. </template>
  1113. <template id="option_collapse_products_categories" name="Collapsible Category List" inherit_id="website_sale.products_categories" active="False" customize_show="True">
  1114. <xpath expr="//div[@id='products_grid_before']/ul" position="replace">
  1115. <ul class="nav nav-pills nav-stacked mb16" id="o_shop_collapse_category" style="overflow: auto; max-height:200px;">
  1116. <li t-att-class=" '' if category else 'active' ">
  1117. <a t-att-href="keep('/shop',category=0)">Todos los Productos</a>
  1118. </li>
  1119. <t t-foreach="categories" t-as="categ">
  1120. <t t-call="kingfisher_pro.king_pro_option_collapse_categories_recursive"/>
  1121. </t>
  1122. </ul>
  1123. </xpath>
  1124. </template>
  1125. <!-- Inherited Product Attributes -->
  1126. <template id="website_sale.products_attributes" inherit_id="website_sale.products" name="Product Attribute's Filters" active="False" customize_show="True">
  1127. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1128. <div class="shop-by mb16">
  1129. <div class="left-title">
  1130. <h3>Comprar por</h3>
  1131. <hr/>
  1132. </div>
  1133. <form class="js_attributes" method="get">
  1134. <input name="buscar" t-att-value="search" type="hidden"/>
  1135. <ul class="nav nav-pills nav-stacked mt16">
  1136. <t t-as="b" t-foreach="attributes">
  1137. <t t-if="b.name == 'Color'">
  1138. <li t-if="b.value_ids and len(b.value_ids) &gt;1">
  1139. <div>
  1140. <strong class="filtrouno">Filtro por Colores</strong>
  1141. </div>
  1142. <t t-if="b.name == 'Color'">
  1143. <t t-as="w" t-foreach="b.value_ids">
  1144. <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}">
  1145. <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"/>
  1146. </label>
  1147. </t>
  1148. </t>
  1149. </li>
  1150. </t>
  1151. </t>
  1152. </ul>
  1153. </form>
  1154. <form class="js_attributes" method="get">
  1155. <input name="search" t-att-value="search" type="hidden"/>
  1156. <ul class="nav nav-pills nav-stacked mt16">
  1157. <t t-as="a" t-foreach="attributes">
  1158. <t t-if="a.type != 'hidden'">
  1159. <li t-if="a.value_ids and len(a.value_ids) &gt;1 and a.name != 'Color'" >
  1160. <div>
  1161. <strong class="filtrouno" t-field="a.name"/>
  1162. </div>
  1163. <t t-if="a.type == 'color'">
  1164. <t t-as="v" t-foreach="a.value_ids">
  1165. <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}">
  1166. <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"/>
  1167. </label>
  1168. </t>
  1169. </t>
  1170. <t t-if="a.type == 'select'">
  1171. <select class="form-control" name="attrib">
  1172. <option value=""/>
  1173. <t t-as="v" t-foreach="a.value_ids">
  1174. <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"/>
  1175. </t>
  1176. </select>
  1177. </t>
  1178. <t t-if="a.type == 'radio'">
  1179. <ul class="nav nav-pills nav-stacked" style="overflow: auto; max-height:200px; columns: 2; -webkit- columns: 2;-moz- columns: 2;-o- columns: 2;">
  1180. <t t-as="v" t-foreach="a.value_ids">
  1181. <li t-att-class="'active' if v.id in attrib_set else ''" style="margin-top: 0px;">
  1182. <label style="margin: 0 20px;">
  1183. <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"/>
  1184. <span style="font-weight: normal" t-field="v.name"/>
  1185. </label>
  1186. </li>
  1187. </t>
  1188. </ul>
  1189. </t>
  1190. </li>
  1191. </t>
  1192. </t>
  1193. </ul>
  1194. </form>
  1195. </div>
  1196. </xpath>
  1197. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1198. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1199. </xpath>
  1200. <xpath expr="//div[@id='products_grid']" position="attributes">
  1201. <attribute name="class">col-md-9 col-sm-8</attribute>
  1202. </xpath>
  1203. </template>
  1204. <!-- Product Tags -->
  1205. <template id="kingfisher_pro_product_tag" inherit_id="website_sale.products" active="False" customize_show="True" name="Product Tags">
  1206. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1207. <div class="popular-tags mb16">
  1208. <div class="left-title">
  1209. <h3>Etiquetas populares</h3>
  1210. <hr/>
  1211. </div>
  1212. <ul class="tags">
  1213. <t t-if="not category">
  1214. <t t-foreach="website.get_product_tags()" t-as="c">
  1215. <li>
  1216. <a t-att-href="'/shop?tag=%s'%c.id" t-field="c.name"></a>
  1217. </li>
  1218. </t>
  1219. </t>
  1220. <t t-if="category">
  1221. <t t-foreach="website.get_product_tags()" t-as="c">
  1222. <li>
  1223. <a t-att-href="'/shop/category/%s?tag=%s' % (slug(category), c.id)" t-field="c.name"></a>
  1224. </li>
  1225. </t>
  1226. </t>
  1227. </ul>
  1228. </div>
  1229. </xpath>
  1230. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1231. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1232. </xpath>
  1233. <xpath expr="//div[@id='products_grid']" position="attributes">
  1234. <attribute name="class">col-md-9 col-sm-8</attribute>
  1235. </xpath>
  1236. </template>
  1237. <!-- Price Slider -->
  1238. <template id="kingfisher_pro_slider_layout" inherit_id="website_sale.products" name="Product Price Slider" active="False" customize_show="True" >
  1239. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1240. <div class="popular-tags mb16">
  1241. <div class="left-title">
  1242. <h3>Por Precio</h3>
  1243. <hr/>
  1244. </div>
  1245. <div class="price-slider">
  1246. <form method="post" t-att-action="keep('/shop'+ ('/category/'+slug(category)) if category else '',search=0)">
  1247. <div id="priceslider"/>
  1248. <input id="king_pro_website_currency" name="website_currency" t-att-value="website.pricelist_id.currency_id.symbol" type="hidden"/>
  1249. <input id="m1" name="min1" t-att-value="min1" type="hidden"/>
  1250. <input id="m2" name="max1" t-att-value="max1" type="hidden"/>
  1251. <input id="ra1" name="range1" t-att-value="range1" type="hidden"/>
  1252. <input id="ra2" name="range2" t-att-value="range2" type="hidden"/>
  1253. </form>
  1254. </div>
  1255. </div>
  1256. </xpath>
  1257. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1258. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1259. </xpath>
  1260. <xpath expr="//div[@id='products_grid']" position="attributes">
  1261. <attribute name="class">col-md-9 col-sm-8</attribute>
  1262. </xpath>
  1263. </template>
  1264. <!-- Added class in 'continue shopping' button -->
  1265. <template id="kingfisher_pro_checkout" inherit_id="website_sale.checkout">
  1266. <xpath expr="//a[@class='btn btn-default btn-primary pull-right mb32 a-submit']" position="attributes">
  1267. <attribute name="class">btn btn-primary pull-right mb32 a-submit</attribute>
  1268. </xpath>
  1269. </template>
  1270. <!-- Kingfisher Pro Website Megamenu -->
  1271. <template id="kingfisher_pro_website_megamenu_submenu" inherit_id="website.submenu">
  1272. <xpath expr="//li[1]" position="attributes">
  1273. <attribute name="t-if">not submenu.child_id and not submenu.is_megamenu</attribute>
  1274. </xpath>
  1275. <xpath expr="//li" position='after'>
  1276. <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'">
  1277. <a t-att-href="'%s' % (submenu.url) if submenu.url else ''" t-att-target="'_blank' if submenu.new_window else ''">
  1278. <t t-if="submenu.menu_icon and submenu.menu_icon_image">
  1279. <img t-att-src="website.image_url(submenu, 'menu_icon_image', '30x30')"
  1280. class="img-responsive icon"
  1281. t-att-alt="submenu.name"/>
  1282. </t>
  1283. <span t-field="submenu.name"/> <span class="fa fa-angle-down" t-ignore="true"></span>
  1284. </a>
  1285. <!-- 2 Column -->
  1286. <t t-if="submenu.megamenu_type == '2_col'">
  1287. <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 ''">
  1288. <div class="row">
  1289. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1290. <t t-if="not product_categories">
  1291. <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 ''">
  1292. Aun, Sin Categoria asignada a este menu.!!!
  1293. </li>
  1294. </t>
  1295. <t t-if="product_categories">
  1296. <div t-att-class="'col-md-4 col-xs-12' if submenu.category_slider else ''"
  1297. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1298. <t t-if="submenu.category_slider">
  1299. <li>
  1300. <ul>
  1301. <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 ''">
  1302. <t t-esc="submenu.carousel_header_name"/>
  1303. </li>
  1304. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1305. <div class="carousel-inner">
  1306. <t t-value='0' t-set='a'/>
  1307. <t t-foreach="product_categories" t-as="categ">
  1308. <div t-att-class="'item active' if a == 0 else 'item'">
  1309. <t t-value='a+1' t-set='a'/>
  1310. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1311. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1312. t-att-alt="categ.name"
  1313. class="img-responsive"/>
  1314. </a>
  1315. <h4>
  1316. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1317. <t t-esc='categ.name'/>
  1318. </small>
  1319. </h4>
  1320. </div>
  1321. </t>
  1322. </div>
  1323. </div>
  1324. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1325. <i class="fa fa-chevron-left"></i>
  1326. </div>
  1327. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1328. <i class="fa fa-chevron-right"></i>
  1329. </div>
  1330. </ul>
  1331. </li>
  1332. </t>
  1333. </div>
  1334. <div t-att-class="'col-md-8 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1335. <t t-foreach="product_categories" t-as="category">
  1336. <li class="col-sm-6 inline-block">
  1337. <ul>
  1338. <li class="dropdown-header">
  1339. <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 ''">
  1340. <t t-esc="category.name"/>
  1341. </a>
  1342. </li>
  1343. <t t-if="category.child_id">
  1344. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1345. <li class="categories">
  1346. <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 ''">
  1347. <t t-esc="categ.name"/>
  1348. </a>
  1349. </li>
  1350. </t>
  1351. </t>
  1352. </ul>
  1353. </li>
  1354. </t>
  1355. </div>
  1356. </t>
  1357. </div>
  1358. <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 ''">
  1359. <div class="footer">
  1360. <t t-raw='submenu.menu_footer'/>
  1361. </div>
  1362. </div>
  1363. </ul>
  1364. </t>
  1365. <!-- 3 Column -->
  1366. <t t-if="submenu.megamenu_type == '3_col'">
  1367. <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 ''">
  1368. <div class="row">
  1369. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1370. <t t-if="not product_categories">
  1371. <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 ''">
  1372. Aun, Sin Categoria asignada a este menu.!!!
  1373. </li>
  1374. </t>
  1375. <t t-if="product_categories">
  1376. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1377. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1378. <t t-if="submenu.category_slider">
  1379. <li class="margin">
  1380. <ul>
  1381. <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 ''">
  1382. <t t-esc="submenu.carousel_header_name"/>
  1383. </li>
  1384. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1385. <div class="carousel-inner">
  1386. <t t-value='0' t-set='a'/>
  1387. <t t-foreach="product_categories" t-as="categ">
  1388. <div t-att-class="'item active' if a == 0 else 'item'">
  1389. <t t-value='a+1' t-set='a'/>
  1390. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1391. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1392. t-att-alt="categ.name"
  1393. class="img-responsive"/>
  1394. </a>
  1395. <h4>
  1396. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1397. <t t-esc='categ.name'/>
  1398. </small>
  1399. </h4>
  1400. </div>
  1401. </t>
  1402. </div>
  1403. </div>
  1404. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1405. <i class="fa fa-chevron-left"></i>
  1406. </div>
  1407. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1408. <i class="fa fa-chevron-right"></i>
  1409. </div>
  1410. </ul>
  1411. </li>
  1412. </t>
  1413. </div>
  1414. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1415. <t t-foreach="product_categories" t-as="category">
  1416. <li class="col-sm-4 inline-block">
  1417. <ul>
  1418. <li class="dropdown-header">
  1419. <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 ''">
  1420. <t t-esc="category.name"/>
  1421. </a>
  1422. </li>
  1423. <t t-if="category.child_id">
  1424. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1425. <li class="categories">
  1426. <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 ''">
  1427. <t t-esc="categ.name"/>
  1428. </a>
  1429. </li>
  1430. </t>
  1431. </t>
  1432. </ul>
  1433. </li>
  1434. </t>
  1435. </div>
  1436. </t>
  1437. </div>
  1438. <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 ''">
  1439. <div class="footer">
  1440. <t t-raw='submenu.menu_footer'/>
  1441. </div>
  1442. </div>
  1443. </ul>
  1444. </t>
  1445. <!-- 4 Column -->
  1446. <t t-if="submenu.megamenu_type == '4_col'">
  1447. <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 ''">
  1448. <div class="row">
  1449. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1450. <t t-if="not product_categories">
  1451. <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 ''">
  1452. Aun, Sin Categoria asignada a este menu.!!!
  1453. </li>
  1454. </t>
  1455. <t t-if="product_categories">
  1456. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1457. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1458. <t t-if="submenu.category_slider">
  1459. <li class="margin">
  1460. <ul>
  1461. <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 ''">
  1462. <t t-esc="submenu.carousel_header_name"/>
  1463. </li>
  1464. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1465. <div class="carousel-inner">
  1466. <t t-value='0' t-set='a'/>
  1467. <t t-foreach="product_categories" t-as="categ">
  1468. <div t-att-class="'item active' if a == 0 else 'item'">
  1469. <t t-value='a+1' t-set='a'/>
  1470. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1471. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1472. t-att-alt="categ.name"
  1473. class="img-responsive"/>
  1474. </a>
  1475. <h4>
  1476. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1477. <t t-esc='categ.name'/>
  1478. </small>
  1479. </h4>
  1480. </div>
  1481. </t>
  1482. </div>
  1483. </div>
  1484. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1485. <i class="fa fa-chevron-left"></i>
  1486. </div>
  1487. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1488. <i class="fa fa-chevron-right"></i>
  1489. </div>
  1490. </ul>
  1491. </li>
  1492. </t>
  1493. </div>
  1494. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1495. <t t-foreach="product_categories" t-as="category">
  1496. <li class="col-sm-3 inline-block">
  1497. <ul>
  1498. <li class="dropdown-header">
  1499. <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 ''">
  1500. <t t-esc="category.name"/>
  1501. </a>
  1502. </li>
  1503. <t t-if="category.child_id">
  1504. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1505. <li class="categories">
  1506. <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 ''">
  1507. <t t-esc="categ.name"/>
  1508. </a>
  1509. </li>
  1510. </t>
  1511. </t>
  1512. </ul>
  1513. </li>
  1514. </t>
  1515. </div>
  1516. </t>
  1517. </div>
  1518. <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 ''">
  1519. <div class="footer">
  1520. <t t-raw='submenu.menu_footer'/>
  1521. </div>
  1522. </div>
  1523. </ul>
  1524. </t>
  1525. </li>
  1526. </xpath>
  1527. </template>
  1528. <!-- First / Last pager -->
  1529. <template id="website_pager_addition" inherit_id="website.pager">
  1530. <xpath expr="//ul/li" position='before'>
  1531. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1532. <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
  1533. <a t-att-href=" pager['page_first']['url'] if pager['page']['num'] != 1 else ''">Primero</a>
  1534. </li>
  1535. </t>
  1536. </xpath>
  1537. <xpath expr="//ul/li[last()]" position='after'>
  1538. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1539. <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
  1540. <a t-att-href="pager['page_last']['url'] if pager['page']['num'] != pager['page_count'] else ''">Último</a>
  1541. </li>
  1542. </t>
  1543. </xpath>
  1544. </template>
  1545. <!-- 404 page -->
  1546. <template id="404_page_template" inherit_id="website.404" customize_show="True">
  1547. <xpath expr="//div[@id='wrap']" position="replace">
  1548. <div class="container">
  1549. <div class="row section-404 well">
  1550. <div class="col-md-12 text-center">
  1551. <div class="content-404">
  1552. <img src="/kingfisher_pro/static/src/img/kingfisher-pro-404.png"/>
  1553. <label>404</label>
  1554. </div>
  1555. <p class="text-center not-found-message">La página que estas buscando no existe o fue cambiado</p>
  1556. <p class="text-center try-pages">Intente con cualquiera de estas paginas
  1557. <span>
  1558. <a t-attf-href="/page/website.homepage" title="Writizmo">Pagina Inicial</a>
  1559. </span>
  1560. <span>
  1561. <a t-attf-href="/shop" title="Writizmo">Tienda</a>
  1562. </span>
  1563. </p>
  1564. </div>
  1565. </div>
  1566. </div>
  1567. </xpath>
  1568. </template>
  1569. </data>
  1570. </openerp>