theme.xml 105 KB

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