[ADD] theme 8.0

This commit is contained in:
Design
2021-05-11 15:41:12 +02:00
committed by Jeremy Kersten
commit 51c615247e
3583 changed files with 121845 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
Odoo Proprietary License v1.0
This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).
You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.
The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
View File
+16
View File
@@ -0,0 +1,16 @@
{
'name': 'Theme Kea eCommerce Plugin',
'description': 'Kea eCommerce Plugin',
'category': 'Hidden',
'version': '1.0',
'author': 'Odoo S.A.',
'depends': ['theme_kea', 'website_sale'],
'data': [
'views/theme.xml',
'views/layout.xml',
],
'demo': [
'demo/products.xml',
],
'auto_install': True,
}
+302
View File
@@ -0,0 +1,302 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<delete id="product.computers" model="product.public.category"/>
<delete id="product.sub_computers" model="product.public.category"/>
<delete id="product.Components" model="product.public.category"/>
<delete id="product.devices" model="product.public.category"/>
<delete id="product.laptops" model="product.public.category"/>
<delete id="product.network" model="product.public.category"/>
<delete id="product.case" model="product.public.category"/>
<delete id="product.Computer_all_in_one" model="product.public.category"/>
<delete id="product.External_Hard_Drive" model="product.public.category"/>
<delete id="product.graphics_card" model="product.public.category"/>
<delete id="product.HDD" model="product.public.category"/>
<delete id="product.Headset" model="product.public.category"/>
<delete id="product.Keyboard_Mouse" model="product.public.category"/>
<delete id="product.Memory" model="product.public.category"/>
<delete id="product.Modem_Router" model="product.public.category"/>
<delete id="product.motherboard" model="product.public.category"/>
<delete id="product.Pen_Drive" model="product.public.category"/>
<delete id="product.printer" model="product.public.category"/>
<delete id="product.processor" model="product.public.category"/>
<delete id="product.Screen" model="product.public.category"/>
<delete id="product.server" model="product.public.category"/>
<delete id="product.services" model="product.public.category"/>
<delete id="product.Software" model="product.public.category"/>
<delete id="product.Speakers" model="product.public.category"/>
<delete id="product.Switch" model="product.public.category"/>
<delete id="product.video_acquisition" model="product.public.category"/>
<!-- Create new categories -->
<record id="computers" model="product.public.category">
<field name="name">Computers</field>
</record>
<record id="mac" model="product.public.category">
<field name="parent_id" ref="computers"/>
<field name="name">Mac</field>
</record>
<record id="pc" model="product.public.category">
<field name="parent_id" ref="computers"/>
<field name="name">PC</field>
</record>
<record id="phones" model="product.public.category">
<field name="name">Phones</field>
</record>
<record id="printers" model="product.public.category">
<field name="name">Printers</field>
</record>
<record id="remote" model="product.public.category">
<field name="name">Remote Controllers</field>
</record>
<record id="headphone" model="product.public.category">
<field name="name">Headphones</field>
</record>
<record id="accessories" model="product.public.category">
<field name="name">Accessories</field>
</record>
<record id="mouse" model="product.public.category">
<field name="parent_id" ref="accessories"/>
<field name="name">Mouse</field>
</record>
<record id="keyboards" model="product.public.category">
<field name="parent_id" ref="accessories"/>
<field name="name">Keyboards</field>
</record>
<record id="other" model="product.public.category">
<field name="parent_id" ref="accessories"/>
<field name="name">Other</field>
</record>
<record id="product_1" model="product.product">
<field name="name">Asus Taichi</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.pc')])]"/>
<field name="standard_price">1099.0</field>
<field name="list_price">1099.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_01.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_2" model="product.product">
<field name="name">Dell Laptop</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.pc')])]"/>
<field name="standard_price">1300.0</field>
<field name="list_price">1300.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_02.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_3" model="product.product">
<field name="name">Apple Imac</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.mac')])]"/>
<field name="standard_price">2700.0</field>
<field name="list_price">2700.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_03.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_4" model="product.product">
<field name="name">Macbook Pro</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.mac')])]"/>
<field name="standard_price">2700.0</field>
<field name="list_price">2700.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_04.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_5" model="product.product">
<field name="name">Mac Pro</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.mac')])]"/>
<field name="standard_price">3499.0</field>
<field name="list_price">3499.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_05.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_6" model="product.product">
<field name="name">Mac Mini</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.mac')])]"/>
<field name="standard_price">889.0</field>
<field name="list_price">889.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_06.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_7" model="product.product">
<field name="name">Iphone 6</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.phones')])]"/>
<field name="standard_price">699.0</field>
<field name="list_price">699.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_07.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_8" model="product.product">
<field name="name">Ipad Keyboard</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.keyboards')])]"/>
<field name="standard_price">49.0</field>
<field name="list_price">49.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_08.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_9" model="product.product">
<field name="name">Edifier Headphone</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.headphone')])]"/>
<field name="standard_price">149.0</field>
<field name="list_price">149.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_09.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_10" model="product.product">
<field name="name">Beats Headphone</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.headphone')])]"/>
<field name="standard_price">349.0</field>
<field name="list_price">349.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_10.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_11" model="product.product">
<field name="name">Beat Tour-In-Ear Headphone</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.headphone')])]"/>
<field name="standard_price">149.0</field>
<field name="list_price">149.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_11.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_12" model="product.product">
<field name="name">Apple Magic Mouse</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.mouse')])]"/>
<field name="standard_price">89.0</field>
<field name="list_price">89.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_12.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_13" model="product.product">
<field name="name">Epson Expression Photo XP-950 Printer</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.printers')])]"/>
<field name="standard_price">319.0</field>
<field name="list_price">319.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_13.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_14" model="product.product">
<field name="name">Apple Remote</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.remote')])]"/>
<field name="standard_price">19.0</field>
<field name="list_price">19.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_14.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_15" model="product.product">
<field name="name">Sony Vaio Duo 13</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.pc')])]"/>
<field name="standard_price">1399.0</field>
<field name="list_price">1399.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_15.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
<record id="product_16" model="product.product">
<field name="name">Bretford MobilePro</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">2</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_kea_sale.other')])]"/>
<field name="standard_price">149.0</field>
<field name="list_price">149.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_kea/static/src/img/content/product_img_16.jpg"/>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="uom_po_id" ref="product.product_uom_unit"/>
</record>
</data>
</openerp>
@@ -0,0 +1,24 @@
$(function(){
// CATEGORIES
var category_list = "#products_grid_before";
if ($(".oe_website_sale " + category_list).length) {
// Close the category using the arrow
$(category_list).on('click', '.close-icon', function(event) {
$(event.target).closest('li').removeClass('active');
});
// Open the category using the arrow
$(category_list).on('click', '.open-icon', function(event) {
$(category_list + " li").removeClass('active'); // Close the others
$(event.target).parents('li').each(function(parent){ // Open this one's hierarchy
$(this).addClass('active');
});
});
// Open the current category tab
$('li:has(a[href="' + window.location.pathname + '"])').addClass('active');
}
});
@@ -0,0 +1,12 @@
#top_menu {
.my_cart_quantity {
color: @color-beta;
}
}
#products_grid {
.oe_product_cart {
section a {
color: @color-beta !important;
}
}
}
@@ -0,0 +1,488 @@
#wrap > .container-fluid form.pagination, #wrap > .container form.pagination {
float: right;
width: 100%;
padding-right: 0;
}
#website_published_button {
min-height: 50px;
}
.oe_website_sale {
overflow: hidden;
padding-bottom: 20px;
background-color: @color-alpha;
.page-header {
small {
display: block;
a {
color: red;
}
}
}
.oe_product_cart {
border: 1px solid @gray-lighter;
.in {
background-color: rgba(0, 0, 0, 0.5);
}
}
.oe_product {
padding: 5px;
border: 0;
h5 {
a {
color: @color-epsilon;
}
}
.ribbon {
background-color: red;
top: 0px;
width: 145px;
}
// Product name, price and quick cart part
section {
padding: 0px 15px;
background: rgba(240, 240, 240, 0.9);
border-top: 1px solid @gray-lighter;
h5 {
padding: 10px 0px;
font-size: 13px;
margin: 0px;
text-align: right;
border-bottom: 1px solid @gray-lighter;
a {
color: @color-delta;
&:hover {
text-decoration: none;
}
}
}
.text-info {
text-align: left;
color: @gray-light;
}
.oe_subdescription {
margin-bottom: 0px;
}
.product_price {
font-size: 12px;
position: relative;
text-align: right;
padding: 0;
b {
.text-danger {
color: red;
}
}
.btn-default { // cart btn
background: rgba(0, 0, 0, 0);
border: none;
font-size: 15px;
position: relative;
padding-right: 0px;
top: -6px;
padding-bottom: 0px;
}
}
}
}
}
#products_grid {
padding-left: 15px;
table, tbody {
background-color: rgba(0, 0, 0, 0) !important;
}
.products_pager {
margin-top: 15px;
float: right;
ul {
a {
border: rgba(0, 0, 0, 0);
color: @gray;
min-width: 35px;
}
}
}
.pagination > .active > a {
border-bottom: 3px solid @color-epsilon;
background-color: rgba(0, 0, 0, 0);
color: @color-epsilon;
}
.pagination a {
.transition (all 0.3s ease-out);
&:hover {
border-bottom: 3px solid @color-delta;
background: rgba(0, 0, 0, 0);
color: @gray-light;
}
}
.products_pager > ul {
li:first-child > a {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
li:last-child > a {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
}
}
/* =================== Search =================== */
#wrap {
.search {
background-color: @color-beta;
}
}
.form-inline .input-group {
background-color: white;
width: 100%;
.form-control {
width: 100%;
.BorderRadius (0px);
height: 50px;
box-shadow: none;
text-transform: lowercase;
border: none;
&:focus {
box-shadow: none;
}
}
.input-group-btn {
width: 50px;
.btn-default {
.BorderRadius (0px);
height: 50px;
width: 50px;
&:hover {
background-color: white !important;
}
}
.btn {
line-height: 2.5;
}
}
}
/* =================== Categories =================== */
#products_grid_before {
padding: 15px 0px;
padding-bottom: 800em;
margin-bottom: -800em;
ul.nav-stacked {
li {
a {
font-size: 16px;
color: @gray-light;
&:hover, &:focus {
background-color: @gray-lighter;
color: @gray;
}
}
}
}
.nav-pills > li > ul {
padding-left: 15px;
}
> ul > li > a {
color: @color-epsilon !important;
text-transform: uppercase;
font-size: 18px !important;
}
li > ul, li > .close-icon, li.active > .open-icon {
display: none;
}
li.active > ul, li.active > .close-icon {
display: block;
}
.category-name {
font-size: 3.5vw;
text-align: left;
margin-top: 0px;
padding: 10px 15px;
color: @color-gamma;
border-bottom: 1px solid @gray-lighter;
}
/* =========== Filters ========== */
.js_attributes {
padding: 0px 15px 15px 15px;
strong {
display: block;
padding-left: 10px;
margin-bottom: 10px;
margin-top: 10px;
color: @color-gamma;
text-transform: uppercase;
}
.css_attribute_color.active {
border: 5px ridge @color-alpha;
}
li > ul {
display: block;
}
label > span {
color: @gray;
}
}
/* =========================== */
}
.open-icon, .close-icon {
position: absolute;
right: 10px;
top: 4px;
padding: 0 4px;
cursor: pointer;
font-size: 18px;
color: @color-epsilon;
}
/* =================== Product page =================== */
.js_sale {
.container-fluid > .row:first-child, .container:first-child > .row:first-child {
background-color: @color-eta;
}
.breadcrumb {
padding-top: 20px;
background: rgba(0, 0, 0, 0);
border-bottom: 1px solid @gray-lighter;
li {
font-size: 15px;
a {
color: @color-gamma;
}
}
}
}
.js_add_cart_variants > li {
> strong {
font-size: 20px;
}
}
.js_add_cart_variants {
color: @gray;
/* ======== PRICE ======== */
.oe_price_h4 {
font-size: 18px;
.oe_currency_value {
font-size: 18px;
}
}
}
.discount .oe_default_price {
display: inline-block;
}
.product-title {
padding: 0px 0px 50px 0px;
text-align: center;
color: @gray;
}
.product-description {
text-align: center;
font-size: 18px;
}
#add_to_cart {
padding-top: 15px;
margin: 20px 0;
.transition (all 0.5s ease-out);
.fa {
font-size: 25px;
padding-bottom: 10px;
display: block;
}
}
/* ======= ADD QUANTITY ========= */
.oe_website_spinner {
margin-bottom: 25px;
@media (max-width: @screen-xs-max) {
margin-left: 0;
}
.input-group-addon {
border-radius: 0px;
&:first-child, &:last-child {
border: none;
background-color: @gray;
}
a {
color: white;
}
}
.js_quantity {
text-align: center;
border-color: @gray;
}
}
.badge, .active > a > .badge {
padding: 5px 10px;
margin-left: 15px;
background-color: @color-gamma;
color: white;
min-width: 28px;
}
.list-unstyled .css_attribute_color.active {
border: 3px solid @color-gamma;
}
#website_sale_recommended_products {
padding: 30px;
h3 {
text-align: center;
border-bottom: 5px solid @color-epsilon;
padding-bottom: 20px;
color: @color-gamma;
}
.row {
padding: 0 15px;
}
.col-md-2 {
margin-top: 10px;
min-height: 160px;
span {
color: @color-epsilon;
}
}
}
/* ===================== Product list view ======================= */
.oe_list {
margin: 5px 0 5px 15px;
border: 1px solid @gray-lighter;
width: 90% !important;
section {
h5 {
text-align: left !important;
}
.product_price {
display: inline-block;
}
.oe_subdescription {
max-width: 70%;
}
}
}
/* =================== Modal =================== */
#modal_optional_products {
.modal-title {
background: rgba(0, 0, 0, 0);
}
.input-group {
border-collapse: inherit;
}
}
/* =================== Shopping cart =================== */
.oe_website_sale {
color: @gray;
.oe_cart {
.btn {
@media (max-width: @screen-xs-max) {
padding: 10px;
}
}
strong {
color: @gray;
}
.well {
background-color: rgba(0, 0, 0, 0);
}
#cart_products {
img {
max-width: 100px;
}
}
.oe_website_spinner {
border-collapse: inherit;
}
.a-submit {
padding: 20px 0px;
min-width: 150px;
}
h4 .oe_currency_value, h4 .text-right {
font-size: 16px;
}
}
#right_column {
color: @gray;
a {
color: red;
}
.btn {
.BorderRadius (0px);
border: none;
}
.input-group-btn {
padding-left: 5px;
}
h4 {
color: @gray;
border-bottom: 1px solid @gray;
font-size: 22px;
font-weight: bold;
}
.fa {
padding-right: 5px;
}
}
.wizard {
padding-right: 15px;
box-shadow: none;
@media (max-width:@screen-sm-min) {
padding-right: 0px;
}
.text-primary {
color: white;
}
.text-success {
color: @gray-light;
}
li.text-primary {
background-color: @color-gamma;
@media (max-width:@screen-sm-min) {
background-color: rgba(0, 0, 0, 0);
color: @color-gamma;
padding-left: 7px;
}
.chevron:before {
border-left: 10px solid @color-gamma;
@media (max-width:@screen-sm-min) {
border-left: none;
}
}
}
li {
border-color: @color-gamma;
background-color: rgba(0, 0, 0, 0);
@media (max-width:@screen-sm-min) {
border-color: rgba(0, 0, 0, 0);
padding-left: 7px;
}
.chevron {
border-left: 10px solid @color-gamma;
background: rgba(0, 0, 0, 0);
@media (max-width:@screen-sm-min) {
border-color: rgba(0, 0, 0, 0);
}
}
}
.text-muted {
color: @gray-light;
}
}
}
/* ======================== PAY =========================== */
.oe_sale_acquirer_button {
.btn {
min-width: 150px;
text-transform: uppercase;
font-size: 20px;
margin-bottom: 20px;
}
}
+162
View File
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Product grid view -->
<template id="products" inherit_id='website_sale.products' name="Products">
<xpath expr="//*[contains(@class, 'oe_website_sale')]//*[1]" position="before">
<t t-call="theme_kea_sale.search"/>
</xpath>
<!-- Use container fluid instead of container -->
<xpath expr="//div[contains(@class, 'oe_website_sale')]" position="attributes">
<attribute name="class">container-fluid oe_website_sale</attribute>
</xpath>
<!-- Add pager to the top and bottom -->
<xpath expr="//div[@id='products_grid']/*[1]" position="before">
<div class="products_pager" t-if="pager['page_count'] > 1">
<t t-call="website.pager"/>
</div>
</xpath>
<xpath expr="//div[@id='products_grid']/*[last()]" position="after">
<div class="products_pager" t-if="pager['page_count'] > 1">
<t t-call="website.pager"/>
</div>
</xpath>
<!-- Remove original pager -->
<xpath expr="//div[contains(@class, 'products_pager')]" position="replace">
</xpath>
<xpath expr="//div[contains(@class, 'oe_website_sale')]/div[@class='products_pager']" position="replace">
</xpath>
</template>
<!-- Rearrange product page -->
<template id="product" inherit_id='website_sale.product' name="Product">
<!-- Widen breadcrumb -->
<xpath expr="//*[@id='wrap']//*[contains(@class, 'row')]/*[1]" position="attributes">
<attribute name="class">col-sm-12</attribute>
</xpath>
<!-- Move Published button -->
<xpath expr="//*[@id='wrap']//*[contains(@class, 'row')]/*[3]" position="attributes">
<attribute name="class">col-sm-12</attribute>
<attribute name="id">website_published_button</attribute>
</xpath>
<!-- Move search bar -->
<xpath expr="//*[@id='wrap']//*[contains(@class, 'row')]/*[2]" position="replace">
</xpath>
<xpath expr="//*[@id='wrap']//*[contains(@class, 'row')]" position="before">
<t t-call="theme_kea_sale.search"/>
</xpath>
<!-- Move product name -->
<xpath expr="//div[contains(@class, 'col-lg-offset-1')]/h1" position="replace">
</xpath>
<xpath expr="//*[@id='website_published_button']" position="after">
<div class="col-sm-12 product-title">
<h1 itemprop="name" t-field="product.name">Product Name</h1>
</div>
</xpath>
<!-- Hide useless hr -->
<xpath expr="//div[contains(@class, 'col-lg-offset-1')]/hr" position="replace">
</xpath>
<!-- New add to cart button -->
<xpath expr="//a[@id='add_to_cart']" position="replace">
<a id="add_to_cart" class="btn btn-primary btn-lg mt8 js_check_product a-submit center-block" href="#">
<i class="fa fa-shopping-cart"></i>
Add to Cart
</a>
</xpath>
</template>
<!-- Add class to recommended products -->
<template id="recommended_products" inherit_id="website_sale.recommended_products" name="Alternative Products">
<xpath expr="//div[contains(@class, 'container')]" position="attributes">
<attribute name='id'>website_sale_recommended_products</attribute>
</xpath>
</template>
<!-- Add h3 tag to the category list -->
<template id="products_categories" inherit_id="website_sale.products_categories" active="True" customize_show="True" name="Product Categories">
<xpath expr="//div[@id='products_grid_before']/ul" position="before">
<h3 class="category-name">Product categories</h3>
</xpath>
<xpath expr="//div[@id='products_grid_before']" position="attributes">
<attribute name="class">col-md-3 col-sm-4 hidden-xs</attribute>
</xpath>
<xpath expr="//div[@id='products_grid']" position="attributes">
<attribute name="class">col-md-9 col-sm-8</attribute>
</xpath>
</template>
<!-- Add h3 tag before filters -->
<template id="products_filters" inherit_id="website_sale.products_attributes" name="Product Filters">
<xpath expr="//form[contains(@class, 'js_attributes')]" position="before">
<h3 class="category-name">Product filters</h3>
</xpath>
</template>
<record id="website_sale.products_add_to_cart" model="ir.ui.view">
<field name="active" eval='True'/>
</record>
<record id="website_sale.products_categories" model="ir.ui.view">
<field name="active" eval='True'/>
</record>
<template id="products_categories_recursive" inherit_id="website_sale.products_categories">
<xpath expr="//t[@t-call='website_sale.categories_recursive']" position="replace">
<t t-call="theme_kea_sale.categories_recursive"/>
</xpath>
</template>
<!-- Put open icon next to categories -->
<template id="categories_recursive" name="Category list">
<li t-att-class="'' if c.id == int(category or 0) else ''">
<t t-if="c.child_id">
<a t-att-href="keep('/shop/category/' + slug(c), category=0)" t-field="c.name" class="main-category"/>
<i class="fa fa-chevron-down open-icon"></i>
<i class="fa fa-chevron-up close-icon"></i>
</t>
<t t-if="not c.child_id">
<a t-att-href="keep('/shop/category/' + slug(c), category=0)" t-att-id="c.id" t-field="c.name"/>
</t>
<ul t-if="c.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
<t t-foreach="c.child_id" t-as="c">
<t t-call="theme_kea_sale.categories_recursive"/>
</t>
</ul>
</li>
</template>
<template id="search" name="search">
<div class="row">
<div class="col-md-12">
<t t-if="not keep">
<form action="/shop" method="get" class="pagination form-inline col-md-12">
<div class="input-group">
<input name="search" class="search-query form-control" placeholder="Search..." type="text"/>
<span class="input-group-btn">
<a class="btn btn-default a-submit"><i class="fa fa-search"></i></a>
</span>
</div>
</form>
</t>
<t t-if="keep">
<t t-call="website_sale.search">
<t t-set="search_class">pagination form-inline col-md-12</t>
</t>
</t>
</div>
</div>
</template>
</data>
</openerp>
+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- Jump to website after theme installation -->
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="website.action_website"/>
<field name="state">open</field>
</record>
</data>
<data>
<template id="less" name="/theme_kea_sale_less" inherit_id="website.theme">
<xpath expr="//link[last()]" position="after">
<link href="/theme_kea_sale/static/src/less/theme_ecommerce.less" rel="stylesheet" type="text/less"/>
</xpath>
</template>
<template id="assets_frontend" inherit_id="website.assets_frontend" name="/theme_kea frontend scripts">
<xpath expr="." position="inside">
<script type="text/javascript" src="/theme_kea_sale/static/src/js/collapse_categories.js"></script>
</xpath>
</template>
</data>
</openerp>