theme.xml 100 KB

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