[ADD] theme 8.0
This commit is contained in:
@@ -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.
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
'name': 'Kiddo eCommerce Plugin',
|
||||
'description': 'Kiddo eCommerce Plugin',
|
||||
'category': 'Hidden',
|
||||
'version': '1.0',
|
||||
'author': 'Odoo S.A.',
|
||||
'depends': ['theme_kiddo', 'website_sale'],
|
||||
'data': [
|
||||
'views/theme.xml',
|
||||
'views/layout.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/products.xml',
|
||||
],
|
||||
'auto_install': True,
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
<?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="lego" model="product.public.category">
|
||||
<field name="name">Lego</field>
|
||||
</record>
|
||||
<record id="City" model="product.public.category">
|
||||
<field name="parent_id" ref="lego"/>
|
||||
<field name="name">City</field>
|
||||
</record>
|
||||
<record id="StarWars" model="product.public.category">
|
||||
<field name="parent_id" ref="lego"/>
|
||||
<field name="name">Star Wars</field>
|
||||
</record>
|
||||
<record id="Ninjago" model="product.public.category">
|
||||
<field name="parent_id" ref="lego"/>
|
||||
<field name="name">Ninjago</field>
|
||||
</record>
|
||||
<record id="Technic" model="product.public.category">
|
||||
<field name="parent_id" ref="lego"/>
|
||||
<field name="name">Technic</field>
|
||||
</record>
|
||||
<record id="puzzles" model="product.public.category">
|
||||
<field name="name">Puzzles</field>
|
||||
</record>
|
||||
<record id="puzzle_children" model="product.public.category">
|
||||
<field name="parent_id" ref="puzzles"/>
|
||||
<field name="name">Children</field>
|
||||
</record>
|
||||
<record id="puzzle_advanced" model="product.public.category">
|
||||
<field name="parent_id" ref="puzzles"/>
|
||||
<field name="name">Advanced</field>
|
||||
</record>
|
||||
<record id="playmobil" model="product.public.category">
|
||||
<field name="name">Playmobil</field>
|
||||
</record>
|
||||
|
||||
<record id="product_4" model="product.product">
|
||||
<field name="name">Lego City</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_kiddo_sale.City')])]"/>
|
||||
<field name="standard_price">79.0</field>
|
||||
<field name="list_price">79.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_05.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="kiddo_product_5" model="product.product">
|
||||
<field name="name">Lego Technic</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_kiddo_sale.Technic')])]"/>
|
||||
<field name="standard_price">99.0</field>
|
||||
<field name="list_price">99.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_06.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_6" model="product.product">
|
||||
<field name="name">Lego Star-Wars</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_kiddo_sale.StarWars')])]"/>
|
||||
<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_kiddo/static/src/img/content/product_img_07.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_7" model="product.product">
|
||||
<field name="name">Lego Ninjago</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_kiddo_sale.Ninjago')])]"/>
|
||||
<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_kiddo/static/src/img/content/product_img_08.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_8" model="product.product">
|
||||
<field name="name">Disney Puzzle 1000 pcs</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_kiddo_sale.puzzle_advanced')])]"/>
|
||||
<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_kiddo/static/src/img/content/product_img_09.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_9" model="product.product">
|
||||
<field name="name">Disney Puzzle 800 pcs</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_kiddo_sale.puzzle_advanced')])]"/>
|
||||
<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_kiddo/static/src/img/content/product_img_10.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_10" model="product.product">
|
||||
<field name="name">Disney Puzzle 150 pcs</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_kiddo_sale.puzzle_children')])]"/>
|
||||
<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_kiddo/static/src/img/content/product_img_11.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_11" model="product.product">
|
||||
<field name="name">Playmobil</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_kiddo_sale.playmobil')])]"/>
|
||||
<field name="standard_price">69.0</field>
|
||||
<field name="list_price">79.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_12.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_12" model="product.product">
|
||||
<field name="name">Playmobil</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_kiddo_sale.playmobil')])]"/>
|
||||
<field name="standard_price">79.0</field>
|
||||
<field name="list_price">89.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_13.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_13" model="product.product">
|
||||
<field name="name">Playmobil</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_kiddo_sale.playmobil')])]"/>
|
||||
<field name="standard_price">79.0</field>
|
||||
<field name="list_price">79.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_14.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_14" model="product.product">
|
||||
<field name="name">Playmobil</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_kiddo_sale.playmobil')])]"/>
|
||||
<field name="standard_price">79.0</field>
|
||||
<field name="list_price">79.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_15.png"/>
|
||||
<field name="uom_id" ref="product.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="product.product_uom_unit"/>
|
||||
</record>
|
||||
<record id="product.kiddo_product_15" model="product.product">
|
||||
<field name="name">Playmobil</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_kiddo_sale.playmobil')])]"/>
|
||||
<field name="standard_price">79.0</field>
|
||||
<field name="list_price">79.0</field>
|
||||
<field name="type">consu</field>
|
||||
<field name="image" type="base64" file="theme_kiddo/static/src/img/content/product_img_16.png"/>
|
||||
<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,23 @@
|
||||
$(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) {
|
||||
// Close the others
|
||||
$(category_list + " li").removeClass('active');
|
||||
// Open this one's hierarchy
|
||||
$(event.target).parents('li').each(function(parent) {
|
||||
$(this).addClass('active');
|
||||
});
|
||||
});
|
||||
|
||||
// Open the current category tab
|
||||
$('li:has(a[href="' + window.location.pathname + '"])').addClass('active');
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
.oe_cart {
|
||||
color: @gray;
|
||||
.text-danger {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
.product_price {
|
||||
color: @gray !important;
|
||||
}
|
||||
|
||||
.form-inline .input-group {
|
||||
.PlaceholderStyle(@gray);
|
||||
.form-control {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
#products_grid_before {
|
||||
ul > li > a {
|
||||
&:hover, &:focus {
|
||||
background-color: @color-iota;
|
||||
}
|
||||
}
|
||||
.js_attributes {
|
||||
border-color: @color-beta;
|
||||
color: @color-epsilon;
|
||||
|
||||
strong {
|
||||
color: @gray-light;
|
||||
border-bottom-color: @gray-lighter;
|
||||
}
|
||||
}
|
||||
}
|
||||
#products_grid {
|
||||
.oe_product section .product_price {
|
||||
background-color: @color-delta;
|
||||
|
||||
&:before {
|
||||
background-color: @color-epsilon;
|
||||
}
|
||||
&:after {
|
||||
border-right-color: @color-epsilon;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination > .active > a {
|
||||
color: @color-alpha;
|
||||
background-color: @color-epsilon;
|
||||
&:hover {
|
||||
background-color: @color-mu;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
#top_menu li a .label-primary {
|
||||
background-color: @color-gamma!important;
|
||||
}
|
||||
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
#products_grid_before {
|
||||
ul > li > a {
|
||||
.open-icon, .close-icon {
|
||||
color: @color-epsilon;
|
||||
}
|
||||
&:hover, &:focus {
|
||||
background-color: @color-eta;
|
||||
}
|
||||
}
|
||||
.js_attributes {
|
||||
border-bottom-color: @color-beta;
|
||||
h4 {
|
||||
color: @color-epsilon;
|
||||
}
|
||||
strong {
|
||||
border-bottom-color: @gray-lighter;
|
||||
color: @gray-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
#products_grid {
|
||||
.oe_product section {
|
||||
h5 a {
|
||||
color: @gray;
|
||||
}
|
||||
.product_price span {
|
||||
color: @color-alpha !important;
|
||||
}
|
||||
}
|
||||
.products_pager ul {
|
||||
a {
|
||||
border-top-color: @color-beta;
|
||||
border-bottom-color: @color-beta;
|
||||
}
|
||||
li:first-child > a {
|
||||
border-left-color: @color-beta;
|
||||
}
|
||||
li:last-child > a {
|
||||
border-right-color: @color-beta;
|
||||
}
|
||||
}
|
||||
}
|
||||
span:not(.fa) {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
#products_grid_before {
|
||||
ul > li > a {
|
||||
&:hover, &:focus {
|
||||
background-color: @color-eta;
|
||||
}
|
||||
}
|
||||
.js_attributes {
|
||||
border-bottom-color: @color-epsilon;
|
||||
strong {
|
||||
border-bottom-color: @gray-lighter;
|
||||
}
|
||||
}
|
||||
}
|
||||
#products_grid {
|
||||
.oe_product section {
|
||||
h5 a {
|
||||
color: @gray;
|
||||
}
|
||||
.product_price {
|
||||
background-color: @color-delta;
|
||||
border-bottom-color: @color-kappa;
|
||||
|
||||
&:before {
|
||||
background-color: @color-epsilon;
|
||||
}
|
||||
&:after {
|
||||
border-right-color: @color-epsilon;
|
||||
}
|
||||
|
||||
.fa {
|
||||
color: @color-gamma !important;
|
||||
}
|
||||
span {
|
||||
color: @color-alpha !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.products_pager ul {
|
||||
a {
|
||||
border-top-color: @color-epsilon;
|
||||
border-bottom-color: @color-epsilon;
|
||||
}
|
||||
li:first-child > a {
|
||||
border-left-color: @color-epsilon;
|
||||
}
|
||||
li:last-child > a {
|
||||
border-right-color: @color-epsilon;
|
||||
}
|
||||
}
|
||||
.pagination > .active > a {
|
||||
color: @color-alpha;
|
||||
background-color: @color-delta;
|
||||
}
|
||||
}
|
||||
.form-inline .input-group .input-group-btn .a-submit {
|
||||
border: none;
|
||||
|
||||
background-color: @color-delta;
|
||||
&:hover {
|
||||
background-color: @color-kappa;
|
||||
}
|
||||
i {
|
||||
color: @color-alpha;
|
||||
}
|
||||
}
|
||||
.js_product span {
|
||||
color: @gray !important;
|
||||
}
|
||||
.oe_cart #cart_total {
|
||||
h3, span {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
span:not(.fa) {
|
||||
color: @gray;
|
||||
}
|
||||
.wizard li {
|
||||
border-color: @color-beta;
|
||||
.chevron {
|
||||
border-left-color: @color-beta;
|
||||
}
|
||||
|
||||
&.text-primary {
|
||||
background-color: @color-beta;
|
||||
.chevron:before {
|
||||
border-left-color: @color-beta;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
background-color: @color-zeta;
|
||||
color: @color-alpha;
|
||||
|
||||
.oe_product_cart {
|
||||
border: 1px solid @color-beta;
|
||||
.in {
|
||||
background-color: rgba(0, 0, 0, 0.7) !important;
|
||||
}
|
||||
}
|
||||
|
||||
#products_grid_before {
|
||||
background-color: @color-zeta;
|
||||
ul ul {
|
||||
background-color: transparent;
|
||||
> li > a {
|
||||
color: @color-alpha;
|
||||
}
|
||||
}
|
||||
ul > li {
|
||||
&, &.active {
|
||||
> a:hover, > a:focus {
|
||||
background-color: @color-iota!important;
|
||||
color: @gray!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.js_attributes {
|
||||
background-color: @color-eta;
|
||||
|
||||
h4 {
|
||||
color: @color-alpha;
|
||||
}
|
||||
strong {
|
||||
color: @color-alpha;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
#products_grid .oe_product {
|
||||
border-color: transparent;
|
||||
|
||||
section {
|
||||
background: rgba(59, 44, 60, 0.8);
|
||||
|
||||
h5 a {
|
||||
color: @color-alpha;
|
||||
}
|
||||
.product_price {
|
||||
background-color: @color-delta;
|
||||
border-bottom-color: @color-kappa;
|
||||
|
||||
&:before {
|
||||
background-color: @color-lambda;
|
||||
}
|
||||
&:after {
|
||||
border-right-color: @color-lambda;
|
||||
}
|
||||
|
||||
.fa {
|
||||
color: @color-alpha !important;
|
||||
}
|
||||
span {
|
||||
color: @color-alpha !important;
|
||||
}
|
||||
}
|
||||
.oe_currency_value > span {
|
||||
color: @color-beta !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.oe_list {
|
||||
border-bottom: 1px solid @color-beta !important;
|
||||
section {
|
||||
background: transparent!important;
|
||||
}
|
||||
.oe_subdescription {
|
||||
color: @color-alpha !important;
|
||||
}
|
||||
}
|
||||
.form-inline .input-group .input-group-btn .a-submit {
|
||||
border: none;
|
||||
|
||||
.LinearGradient (@color-delta, @color-lambda);
|
||||
&:hover {
|
||||
.LinearGradient (@color-lambda, @color-delta);
|
||||
}
|
||||
|
||||
i {
|
||||
color: @color-alpha;
|
||||
}
|
||||
}
|
||||
.breadcrumb li > span {
|
||||
color: @color-alpha;
|
||||
}
|
||||
.text-right {
|
||||
color: @color-alpha !important;
|
||||
}
|
||||
.oe_cart {
|
||||
strong {
|
||||
color: @color-alpha;
|
||||
}
|
||||
.form-control {
|
||||
background-color: white;
|
||||
color: @color-nu;
|
||||
border-color: @color-zeta;
|
||||
}
|
||||
.control-label {
|
||||
color: white;
|
||||
}
|
||||
tbody, .text-muted {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
#right_column .fa {
|
||||
color: @color-nu;
|
||||
}
|
||||
.wizard {
|
||||
li:not(.text-primary) .chevron:before {
|
||||
border-left-color: @color-epsilon;
|
||||
}
|
||||
.text-success {
|
||||
color: @color-gamma;
|
||||
}
|
||||
}
|
||||
#modal_optional_products {
|
||||
color: @gray-light;
|
||||
}
|
||||
#cart_products {
|
||||
tr > td {
|
||||
background-color: transparent!important;
|
||||
border-top-color: @color-beta;
|
||||
}
|
||||
.form-control {
|
||||
background-color: @color-alpha !important;
|
||||
color: @gray !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
.sub-navigation, .new-logo, .chart, .search, .in, .collapsing {
|
||||
background-color: @color-alpha !important;
|
||||
}
|
||||
|
||||
#products_grid_before {
|
||||
.open-icon, .close-icon {
|
||||
color: @color-delta;
|
||||
}
|
||||
ul > li > a {
|
||||
&:hover, &:focus {
|
||||
color: @color-gamma;
|
||||
}
|
||||
}
|
||||
> ul > li > a {
|
||||
border-bottom-color: @color-lambda;
|
||||
}
|
||||
}
|
||||
#products_grid {
|
||||
.oe_product section .product_price {
|
||||
color: @gray;
|
||||
background-color: @color-delta;
|
||||
border-bottom-color: @color-kappa;
|
||||
}
|
||||
.products_pager ul {
|
||||
a {
|
||||
border-top-color: @color-gamma;
|
||||
border-bottom-color: @color-gamma;
|
||||
}
|
||||
|
||||
li:first-child > a {
|
||||
border-left-color: @color-gamma;
|
||||
}
|
||||
li:last-child > a {
|
||||
border-right-color: @color-gamma;
|
||||
}
|
||||
}
|
||||
.pagination > .active > a {
|
||||
background-color: @color-delta;
|
||||
color: @color-alpha;
|
||||
&:hover {
|
||||
background-color: @color-kappa;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,558 @@
|
||||
#wrapwrap > main > #wrap .oe_website_sale {
|
||||
padding-bottom: 50px;
|
||||
|
||||
.oe_product_cart .in {
|
||||
background-color: rgba(0, 0, 0, 0.5) !important;
|
||||
}
|
||||
|
||||
// ======= Product categories list =========
|
||||
#products_grid_before {
|
||||
background-color: @color-alpha;
|
||||
padding-top: 15px;
|
||||
padding-right: 0px;
|
||||
|
||||
.category-name {
|
||||
font-size: 3.5vw;
|
||||
text-align: center;
|
||||
padding-bottom: 30px;
|
||||
color: @color-gamma;
|
||||
}
|
||||
|
||||
ul > li {
|
||||
.open-icon, .close-icon {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 8px;
|
||||
padding: 0 4px;
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
color: @color-gamma;
|
||||
}
|
||||
|
||||
&:not(.active) {
|
||||
> ul, > .close-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
> .open-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> a {
|
||||
color: @color-gamma;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
> a {
|
||||
font-size: 16px;
|
||||
color: @gray-light;
|
||||
margin: 1px 0px;
|
||||
|
||||
&:hover, &:focus {
|
||||
background-color: @gray-lighter;
|
||||
color: @color-alpha;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> ul > li > a {
|
||||
color: @color-gamma;
|
||||
text-transform: uppercase;
|
||||
font-size: 18px;
|
||||
border-bottom: 1px dashed @gray-lighter;
|
||||
}
|
||||
|
||||
.js_attributes {
|
||||
padding: 15px;
|
||||
border-bottom: 10px solid;
|
||||
border-right-width: 0px;
|
||||
border-color: @color-delta;
|
||||
|
||||
h4 {
|
||||
text-align: center;
|
||||
}
|
||||
strong {
|
||||
display: block;
|
||||
padding-left: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
border-bottom: 1px dashed @color-delta;
|
||||
color: @color-gamma;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.css_attribute_color.active {
|
||||
border: 5px ridge @color-alpha;
|
||||
}
|
||||
li > ul {
|
||||
display: block;
|
||||
}
|
||||
label > span {
|
||||
color: @gray;
|
||||
}
|
||||
ul ul {
|
||||
display: block!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ======= Product grid ====================
|
||||
#products_grid {
|
||||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 10px;
|
||||
|
||||
}
|
||||
|
||||
.oe_product {
|
||||
@media (max-width: @screen-xs-max) {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.ribbon {
|
||||
color: white!important;
|
||||
background-color: red;
|
||||
top: 0px;
|
||||
width: 145px;
|
||||
}
|
||||
|
||||
section {
|
||||
min-height: 90px;
|
||||
padding: 0px 15px;
|
||||
@media (max-width: @screen-xs-max) {
|
||||
background: rgba(255, 255, 255, 0.8) !important;
|
||||
}
|
||||
|
||||
h5 {
|
||||
text-align: center;
|
||||
padding: 4px 0px;
|
||||
font-size: 14px;
|
||||
margin: 0px;
|
||||
|
||||
a {
|
||||
color: @color-epsilon;
|
||||
}
|
||||
}
|
||||
|
||||
.text-info {
|
||||
text-align: left;
|
||||
color: @gray-light;
|
||||
}
|
||||
|
||||
.product_price {
|
||||
font-size: 14px;
|
||||
.BorderRadius (30px);
|
||||
padding: 3px 15px;
|
||||
margin: 10px 0px;
|
||||
position: relative;
|
||||
color: @color-alpha;
|
||||
background-color: @color-beta;
|
||||
border-bottom: 5px solid @gray-lighter;
|
||||
|
||||
b {
|
||||
margin-right: 40px;
|
||||
.text-danger {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: " ";
|
||||
width: 35px;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
.BorderRadius (0px 30px 30px 0px);
|
||||
background-color: @color-gamma;
|
||||
}
|
||||
&:after {
|
||||
content: " ";
|
||||
border-top: 7px solid transparent;
|
||||
border-bottom: 7px solid transparent;
|
||||
border-right: 7px solid @color-gamma;
|
||||
border-left: 0px solid transparent;
|
||||
position: absolute;
|
||||
top: 25%;
|
||||
right: 35px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-default { // cart btn
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 15px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 8px;
|
||||
color: @color-alpha;
|
||||
}
|
||||
}
|
||||
}
|
||||
.products_pager {
|
||||
margin-top: 15px;
|
||||
|
||||
@media (max-width: @screen-xs-max) {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
> ul {
|
||||
li:first-child > a {
|
||||
border-top-left-radius: 20px;
|
||||
border-bottom-left-radius: 20px;
|
||||
}
|
||||
li:last-child > a {
|
||||
border-top-right-radius: 20px;
|
||||
border-bottom-right-radius: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 0px;
|
||||
|
||||
a {
|
||||
border-top: 3px solid @color-zeta;
|
||||
border-bottom: 3px solid @color-zeta;
|
||||
color: @gray;
|
||||
min-width: 35px;
|
||||
}
|
||||
|
||||
li:first-child > a {
|
||||
border-left: 3px solid @color-zeta;
|
||||
}
|
||||
li:last-child > a {
|
||||
border-right: 3px solid @color-zeta;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
display: block;
|
||||
.form-inline {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
padding-top: 15px;
|
||||
width: 100%;
|
||||
.input-group {
|
||||
width: 100%;
|
||||
.form-control {
|
||||
height: 50px;
|
||||
border-radius: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pagination > .active > a {
|
||||
border-left-color: @color-alpha;
|
||||
border-right-color: @color-alpha;
|
||||
background-color: @color-gamma;
|
||||
&:hover {
|
||||
.LinearGradient (@color-theta, @color-gamma);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ======= Product list ====================
|
||||
.oe_list {
|
||||
width: 90%!important;
|
||||
margin: 5px 0 5px 15px;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px 0px 2px rgba(0,0,0,.3) !important;
|
||||
}
|
||||
|
||||
img {
|
||||
padding: 10px 0;
|
||||
}
|
||||
section {
|
||||
padding: 15px!important;
|
||||
|
||||
h5 {
|
||||
text-align: left !important;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
.product_price {
|
||||
display: inline-block;
|
||||
}
|
||||
.oe_subdescription {
|
||||
max-width: 70%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ======= Search ==========================
|
||||
.form-inline .input-group {
|
||||
width: 100%;
|
||||
margin: 20px 0;
|
||||
|
||||
.PlaceholderStyle(@color-alpha);
|
||||
.form-control {
|
||||
width: 100%;
|
||||
.BorderRadius (0px);
|
||||
height: 50px;
|
||||
font-size: 20px;
|
||||
font-family: "ProximaRegular";
|
||||
text-transform: lowercase;
|
||||
letter-spacing: 2px;
|
||||
box-shadow: none;
|
||||
color: @color-alpha;
|
||||
background-color: @color-eta;
|
||||
border: none;
|
||||
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
border: 1px solid @color-beta;
|
||||
}
|
||||
}
|
||||
|
||||
.input-group-btn {
|
||||
width: 50px;
|
||||
|
||||
.btn-default {
|
||||
.BorderRadius (0px);
|
||||
height: 50px;
|
||||
width: 50px
|
||||
}
|
||||
.btn {
|
||||
line-height: 2.5;
|
||||
.transition (all 0.3s ease-out);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ======= Product page & general ==========
|
||||
.breadcrumb {
|
||||
padding-top: 20px;
|
||||
background: transparent;
|
||||
border-bottom: 1px solid @gray-lighter;
|
||||
font-size: 15px;
|
||||
a {
|
||||
color: @color-gamma;
|
||||
}
|
||||
}
|
||||
.product-title {
|
||||
margin-bottom: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.js_publish_btn + .btn {
|
||||
border-width: 1px!important;
|
||||
border-radius: 0px!important;
|
||||
}
|
||||
.oe_price_h4 {
|
||||
font-size: 25px;
|
||||
.text-danger {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
.js_add_cart_variants {
|
||||
> li {
|
||||
&:last-child {
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 5px solid @gray-lighter;
|
||||
}
|
||||
|
||||
> strong {
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
margin: 20px 0px;
|
||||
padding-left: 10px;
|
||||
font-size: 20px;
|
||||
text-transform: uppercase;
|
||||
.BorderRadius (5px);
|
||||
color: @color-alpha;
|
||||
.SetTextShadow (2px, @color-zeta);
|
||||
background-color: @color-beta;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.css_quantity {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
}
|
||||
.input-group-addon {
|
||||
border: none;
|
||||
background-color: @color-gamma;
|
||||
|
||||
&:first-child {
|
||||
.BorderRadius(15px 0px 0px 15px);
|
||||
}
|
||||
&:last-child {
|
||||
.BorderRadius(0px 15px 15px 0px);
|
||||
}
|
||||
a {
|
||||
color: @color-alpha;
|
||||
}
|
||||
}
|
||||
.js_quantity {
|
||||
border-color: @color-gamma;
|
||||
}
|
||||
#add_to_cart {
|
||||
padding-top: 15px;
|
||||
margin-bottom: 20px;
|
||||
border: none;
|
||||
.BorderRadius(30px);
|
||||
.transition(all 0.5s ease-out);
|
||||
.box-shadow(0px 2px 2px 0px @gray);
|
||||
|
||||
color: @color-alpha;
|
||||
background-color: @color-beta;
|
||||
&:hover {
|
||||
background-color: @color-zeta;
|
||||
}
|
||||
|
||||
.fa {
|
||||
font-size: 25px;
|
||||
padding-bottom: 10px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
#website_sale_recommended_products {
|
||||
padding: 30px;
|
||||
h3 {
|
||||
text-align: center;
|
||||
border-bottom: 5px solid @color-gamma;
|
||||
padding-bottom: 20px;
|
||||
color: @color-gamma;
|
||||
}
|
||||
.row {
|
||||
padding: 0 15px;
|
||||
}
|
||||
.col-md-2 {
|
||||
margin-top: 10px;
|
||||
min-height: 160px;
|
||||
}
|
||||
}
|
||||
.list-unstyled .css_attribute_color.active {
|
||||
border: 3px solid @color-gamma;
|
||||
}
|
||||
.text-right {
|
||||
color: @gray !important;
|
||||
> h4 {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
h4 .oe_currency_value {
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
// ======= Shopping cart ===================
|
||||
.oe_cart {
|
||||
.btn {
|
||||
@media (max-width: @screen-xs-max) {
|
||||
padding: 10px !important;
|
||||
}
|
||||
}
|
||||
strong {
|
||||
color: @gray;
|
||||
}
|
||||
.well {
|
||||
background-color: transparent;
|
||||
}
|
||||
#cart_products img {
|
||||
max-width: 100px;
|
||||
}
|
||||
#cart_total {
|
||||
h3, span {
|
||||
color: red !important;
|
||||
}
|
||||
}
|
||||
.a-submit {
|
||||
padding: 20px 0px;
|
||||
border-width: 3px;
|
||||
border-radius: 0px;
|
||||
min-width: 150px;
|
||||
.BorderRadius (50px);
|
||||
}
|
||||
}
|
||||
#right_column {
|
||||
h4 {
|
||||
padding: 5px 20px;
|
||||
.BorderRadius (15px);
|
||||
background-color: @color-beta;
|
||||
color: @color-alpha;
|
||||
.box-shadow (inset 0px 2px 0px 1px @color-zeta);
|
||||
font-size: 18px;
|
||||
}
|
||||
li {
|
||||
font-size: 16px;
|
||||
}
|
||||
.fa {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
.BorderRadius (0px);
|
||||
border: none;
|
||||
}
|
||||
.input-group-btn {
|
||||
padding-left: 5px;
|
||||
}
|
||||
}
|
||||
.page-header small {
|
||||
display: block;
|
||||
}
|
||||
.form-control:focus {
|
||||
border: 1px solid @color-delta;
|
||||
}
|
||||
.oe_sale_acquirer_button .btn {
|
||||
min-width: 150px !important;
|
||||
background-color: @color-gamma !important;
|
||||
padding: 20px !important;
|
||||
.BorderRadius (50px) !important;
|
||||
text-transform: uppercase;
|
||||
font-size: 20px;
|
||||
color: @color-alpha!important;
|
||||
margin-bottom: 20px;
|
||||
|
||||
> span {
|
||||
color: inherit!important;
|
||||
}
|
||||
}
|
||||
.wizard {
|
||||
padding-right: 15px;
|
||||
box-shadow: none;
|
||||
@media (max-width: @screen-xs-max) {
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
li {
|
||||
border-color: @color-gamma;
|
||||
background-color: transparent;
|
||||
@media (max-width: @screen-xs-max) {
|
||||
border-color: transparent;
|
||||
padding-left: 7px;
|
||||
}
|
||||
.chevron {
|
||||
background: transparent;
|
||||
border-left-color: @color-gamma;
|
||||
@media (max-width: @screen-xs-max) {
|
||||
border-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&.text-primary {
|
||||
background-color: @color-gamma;
|
||||
@media (max-width: @screen-xs-max) {
|
||||
background-color: transparent;
|
||||
color: @color-gamma;
|
||||
padding-left: 7px;
|
||||
}
|
||||
|
||||
.chevron:before {
|
||||
border-left-color: @color-gamma;
|
||||
@media (max-width: @screen-xs-max) {
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
<?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_kiddo_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_kiddo_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"/>
|
||||
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>
|
||||
|
||||
<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_kiddo_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 class="fa fa-chevron-up close-icon"/>
|
||||
</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_kiddo_sale.categories_recursive"/>
|
||||
</t>
|
||||
</ul>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<!-- Product search bar -->
|
||||
|
||||
<template id="search" name="search">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<t t-if="not keep">
|
||||
<form action="/shop" method="get" class="form-inline">
|
||||
<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"/></a>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</t>
|
||||
<t t-if="keep">
|
||||
<t t-call="website_sale.search">
|
||||
<t t-set="search_class">form-inline</t>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?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_kiddo_sale_less" inherit_id="theme_kiddo.less">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_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_kiddo frontend scripts">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/theme_kiddo_sale/static/src/js/collapse_categories.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="option_colorPreset1" name="option_colorPreset1" inherit_id="theme_kiddo.option_colorPreset1">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_sale/static/src/less/options/colors/colorPreset1.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_colorPreset2" name="option_colorPreset2" inherit_id="theme_kiddo.option_colorPreset2">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_sale/static/src/less/options/colors/colorPreset2.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_colorPreset3" name="option_colorPreset3" inherit_id="theme_kiddo.option_colorPreset3">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_sale/static/src/less/options/colors/colorPreset3.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_colorPreset4" name="option_colorPreset4" inherit_id="theme_kiddo.option_colorPreset4">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_sale/static/src/less/options/colors/colorPreset4.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_colorPreset5" name="option_colorPreset5" inherit_id="theme_kiddo.option_colorPreset5">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_sale/static/src/less/options/colors/colorPreset5.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="option_colorPreset6" name="option_colorPreset6" inherit_id="theme_kiddo.option_colorPreset6">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link href="/theme_kiddo_sale/static/src/less/options/colors/colorPreset6.less" rel="stylesheet" type="text/less"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user