theme.xml 103 KB

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