theme.xml 100 KB

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