theme.xml 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598
  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="#0" 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. <img class="product_detail_img"
  389. t-att-name="product.name"
  390. t-att-alt="product.name"
  391. t-att-title="product.name"
  392. t-att-src="website.image_url(product, '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. </t>
  401. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.flip_image">
  402. <div id="gallery">
  403. <img class="product_detail_img"
  404. t-att-alt="product.name"
  405. t-att-title="product.name"
  406. t-att-src="website.image_url(product, 'image')"
  407. t-att-data-image="website.image_url(product, 'image')"/>
  408. <t t-if="product.is_flip_image and product.flip_image">
  409. <img t-att-alt="product.name"
  410. t-att-src="website.image_url(product, 'flip_image')"
  411. t-att-data-image="website.image_url(product, 'flip_image')"
  412. t-att-title="product.name"/>
  413. </t>
  414. </div>
  415. </t>
  416. <t t-if="not product.multi_image and product.flip_image">
  417. <div id="gallery">
  418. <img class="product_detail_img"
  419. t-att-alt="product.name"
  420. t-att-title="product.name"
  421. t-att-src="website.image_url(product, 'image')"
  422. t-att-data-image="website.image_url(product, 'image')"/>
  423. <t t-if="product.is_flip_image and product.flip_image">
  424. <img t-att-alt="product.name"
  425. t-att-src="website.image_url(product, 'flip_image')"
  426. t-att-data-image="website.image_url(product, 'flip_image')"
  427. t-att-title="product.name"/>
  428. </t>
  429. </div>
  430. </t>
  431. <t t-if="product.multi_image and website.get_multiple_images(product.id)">
  432. <div id="gallery">
  433. <img class="product_detail_img"
  434. t-att-alt="product.name"
  435. t-att-title="product.name"
  436. t-att-src="website.image_url(product, 'image')"
  437. t-att-data-image="website.image_url(product, 'image')"/>
  438. <t t-as="im" t-foreach="website.get_multiple_images(product.id)">
  439. <t t-if="im.attach_type == 'image'">
  440. <img t-att-src="website.image_url(im, 'image')"
  441. t-att-alt="im.alt if im.alt else im.name"
  442. t-att-data-image="website.image_url(im, 'image')"
  443. t-att-title="im.name if im.name else product.name"/>
  444. </t>
  445. <t t-if="im.attach_type == 'video'">
  446. <t t-if="im.video_type == 'youtube'">
  447. <img t-att-alt="im.alt if im.alt else im.name"
  448. data-type="youtube"
  449. t-att-data-videoid="im.video_id"
  450. t-att-data-description="im.name if im.name else product.name"/>
  451. </t>
  452. <t t-if="im.video_type == 'vimeo'">
  453. <img t-att-alt="im.alt if im.alt else im.name"
  454. data-type="vimeo"
  455. t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  456. t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  457. t-att-data-videoid="im.video_id"
  458. t-att-data-description="im.name if im.name else product.name"/>
  459. </t>
  460. <t t-if="im.video_type == 'html5video'">
  461. <img data-type="html5video"
  462. t-att-alt="im.alt if im.alt else im.name"
  463. t-att-src="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  464. t-att-data-image="website.image_url(im, 'cover_image') if im.cover_image else website.image_url(im, 'image')"
  465. t-att-data-videoogv="im.video_ogv if im.video_ogv else '' "
  466. t-att-data-videowebm="im.video_webm if im.video_webm else '' "
  467. t-att-data-videomp4="im.video_mp4 if im.video_mp4 else '' "
  468. t-att-data-description="im.name if im.name else product.name"/>
  469. </t>
  470. </t>
  471. </t>
  472. <t t-if="product.is_flip_image and product.flip_image">
  473. <img t-att-alt="product.name"
  474. t-att-src="website.image_url(product, 'flip_image')"
  475. t-att-data-image="website.image_url(product, 'flip_image')"
  476. t-att-title="product.name"/>
  477. </t>
  478. </div>
  479. </t>
  480. <t t-if="product.multi_image and not website.get_multiple_images(product.id)">
  481. <img class="product_detail_img"
  482. t-att-src="website.image_url(product, 'image')"
  483. t-att-alt="product.name"
  484. t-att-title="product.name"
  485. t-att-data-image="website.image_url(product, 'image')"/>
  486. </t>
  487. <t t-if="product.multi_image and not website.get_multiple_images(product.id) and product.is_flip_image and product.flip_image">
  488. <div id="gallery">
  489. <img class="product_detail_img"
  490. t-att-src="website.image_url(product, 'image')"
  491. t-att-alt="product.name"
  492. t-att-title="product.name"
  493. t-att-data-image="website.image_url(product, 'image')"/>
  494. <t t-if="product.is_flip_image and product.flip_image">
  495. <img t-att-alt="product.name"
  496. t-att-src="website.image_url(product, 'flip_image')"
  497. t-att-data-image="website.image_url(product, 'flip_image')"
  498. t-att-title="product.name"/>
  499. </t>
  500. </div>
  501. </t>
  502. </span>
  503. </xpath>
  504. </template>
  505. <!-- Product detail page -->
  506. <template id="kingfisher_pro_product_details" inherit_id="website_sale.product" name="Product Details">
  507. <xpath expr="//div[@itemscope='itemscope']/section/div" position="attributes">
  508. <attribute name="style">display:none;</attribute>
  509. </xpath>
  510. <!-- Added class for main section in product detail page -->
  511. <xpath expr="//div[@itemscope='itemscope']/section" position="attributes">
  512. <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>
  513. </xpath>
  514. <!-- Theme breadcrumb -->
  515. <xpath expr="//div[@itemscope='itemscope']/section" position="before">
  516. <section class="page-title">
  517. <div class="container">
  518. <div class="col-sm-8">
  519. <ul class="breadcrumb">
  520. <li>
  521. <a href="/page/homepage">Home</a>
  522. </li>
  523. <li>
  524. <a href="/shop">Products</a>
  525. </li>
  526. <li t-if="category">
  527. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  528. </li>
  529. <li class="active">
  530. <span t-field="product.name"/>
  531. </li>
  532. </ul>
  533. </div>
  534. <div class="col-sm-4 col-xs-6" groups="base.group_sale_manager">
  535. <t t-call="website.publish_management">
  536. <t t-set="object" t-value="product"/>
  537. <t t-set="publish_edit" t-value="True"/>
  538. <t t-set="action" t-value="'product.product_template_action'"/>
  539. </t>
  540. </div>
  541. </div>
  542. </section>
  543. </xpath>
  544. <!-- Product detail page right side design -->
  545. <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">
  546. <attribute name="style">display:none;</attribute>
  547. </xpath>
  548. <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">
  549. <div id="product_details" class="col-xs-12 col-md-5 col-lg-5 col-sm-5 product-detail">
  550. <div class="product-shop-info">
  551. <div class="product-title">
  552. <h1 itemprop="name" t-field="product.name">Product Name</h1>
  553. <ul class="ratings"></ul>
  554. <p class="review">
  555. <a href="#">
  556. <span>
  557. <t t-esc="len(product.website_message_ids)"/>
  558. </span> review(s) | Add your review
  559. </a>
  560. </p>
  561. <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
  562. </div>
  563. <!-- <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> -->
  564. <div class="product-options-bottom">
  565. <form class="js_add_cart_variants" method="POST" t-att-action="keep('/shop/cart/update')">
  566. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  567. <div class="js_product">
  568. <div class="details">
  569. <div class="price-box">
  570. <t t-call="website_sale.product_price"/>
  571. </div>
  572. <t t-if="product.description_sale">
  573. <div class="pro-desc">
  574. <p t-field="product.description_sale"/>
  575. </div>
  576. </t>
  577. </div>
  578. <t t-placeholder="select">
  579. <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"/>
  580. <t t-call="website_sale.variants">
  581. <t t-set="ul_class" t-value="'nav-stacked'"/>
  582. </t>
  583. </t>
  584. <p class="css_not_available_msg bg-danger" style="padding: 15px;" t-if="len(product.product_variant_ids) &gt; 1">Product not available</p>
  585. <div class="add-to-cart">
  586. <a class="btn cart-btn btn-lg js_check_product a-submit" href="#" id="add_to_cart">
  587. <i class="fa fa-shopping-cart"/>Add to Cart</a>
  588. </div>
  589. </div>
  590. </form>
  591. </div>
  592. </div>
  593. </div>
  594. </xpath>
  595. <!-- Product Description -->
  596. <xpath expr="//div[@itemprop='description']" position="attributes">
  597. <attribute name="style">display:none;</attribute>
  598. </xpath>
  599. <xpath expr="//div[@itemprop='description']" position="before">
  600. <div class="container" id="website_description">
  601. <div class="pd-more-info">
  602. <!-- Nav tabs -->
  603. <ul id="description_reviews_tabs" class="nav nav-tabs" role="tablist">
  604. <li role="presentation" class="active">
  605. <a href="#description" aria-controls="more_info" role="tab" data-toggle="tab">Description</a>
  606. </li>
  607. </ul>
  608. <div id="description_reviews_tabs_contents" class="tab-content">
  609. <div role="tabpanel" class="tab-pane active" id="description">
  610. <div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
  611. <div class="oe_structure"/>
  612. </div>
  613. </div>
  614. </div>
  615. </div>
  616. </xpath>
  617. </template>
  618. <!-- Removed Sign In -->
  619. <template id="website.show_sign_in" customize_show="False" inherit_id="website.layout" name="Show Sign In" groups="base.group_public">
  620. <xpath expr="//ul[@id='top_menu']" position="inside">
  621. <li class="divider" style="display:none"/>
  622. <li style="display:none">
  623. <a t-attf-href="/web/login">
  624. <b>Sign in</b>
  625. </a>
  626. </li>
  627. </xpath>
  628. </template>
  629. <!-- Select quantity inherited from website sale -->
  630. <template id="website_sale.product_quantity" inherit_id="website_sale.product" customize_show="True" name="Select Quantity">
  631. <xpath expr="//section[@id='product_detail']/div[@class='row']//div[2]//div[@class='js_product']" position="inside">
  632. <div class="css_quantity input-group oe_website_spinner" contenteditable="false">
  633. <a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json">
  634. <i class="fa fa-minus"></i>
  635. </a>
  636. <input type="text" class="form-control" data-min="1" name="add_qty" value="1"/>
  637. <a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json">
  638. <i class="fa fa-plus"></i>
  639. </a>
  640. </div>
  641. </xpath>
  642. </template>
  643. <!-- Rating card -->
  644. <template id="rating.rating_card" name="Rating Card">
  645. <div class="o_rating_card">
  646. <!-- <div class="text-center well well-sm"> -->
  647. <!-- popover 'button' -->
  648. <div class="rating"
  649. data-placement="top"
  650. data-toggle="rating-popover">
  651. <t t-call="rating.rating_star_card">
  652. <t t-set="rating_default_value" t-value="'%.2f' % (rating_stat.get('avg', 0.0),)"/>
  653. <t t-set="rating_disabled" t-value="True"/>
  654. </t>
  655. <!-- <i class="fa fa-user"> <t t-esc="rating_stat.get('total', 0)"/></i> -->
  656. </div>
  657. <!-- popover core -->
  658. <div class="popover rating_popover" role="tooltip">
  659. <div class="arrow"></div>
  660. <div class="popover-content">
  661. <t t-foreach="rating_stat.get('percent')" t-as="percent">
  662. <t t-if="min_rate &lt;= percent and percent &lt;= max_rate">
  663. <div class="progress" style="width:200px;">
  664. <div class="progress-bar" role="progressbar"
  665. aria-valuemin="0"
  666. aria-valuemax="100"
  667. t-att-aria-valuenow="rating_stat['percent'][percent]"
  668. t-attf-style="width: #{rating_stat['percent'][percent]}%">
  669. <span class="sr-only">
  670. <t t-esc="rating_stat['percent'][percent]"/>%
  671. </span>
  672. </div>
  673. <span class="progress_type">
  674. <t t-esc="percent"/> <i class="fa fa-star"/>
  675. </span>
  676. <span class="progress_completed">
  677. <t t-esc="rating_stat['percent'][percent]"/>%
  678. </span>
  679. </div>
  680. </t>
  681. </t>
  682. </div>
  683. </div>
  684. <!-- </div> -->
  685. </div>
  686. </template>
  687. <!-- Discussion inherited to display in tabs -->
  688. <template id="website_sale.product_comment" inherit_id="kingfisher_pro.kingfisher_pro_product_details" active="True" customize_show="True" name="Discussion">
  689. <!-- Rating -->
  690. <xpath expr="//div[@id='product_details']//ul[@class='ratings']" position="inside">
  691. <t t-call="rating.rating_card">
  692. <t t-set="rating_stat" t-value="rating_product"/>
  693. <t t-set="max_rate" t-value="5"/>
  694. <t t-set="min_rate" t-value="1"/>
  695. </t>
  696. </xpath>
  697. <!-- Will add review tab -->
  698. <xpath expr="//div[@id='website_description']/div/ul/li" position="after">
  699. <li role="presentation">
  700. <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>
  701. </li>
  702. </xpath>
  703. <!-- Will add review tab contents -->
  704. <xpath expr="//div[@id='website_description']//div[@id='description']" position="after">
  705. <div role="tabpanel" class="tab-pane" id="reviews">
  706. <section class="container">
  707. <div class="row col-md-10 col-md-offset-1">
  708. <div class="text-muted">
  709. <h3 class="fa fa-comment-o">
  710. <a id="comments">
  711. <t t-if="len(product.website_message_ids) &lt;= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
  712. <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
  713. </a>
  714. </h3>
  715. </div>
  716. <t t-call="website_mail.message_thread">
  717. <t t-set="object" t-value="product"/>
  718. <t t-set="chatter_mode" t-value="'json'"/>
  719. <t t-set="rating_enable" t-value="True"/>
  720. </t>
  721. </div>
  722. </section>
  723. </div>
  724. </xpath>
  725. </template>
  726. <!-- Suggested products -->
  727. <template id="website_sale.recommended_products" inherit_id="website_sale.product" customize_show="True" name="Alternative Products">
  728. <xpath expr="//div[@id='product_full_description']" position="after">
  729. <div class="related-products container" t-if="product.alternative_product_ids">
  730. <div class="left-title">
  731. <h3>Suggested alternatives:</h3><hr/>
  732. </div>
  733. <div id="recommended_products_slider" class="owl-carousel">
  734. <t t-foreach="product.alternative_product_ids" t-as="product">
  735. <div class="cs-product">
  736. <div class="pwp-img">
  737. <a t-att-href="'/shop/product/%s' % slug(product)">
  738. <img t-att-src="website.image_url(product, 'image')" t-att-title="product.name" t-att-alt="product.name"/>
  739. </a>
  740. </div>
  741. <div class="pink-box">
  742. <ul class='ratings'>
  743. <t t-call="rating.rating_card">
  744. <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
  745. <t t-set="max_rate" t-value="5"/>
  746. <t t-set="min_rate" t-value="1"/>
  747. </t>
  748. </ul>
  749. <div class="view">
  750. <div class="shopping-cart">
  751. <a t-attf-href="/shop/product/#{ slug(product) }">
  752. <img src="/kingfisher_pro/static/src/img/cart2.png" alt="Shopping-cart" title="Shopping Cart" />
  753. </a>
  754. </div>
  755. </div>
  756. </div>
  757. <div class="pwp-info">
  758. <p class="pwpi-title">
  759. <a t-attf-href="/shop/product/#{ slug(product) }">
  760. <span t-field='product.name'/>
  761. </a>
  762. </p>
  763. <p class="price">
  764. <span class="price">
  765. <span t-field="product.lst_price"
  766. t-field-options='{
  767. "widget": "monetary",
  768. "display_currency": "website.pricelist_id.currency_id"
  769. }'></span>
  770. </span>
  771. </p>
  772. </div>
  773. </div>
  774. </t>
  775. </div>
  776. </div>
  777. </xpath>
  778. </template>
  779. <!-- Products Items -->
  780. <template id="king_pro_products_item" name="Kingfisher Product item" customize_show="True">
  781. <form action="/shop/cart/update" method="post">
  782. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  783. <div itemscope="itemscope" itemtype="http://schema.org/Product">
  784. <div class="cs-product">
  785. <div class="pwp-img">
  786. <a itemprop="url" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))">
  787. <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')"/>
  788. </a>
  789. </div>
  790. <div class="pwp-info">
  791. <p class="pwpi-title">
  792. <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"/>
  793. </p>
  794. <p class="price">
  795. <span class="price" itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" t-if="product.product_variant_ids">
  796. <b>
  797. <t t-if="(compute_currency(product.lst_price) - product.price) &gt; 0.1">
  798. <del class="text-danger mr8" style="white-space: nowrap;" t-field="product.lst_price" t-field-options='{
  799. "widget": "monetary",
  800. "from_currency": "product.currency_id",
  801. "display_currency": "website.currency_id"
  802. }'/>
  803. </t>
  804. <span t-field="product.price" style="white-space: nowrap;" t-field-options='{
  805. "widget": "monetary",
  806. "display_currency": "website.currency_id"
  807. }'>
  808. </span>
  809. <span itemprop="price" style="display:none;" t-esc="product.price"/>
  810. <span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name"/>
  811. </b>
  812. </span>
  813. </p>
  814. <div id='list_add_to_cart' class="hidden">
  815. <ul class='ratings'>
  816. <t t-call="rating.rating_card">
  817. <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
  818. <t t-set="max_rate" t-value="5"/>
  819. <t t-set="min_rate" t-value="1"/>
  820. </t>
  821. </ul>
  822. <span t-field="product.description_sale"/>
  823. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  824. <t t-if="len(product.product_variant_ids) == 1">
  825. <a class="a-submit btn btn-primary">Add to cart</a>
  826. </t>
  827. <t t-if="len(product.product_variant_ids) &gt; 1">
  828. <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>
  829. </t>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </form>
  835. </template>
  836. <!-- Product Style Tag image -->
  837. <template id="kingfisher_pro_style_tags" inherit_id="kingfisher_pro.king_pro_products_item" name="Product Sale Tags" active="True" customize_show="True">
  838. <xpath expr="//div[@itemscope='itemscope']/div[@class='cs-product']/div" position="inside">
  839. <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 ''">
  840. <t t-esc="product.product_style_tag_id.name"/>
  841. </div>
  842. </xpath>
  843. </template>
  844. <!-- Enable/Disable Flip image -->
  845. <template id="kingfisher_pro_flip_image" inherit_id="kingfisher_pro.king_pro_products_item" name="Flip Image" active="True" customize_show="True">
  846. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="attributes">
  847. <attribute name="class">front img img-responsive</attribute>
  848. </xpath>
  849. <xpath expr="//div[@class='cs-product']//a[@itemprop='url']/img" position="after">
  850. <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')"/>
  851. </xpath>
  852. </template>
  853. <!-- Products page -->
  854. <template id="kingfisher_pro_sale_products" inherit_id="website_sale.products" name="Kingfisher Pro Products">
  855. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[3]" position="attributes">
  856. <attribute name="style">display:none;</attribute>
  857. </xpath>
  858. <!-- Brand Cover and description -->
  859. <xpath expr="//div[@id='products_grid']/table" position="before">
  860. <t t-if="brand_obj and brand_obj.brand_cover">
  861. <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;"/>
  862. </t>
  863. <t t-if="brand_obj and brand_obj.brand_description">
  864. <div class="mb16" style="width:100%; padding: 0 15px;">
  865. <t t-raw="brand_obj.brand_description"/>
  866. </div>
  867. </t>
  868. </xpath>
  869. <xpath expr="//div[@id='wrap']/div[@class='container oe_website_sale']/div[@class='products_pager']" position="attributes">
  870. <attribute name="style">display:none;</attribute>
  871. </xpath>
  872. <xpath expr="//div[@id='wrap']//div[@class='oe_structure']" position="before">
  873. <section class="page-title">
  874. <div class="container">
  875. <ul class="breadcrumb">
  876. <li>
  877. <a href="/page/homepage">Home</a>
  878. </li>
  879. <li t-att-class="'' if category else 'active'">
  880. <a href="/shop">Products</a>
  881. </li>
  882. <li t-if="category" t-att-class="'active' if category else ''">
  883. <a t-att-href="keep('/shop/category/%s' % slug(category), category=0)" t-field="category.name"/>
  884. </li>
  885. </ul>
  886. </div>
  887. </section>
  888. </xpath>
  889. <!-- Category name, grid/list switching, pager, sort by -->
  890. <xpath expr="//div[@id='products_grid']/table" position="before">
  891. <div class="right-title">
  892. <t t-if="category">
  893. <h3 t-field='category.name'/>
  894. </t>
  895. <t t-if="not category">
  896. <h3>
  897. All Products
  898. </h3>
  899. </t>
  900. <hr/>
  901. </div>
  902. <div class="category-products category_products">
  903. <div class="toolbar">
  904. <div class="toolbar-pager">
  905. <div class="pager_left">
  906. <div class="view-mode">
  907. <button class="shift_grid_view active" title="Grid View">
  908. <i class="fa fa-th-large"/>
  909. </button>
  910. <button class="shift_list_view" title="List View">
  911. <i class="fa fa-bars"/>
  912. </button>
  913. </div>
  914. <div class="paging_sort">
  915. <!-- Product paging -->
  916. <t t-if="products and website.get_pager_selection()">
  917. <t t-set="website_ppp" t-value="website.get_pager_selection()"/>
  918. <span t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'simple_name' or 'hidden'}">
  919. <t t-esc="website_ppp['name']"/>
  920. <div t-attf-class="#{website_ppp and len(website_ppp['page_no'])>1 and 'dropdown' or 'hidden'} btn-group">
  921. <t t-set="curr_ppp" t-value="website.get_current_pager_selection()"/>
  922. <a href="#" class="dropdown-toggle btn btn-default" data-toggle="dropdown">
  923. <t t-esc="curr_ppp or ' - '" />
  924. <span class="caret"></span>
  925. </a>
  926. <ul class="dropdown-menu" role="menu">
  927. <li t-foreach="website_ppp['page_no']" t-as="pl" >
  928. <a t-att-href="'/shop/pager_selection/%s' % pl.id">
  929. <span class='switcher_pricelist' t-att-data-pl_id="pl.id" t-esc="pl.name"/>
  930. </a>
  931. </li>
  932. </ul>
  933. </div>
  934. </span>
  935. </t>
  936. </div>
  937. </div>
  938. <div class="pager_right">
  939. <div class="products_pager">
  940. <t t-call="website.pager"/>
  941. </div>
  942. </div>
  943. </div>
  944. </div>
  945. </div>
  946. </xpath>
  947. <!-- Kingfisher Pro Prodcut Grid View -->
  948. <xpath expr="//div[@id='products_grid']/table" position="attributes">
  949. <attribute name="style">display:none;</attribute>
  950. </xpath>
  951. <xpath expr="//div[@id='products_grid']/table" position="before">
  952. <div id="kingfisher_pro_products_grid_view">
  953. <t t-as="tr_product" t-foreach="bins">
  954. <t t-as="td_product" t-foreach="tr_product">
  955. <t t-if="td_product">
  956. <t t-set="product" t-value="td_product['product']"/>
  957. <div t-if="website.product_display_grid == '2'" class="col-md-6 col-sm-6 list-items">
  958. <t t-call="kingfisher_pro.king_pro_products_item"/>
  959. </div>
  960. <div t-if="website.product_display_grid == '3'" class="col-md-4 col-sm-6 list-items">
  961. <t t-call="kingfisher_pro.king_pro_products_item"/>
  962. </div>
  963. <div t-if="website.product_display_grid == '4'" class="col-md-3 col-sm-6 list-items">
  964. <t t-call="kingfisher_pro.king_pro_products_item"/>
  965. </div>
  966. </t>
  967. </t>
  968. </t>
  969. </div>
  970. <!-- For not bins -->
  971. </xpath>
  972. </template>
  973. <!-- Kingfisher Pro Product list view -->
  974. <template id="website_sale.products_list_view" inherit_id="website_sale.products" name="List View" active="False" customize_show="False">
  975. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="attributes">
  976. <attribute name="style">display:none;</attribute>
  977. </xpath>
  978. <xpath expr="//div[@id='kingfisher_pro_products_grid_view']" position="before">
  979. <div id="kingfisher_pro_products_list_view">
  980. <t t-as="product" t-foreach="products">
  981. <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'">
  982. <t t-call="kingfisher_pro.king_pro_products_item"/>
  983. </div>
  984. </t>
  985. </div>
  986. </xpath>
  987. </template>
  988. <!-- Remove main add to cart -->
  989. <template id="website_sale.products_add_to_cart" inherit_id="website_sale.products_item" active="False" customize_show="False" name="Add to Cart">
  990. <xpath expr="//div[@class='product_price']" position="inside">
  991. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  992. <t t-if="len(product.product_variant_ids) == 1">
  993. <a class="btn btn-default btn-xs a-submit"><span class="fa fa-shopping-cart"/></a>
  994. </t>
  995. <t t-if="len(product.product_variant_ids) &gt; 1">
  996. <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>
  997. </t>
  998. </xpath>
  999. </template>
  1000. <!-- Inherited Add to cart -->
  1001. <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">
  1002. <xpath expr="//div[@class='pwp-info']" position="before">
  1003. <div class='pink-box'>
  1004. <ul class='ratings'>
  1005. <t t-call="rating.rating_card">
  1006. <t t-set="rating_stat" t-value="product.rating_get_stats([('website_published', '=', True)])"/>
  1007. <t t-set="max_rate" t-value="5"/>
  1008. <t t-set="min_rate" t-value="1"/>
  1009. </t>
  1010. </ul>
  1011. <div class="view">
  1012. <div class="shopping-cart">
  1013. <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
  1014. <t t-if="len(product.product_variant_ids) == 1">
  1015. <a class="a-submit">
  1016. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  1017. </a>
  1018. </t>
  1019. <t t-if="len(product.product_variant_ids) &gt; 1">
  1020. <a t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
  1021. <img alt="Shopping-cart" src="/kingfisher_pro/static/src/img/cart2.png" title="Shopping Cart"/>
  1022. </a>
  1023. </t>
  1024. </div>
  1025. </div>
  1026. </div>
  1027. </xpath>
  1028. </template>
  1029. <!-- Product Sorting -->
  1030. <template id="kingfisher_pro_product_sorting" inherit_id="kingfisher_pro.kingfisher_pro_sale_products" name="Product Sorting" active="False" customize_show="True">
  1031. <xpath expr="//div[@class='category-products category_products']//div[@class='pager_right']/div" position="before">
  1032. <t t-if="website.enable_sort_by">
  1033. <div class="sort-by">
  1034. <div class="dropdown ">
  1035. <button data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" id="sort_by" type="button">
  1036. <t t-set="cur_sort" t-value="website.set_current_sorting_data()"/>
  1037. <t t-if="not cur_sort">
  1038. Sort By
  1039. </t>
  1040. <t t-if="cur_sort">
  1041. Sort By:
  1042. </t>
  1043. <t t-esc="cur_sort"/>
  1044. <span class="caret"/>
  1045. </button>
  1046. <ul class="dropdown-menu" role="menu">
  1047. <t t-if="not category">
  1048. <t t-as="a" t-foreach="website.get_sort_by_data()">
  1049. <li>
  1050. <a t-att-href="'/shop?sort_id=%s' % a.id" t-field="a.name"/>
  1051. </li>
  1052. </t>
  1053. </t>
  1054. <t t-if="category">
  1055. <t t-as="a" t-foreach="website.get_sort_by_data()">
  1056. <li>
  1057. <a t-att-href="'/shop/category/%s?sort_id=%s' % (slug(category), a.id)" t-field="a.name"/>
  1058. </li>
  1059. </t>
  1060. </t>
  1061. </ul>
  1062. </div>
  1063. </div>
  1064. </t>
  1065. </xpath>
  1066. </template>
  1067. <!-- Custom Filters -->
  1068. <template id="kingfisher_pro_custom_filterz" inherit_id="website_sale.products" active="False" customize_show="True" name="Custom Filters" priority="1">
  1069. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1070. <div t-if="request.session.get('tag') or request.session.get('sortid') or request.session.get('pricerange')" class="popular-tags">
  1071. <div class="left-title mb16">
  1072. <h3>Selected Filters</h3>
  1073. <hr/>
  1074. </div>
  1075. <ul id="selectedattr">
  1076. <t t-if="request.session.get('tag')">
  1077. <label id="tag" class="label label-info">
  1078. <span>Tag: <t t-esc="request.session['tag'][1]"/></span>
  1079. <a id="clear">X</a>
  1080. </label>
  1081. </t>
  1082. <t t-if="request.session.get('sortid')">
  1083. <label id="sortid" t-if="len(request.session['sortid']) &gt;1" class="label label-info">
  1084. <span>Sort By: <t t-esc="request.session['sortid'][2]"/></span>
  1085. <a id="clear">X</a>
  1086. </label>
  1087. </t>
  1088. <t t-if="request.session.get('pricerange')">
  1089. <label id="pricerange" class="label label-info">
  1090. <span>Price-Range: <t t-esc="request.session['pricerange']"/></span>
  1091. <a id="clear">X</a>
  1092. </label>
  1093. </t>
  1094. </ul>
  1095. </div>
  1096. </xpath>
  1097. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1098. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1099. </xpath>
  1100. <xpath expr="//div[@id='products_grid']" position="attributes">
  1101. <attribute name="class">col-md-9 col-sm-8</attribute>
  1102. </xpath>
  1103. </template>
  1104. <!-- Inherited Product Categories -->
  1105. <template id="website_sale.products_categories" inherit_id="website_sale.products" name="Product Categories" active="False" customize_show="True" priority="2">
  1106. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1107. <div class="left-title">
  1108. <h3>Categories</h3>
  1109. <hr/>
  1110. </div>
  1111. <ul class="nav nav-pills nav-stacked mt16 category_nav mb16">
  1112. <li t-att-class=" '' if category else 'active' ">
  1113. <a t-att-href="keep('/shop',category=0)">All Products</a>
  1114. </li>
  1115. <t t-as="c" t-foreach="categories">
  1116. <t t-call="website_sale.categories_recursive"/>
  1117. </t>
  1118. </ul>
  1119. </xpath>
  1120. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1121. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1122. </xpath>
  1123. <xpath expr="//div[@id='products_grid']" position="attributes">
  1124. <attribute name="class">col-md-9 col-sm-8</attribute>
  1125. </xpath>
  1126. </template>
  1127. <!-- Inherited Product Attributes -->
  1128. <template id="website_sale.products_attributes" inherit_id="website_sale.products" name="Product Attribute's Filters" active="False" customize_show="True">
  1129. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1130. <div class="shop-by mt16 mb16">
  1131. <div class="left-title">
  1132. <h3>Shop by</h3>
  1133. <hr/>
  1134. </div>
  1135. <form class="js_attributes" method="get">
  1136. <input name="search" t-att-value="search" type="hidden"/>
  1137. <ul class="nav nav-pills nav-stacked mt16">
  1138. <t t-as="a" t-foreach="attributes">
  1139. <t t-if="a.type != 'hidden'">
  1140. <li t-if="a.value_ids and len(a.value_ids) &gt;1">
  1141. <div>
  1142. <strong t-field="a.name"/>
  1143. </div>
  1144. <t t-if="a.type == 'select'">
  1145. <select class="form-control" name="attrib">
  1146. <option value=""/>
  1147. <t t-as="v" t-foreach="a.value_ids">
  1148. <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"/>
  1149. </t>
  1150. </select>
  1151. </t>
  1152. <t t-if="a.type == 'radio'">
  1153. <ul class="nav nav-pills nav-stacked">
  1154. <t t-as="v" t-foreach="a.value_ids">
  1155. <li t-att-class="'active' if v.id in attrib_set else ''">
  1156. <label style="margin: 0 20px;">
  1157. <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"/>
  1158. <span style="font-weight: normal" t-field="v.name"/>
  1159. </label>
  1160. </li>
  1161. </t>
  1162. </ul>
  1163. </t>
  1164. <t t-if="a.type == 'color'">
  1165. <t t-as="v" t-foreach="a.value_ids">
  1166. <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}">
  1167. <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"/>
  1168. </label>
  1169. </t>
  1170. </t>
  1171. </li>
  1172. </t>
  1173. </t>
  1174. </ul>
  1175. </form>
  1176. </div>
  1177. </xpath>
  1178. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1179. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1180. </xpath>
  1181. <xpath expr="//div[@id='products_grid']" position="attributes">
  1182. <attribute name="class">col-md-9 col-sm-8</attribute>
  1183. </xpath>
  1184. </template>
  1185. <!-- Product Tags -->
  1186. <template id="kingfisher_pro_product_tag" inherit_id="website_sale.products" active="False" customize_show="True" name="Product Tags">
  1187. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1188. <div class="popular-tags mb16">
  1189. <div class="left-title">
  1190. <h3>Popular Tags</h3>
  1191. <hr/>
  1192. </div>
  1193. <ul class="tags">
  1194. <t t-if="not category">
  1195. <t t-foreach="website.get_product_tags()" t-as="c">
  1196. <li>
  1197. <a t-att-href="'/shop?tag=%s'%c.id" t-field="c.name"></a>
  1198. </li>
  1199. </t>
  1200. </t>
  1201. <t t-if="category">
  1202. <t t-foreach="website.get_product_tags()" t-as="c">
  1203. <li>
  1204. <a t-att-href="'/shop/category/%s?tag=%s' % (slug(category), c.id)" t-field="c.name"></a>
  1205. </li>
  1206. </t>
  1207. </t>
  1208. </ul>
  1209. </div>
  1210. </xpath>
  1211. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1212. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1213. </xpath>
  1214. <xpath expr="//div[@id='products_grid']" position="attributes">
  1215. <attribute name="class">col-md-9 col-sm-8</attribute>
  1216. </xpath>
  1217. </template>
  1218. <!-- Price Slider -->
  1219. <template id="kingfisher_pro_slider_layout" inherit_id="website_sale.products" name="Product Price Slider" active="False" customize_show="True" >
  1220. <xpath expr="//div[@id='products_grid_before']" position="inside">
  1221. <div class="popular-tags mt16">
  1222. <div class="left-title">
  1223. <h3>By Price</h3>
  1224. <hr/>
  1225. </div>
  1226. <div class="price-slider">
  1227. <form method="post" t-att-action="keep('/shop'+ ('/category/'+slug(category)) if category else '',search=0)">
  1228. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  1229. <div id="priceslider"/>
  1230. <input id="king_pro_website_currency" name="website_currency" t-att-value="website.pricelist_id.currency_id.symbol" type="hidden"/>
  1231. <input id="m1" name="min1" t-att-value="min1" type="hidden"/>
  1232. <input id="m2" name="max1" t-att-value="max1" type="hidden"/>
  1233. <input id="ra1" name="range1" t-att-value="range1" type="hidden"/>
  1234. <input id="ra2" name="range2" t-att-value="range2" type="hidden"/>
  1235. </form>
  1236. </div>
  1237. </div>
  1238. </xpath>
  1239. <xpath expr="//div[@id='products_grid_before']" position="attributes">
  1240. <attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
  1241. </xpath>
  1242. <xpath expr="//div[@id='products_grid']" position="attributes">
  1243. <attribute name="class">col-md-9 col-sm-8</attribute>
  1244. </xpath>
  1245. </template>
  1246. <!-- Added class in 'continue shopping' button -->
  1247. <template id="kingfisher_pro_checkout" inherit_id="website_sale.checkout">
  1248. <xpath expr="//a[@class='btn btn-default btn-primary pull-right mb32 a-submit']" position="attributes">
  1249. <attribute name="class">btn btn-primary pull-right mb32 a-submit</attribute>
  1250. </xpath>
  1251. </template>
  1252. <!-- Kingfisher Pro Website Megamenu -->
  1253. <template id="kingfisher_pro_website_megamenu_submenu" inherit_id="website.submenu">
  1254. <xpath expr="//li[1]" position="attributes">
  1255. <attribute name="t-if">not submenu.child_id and not submenu.is_megamenu</attribute>
  1256. </xpath>
  1257. <xpath expr="//li" position='after'>
  1258. <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'">
  1259. <a t-att-href="'%s' % (submenu.url) if submenu.url else ''" t-att-target="'_blank' if submenu.new_window else ''">
  1260. <t t-if="submenu.menu_icon and submenu.menu_icon_image">
  1261. <img t-att-src="website.image_url(submenu, 'menu_icon_image', '30x30')"
  1262. class="img-responsive icon"
  1263. t-att-alt="submenu.name"/>
  1264. </t>
  1265. <span t-field="submenu.name"/> <span class="fa fa-angle-down" t-ignore="true"></span>
  1266. </a>
  1267. <!-- 2 Column -->
  1268. <t t-if="submenu.megamenu_type == '2_col'">
  1269. <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 ''">
  1270. <div class="row">
  1271. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1272. <t t-if="not product_categories">
  1273. <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 ''">
  1274. Still, No category assigned to this menu.!!!
  1275. </li>
  1276. </t>
  1277. <t t-if="product_categories">
  1278. <div t-att-class="'col-md-4 col-xs-12' if submenu.category_slider else ''"
  1279. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1280. <t t-if="submenu.category_slider">
  1281. <li>
  1282. <ul>
  1283. <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 ''">
  1284. <t t-esc="submenu.carousel_header_name"/>
  1285. </li>
  1286. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1287. <div class="carousel-inner">
  1288. <t t-value='0' t-set='a'/>
  1289. <t t-foreach="product_categories" t-as="categ">
  1290. <div t-att-class="'item active' if a == 0 else 'item'">
  1291. <t t-value='a+1' t-set='a'/>
  1292. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1293. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1294. t-att-alt="categ.name"
  1295. class="img-responsive"/>
  1296. </a>
  1297. <h4>
  1298. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1299. <t t-esc='categ.name'/>
  1300. </small>
  1301. </h4>
  1302. </div>
  1303. </t>
  1304. </div>
  1305. </div>
  1306. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1307. <i class="fa fa-chevron-left"></i>
  1308. </div>
  1309. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1310. <i class="fa fa-chevron-right"></i>
  1311. </div>
  1312. </ul>
  1313. </li>
  1314. </t>
  1315. </div>
  1316. <div t-att-class="'col-md-8 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1317. <t t-foreach="product_categories" t-as="category">
  1318. <li class="col-sm-6 inline-block">
  1319. <ul>
  1320. <li class="dropdown-header">
  1321. <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 ''">
  1322. <t t-esc="category.name"/>
  1323. </a>
  1324. </li>
  1325. <t t-if="category.child_id">
  1326. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1327. <li class="categories">
  1328. <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 ''">
  1329. <t t-esc="categ.name"/>
  1330. </a>
  1331. </li>
  1332. </t>
  1333. </t>
  1334. </ul>
  1335. </li>
  1336. </t>
  1337. </div>
  1338. </t>
  1339. </div>
  1340. <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 ''">
  1341. <div class="footer">
  1342. <t t-raw='submenu.menu_footer'/>
  1343. </div>
  1344. </div>
  1345. </ul>
  1346. </t>
  1347. <!-- 3 Column -->
  1348. <t t-if="submenu.megamenu_type == '3_col'">
  1349. <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 ''">
  1350. <div class="row">
  1351. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1352. <t t-if="not product_categories">
  1353. <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 ''">
  1354. Still, No category assigned to this menu.!!!
  1355. </li>
  1356. </t>
  1357. <t t-if="product_categories">
  1358. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1359. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1360. <t t-if="submenu.category_slider">
  1361. <li class="margin">
  1362. <ul>
  1363. <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 ''">
  1364. <t t-esc="submenu.carousel_header_name"/>
  1365. </li>
  1366. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1367. <div class="carousel-inner">
  1368. <t t-value='0' t-set='a'/>
  1369. <t t-foreach="product_categories" t-as="categ">
  1370. <div t-att-class="'item active' if a == 0 else 'item'">
  1371. <t t-value='a+1' t-set='a'/>
  1372. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1373. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1374. t-att-alt="categ.name"
  1375. class="img-responsive"/>
  1376. </a>
  1377. <h4>
  1378. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1379. <t t-esc='categ.name'/>
  1380. </small>
  1381. </h4>
  1382. </div>
  1383. </t>
  1384. </div>
  1385. </div>
  1386. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1387. <i class="fa fa-chevron-left"></i>
  1388. </div>
  1389. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1390. <i class="fa fa-chevron-right"></i>
  1391. </div>
  1392. </ul>
  1393. </li>
  1394. </t>
  1395. </div>
  1396. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1397. <t t-foreach="product_categories" t-as="category">
  1398. <li class="col-sm-4 inline-block">
  1399. <ul>
  1400. <li class="dropdown-header">
  1401. <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 ''">
  1402. <t t-esc="category.name"/>
  1403. </a>
  1404. </li>
  1405. <t t-if="category.child_id">
  1406. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1407. <li class="categories">
  1408. <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 ''">
  1409. <t t-esc="categ.name"/>
  1410. </a>
  1411. </li>
  1412. </t>
  1413. </t>
  1414. </ul>
  1415. </li>
  1416. </t>
  1417. </div>
  1418. </t>
  1419. </div>
  1420. <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 ''">
  1421. <div class="footer">
  1422. <t t-raw='submenu.menu_footer'/>
  1423. </div>
  1424. </div>
  1425. </ul>
  1426. </t>
  1427. <!-- 4 Column -->
  1428. <t t-if="submenu.megamenu_type == '4_col'">
  1429. <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 ''">
  1430. <div class="row">
  1431. <t t-value="website.get_public_product_category(submenu)" t-set="product_categories" />
  1432. <t t-if="not product_categories">
  1433. <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 ''">
  1434. Still, No category assigned to this menu.!!!
  1435. </li>
  1436. </t>
  1437. <t t-if="product_categories">
  1438. <div t-att-class="'col-md-3 col-xs-12' if submenu.category_slider else ''"
  1439. t-att-style="'float: %s' % submenu.category_slider_position if submenu.category_slider and submenu.category_slider_position else 'float:left;'">
  1440. <t t-if="submenu.category_slider">
  1441. <li class="margin">
  1442. <ul>
  1443. <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 ''">
  1444. <t t-esc="submenu.carousel_header_name"/>
  1445. </li>
  1446. <div t-att-id="'myCarousel-%s' % submenu.id" class="carousel slide" data-ride="carousel">
  1447. <div class="carousel-inner">
  1448. <t t-value='0' t-set='a'/>
  1449. <t t-foreach="product_categories" t-as="categ">
  1450. <div t-att-class="'item active' if a == 0 else 'item'">
  1451. <t t-value='a+1' t-set='a'/>
  1452. <a t-att-href="'/shop/category/%s' % slug(categ)">
  1453. <img t-att-src="website.image_url(categ, 'image', '300x250')"
  1454. t-att-alt="categ.name"
  1455. class="img-responsive"/>
  1456. </a>
  1457. <h4>
  1458. <small t-att-style="'color: %s' %(submenu.sub_category_color) if submenu.customize_menu_colors and submenu.sub_category_color else ''">
  1459. <t t-esc='categ.name'/>
  1460. </small>
  1461. </h4>
  1462. </div>
  1463. </t>
  1464. </div>
  1465. </div>
  1466. <div class="carousel-control left" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="prev" >
  1467. <i class="fa fa-chevron-left"></i>
  1468. </div>
  1469. <div class="carousel-control right" t-att-data-target="'#myCarousel-%s' % submenu.id" data-slide="next" >
  1470. <i class="fa fa-chevron-right"></i>
  1471. </div>
  1472. </ul>
  1473. </li>
  1474. </t>
  1475. </div>
  1476. <div t-att-class="'col-md-9 col-xs-12 letter-spacing' if submenu.category_slider else 'col-md-12 letter-spacing'">
  1477. <t t-foreach="product_categories" t-as="category">
  1478. <li class="col-sm-3 inline-block">
  1479. <ul>
  1480. <li class="dropdown-header">
  1481. <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 ''">
  1482. <t t-esc="category.name"/>
  1483. </a>
  1484. </li>
  1485. <t t-if="category.child_id">
  1486. <t t-foreach="website.get_public_product_child_category(category.child_id)" t-as="categ">
  1487. <li class="categories">
  1488. <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 ''">
  1489. <t t-esc="categ.name"/>
  1490. </a>
  1491. </li>
  1492. </t>
  1493. </t>
  1494. </ul>
  1495. </li>
  1496. </t>
  1497. </div>
  1498. </t>
  1499. </div>
  1500. <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 ''">
  1501. <div class="footer">
  1502. <t t-raw='submenu.menu_footer'/>
  1503. </div>
  1504. </div>
  1505. </ul>
  1506. </t>
  1507. </li>
  1508. </xpath>
  1509. </template>
  1510. <!-- First / Last pager -->
  1511. <template id="website_pager_addition" inherit_id="website.pager">
  1512. <xpath expr="//ul/li" position='before'>
  1513. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1514. <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
  1515. <a t-att-href=" pager['page_first']['url'] if pager['page']['num'] != 1 else ''">First</a>
  1516. </li>
  1517. </t>
  1518. </xpath>
  1519. <xpath expr="//ul/li[last()]" position='after'>
  1520. <t t-if="website.enable_first_last_pager and pager['page_count'] > 2">
  1521. <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
  1522. <a t-att-href="pager['page_last']['url'] if pager['page']['num'] != pager['page_count'] else ''">Last</a>
  1523. </li>
  1524. </t>
  1525. </xpath>
  1526. </template>
  1527. <!-- Payment table layout -->
  1528. <template id="kingfisher_pro_website_sale_payment" inherit_id="website_sale.payment">
  1529. <xpath expr="//table/thead/tr/th" position='replace'>
  1530. <th width="100">Product</th>
  1531. <th></th>
  1532. </xpath>
  1533. </template>
  1534. <!-- 404 page -->
  1535. <template id="404_page_template" inherit_id="website.404">
  1536. <xpath expr="//div[@id='wrap']" position="replace">
  1537. <div class="container">
  1538. <div class="row section-404 well">
  1539. <div class="col-md-12 text-center">
  1540. <div class="content-404">
  1541. <img src="/kingfisher_pro/static/src/img/kingfisher-pro-404.png"/>
  1542. <label>404</label>
  1543. </div>
  1544. <p class="text-center not-found-message">This is not the webpage you are looking for</p>
  1545. <p class="text-center try-pages">Please try one of the following pages
  1546. <span><a t-attf-href="/page/website.homepage" title="Writizmo">home page</a></span></p>
  1547. </div>
  1548. </div>
  1549. </div>
  1550. </xpath>
  1551. </template>
  1552. </data>
  1553. </openerp>