theme.xml 98 KB

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