[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 Loftspace eCommerce Plugin',
'description': 'Loftspace eCommerce Plugin',
'category': 'Hidden',
'version': '1.0',
'author': 'Odoo S.A.',
'depends': ['theme_loftspace', 'website_sale'],
'data': [
'views/theme.xml',
'views/layout.xml',
],
'demo': [
'demo/products.xml',
],
'auto_install': True,
}
+301
View File
@@ -0,0 +1,301 @@
<?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="living" model="product.public.category">
<field name="name">Living room</field>
</record>
<record id="sofa" model="product.public.category">
<field name="parent_id" ref="living"/>
<field name="name">Sofa</field>
</record>
<record id="armchair" model="product.public.category">
<field name="parent_id" ref="living"/>
<field name="name">Armchair</field>
</record>
<record id="cabinet" model="product.public.category">
<field name="parent_id" ref="living"/>
<field name="name">Cabinet</field>
</record>
<record id="table" model="product.public.category">
<field name="parent_id" ref="living"/>
<field name="name">Table</field>
</record>
<record id="bedroom" model="product.public.category">
<field name="name">Bedroom</field>
</record>
<record id="bed" model="product.public.category">
<field name="parent_id" ref="bedroom"/>
<field name="name">Bed</field>
</record>
<record id="accessories" model="product.public.category">
<field name="name">Accessories</field>
</record>
<record id="lamp" model="product.public.category">
<field name="parent_id" ref="accessories"/>
<field name="name">Lamp</field>
</record>
<record id="pillow" model="product.public.category">
<field name="parent_id" ref="accessories"/>
<field name="name">Pillow</field>
</record>
<record id="product_1" model="product.product">
<field name="name">White design chair</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.armchair')])]"/>
<field name="standard_price">899.0</field>
<field name="list_price">799.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Wooden table with 6 chairs</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.table')])]"/>
<field name="standard_price">1390.0</field>
<field name="list_price">1390.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Blue wooden cabinet</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.cabinet')])]"/>
<field name="standard_price">499.0</field>
<field name="list_price">499.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Gray textile sofa</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.sofa')])]"/>
<field name="standard_price">889.0</field>
<field name="list_price">829.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">White lamp</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.lamp')])]"/>
<field name="standard_price">69.0</field>
<field name="list_price">69.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Antique cabinet</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.cabinet')])]"/>
<field name="standard_price">959.0</field>
<field name="list_price">959.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Pillows</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.pillow')])]"/>
<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_loftspace/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">Red design chair</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.armchair')])]"/>
<field name="standard_price">589.0</field>
<field name="list_price">559.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">White textil-leather sofa</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.sofa')])]"/>
<field name="standard_price">1019.0</field>
<field name="list_price">1019.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Red sofa with armchair</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.sofa')])]"/>
<field name="standard_price">1129.0</field>
<field name="list_price">1129.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Design lamp</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.lamp')])]"/>
<field name="standard_price">449.0</field>
<field name="list_price">449.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Beige sofa</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.sofa')])]"/>
<field name="standard_price">779.0</field>
<field name="list_price">779.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">White antique table</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.table')])]"/>
<field name="standard_price">679.0</field>
<field name="list_price">679.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Wooden bed for one person</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.bed')])]"/>
<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_loftspace/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">Brown leather armchair</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.armchair')])]"/>
<field name="standard_price">1149.0</field>
<field name="list_price">1149.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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">Black bed for two persons</field>
<field name="website_published">True</field>
<field name="website_sequence">99</field>
<field name="website_size_x">1</field>
<field name="website_size_y">2</field>
<field name="public_categ_ids" eval="[(6,0,[ref('theme_loftspace_sale.bed')])]"/>
<field name="standard_price">859.0</field>
<field name="list_price">859.0</field>
<field name="type">consu</field>
<field name="image" type="base64" file="theme_loftspace/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,29 @@
$(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
var category_re = /\/shop\/category\/.*-/;
if (category_re.test(window.location.pathname)) {
var category_id = window.location.pathname.replace(category_re, '');
var category_li = $('li:has(a[data-oe-model="product.public.category"][data-oe-id=' + category_id + '])')
category_li.addClass('active')
}
}
});
@@ -0,0 +1,548 @@
#wrap > .container-fluid {
.pagination {
float: none;
padding-right: 0;
}
}
.oe_website_sale {
overflow: hidden;
padding-bottom: 20px;
background-color: @color-alpha;
.page-header {
small {
display: block;
a {
color: red;
}
}
}
.oe_product_cart {
&:hover {
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;
h5 {
padding: 10px 0px;
font-size: 13px;
margin: 0px;
text-align: left;
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: left;
padding: 0;
b {
.text-danger {
color: red;
}
}
.btn-default { // cart btn
background: transparent;
border: none;
font-size: 15px;
position: relative;
padding-right: 0px;
top: -6px;
padding-bottom: 0px;
}
}
}
}
}
#products_grid {
padding-left: 15px;
background-color: white;
table, tbody {
background-color: transparent !important;
}
.products_pager {
margin-top: 15px;
ul {
a {
border: transparent;
color: @gray;
min-width: 35px;
}
}
}
.pagination > .active > a {
border-bottom: 3px solid @color-epsilon;
background-color: transparent;
color: @color-epsilon;
}
.pagination a {
.transition (all 0.3s ease-out);
&:hover {
border-bottom: 3px solid @color-delta;
background: transparent;
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;
}
}
.js_sale .search form {
padding-right: 0px;
}
.pagination {
padding-left: 15px;
}
.form-inline .input-group {
background-color: transparent;
border-bottom: 1px solid @color-epsilon;
padding-right: 0;
width: 100%;
.form-control {
width: 100%;
.BorderRadius (0px);
height: 50px;
box-shadow: none;
text-transform: lowercase;
border: none;
&:focus {
box-shadow: none;
}
}
::-webkit-input-placeholder { color:@color-epsilon; }
::-moz-placeholder { color:@color-epsilon; }
:-ms-input-placeholder { color:@color-epsilon; }
input:-moz-placeholder { color:@color-epsilon; }
.input-group-btn {
width: 50px;
.btn-default {
background-color: transparent;
.BorderRadius (0px);
height: 50px;
width: 50px;
&:hover {
background-color: transparent !important;
color: white;
}
}
.btn {
line-height: 2.5;
}
}
}
/* =================== Categories =================== */
#products_grid_before {
padding-top: 0px;
padding-bottom: 800em;
margin-bottom: -800em;
background-color: @color-delta;
>.row {
margin-bottom: 20px;
}
.nav-pills > li.active > a {
background-color: transparent;
color: @color-epsilon;
&:hover {
background-color: @gray-dark;
}
}
ul.nav-stacked {
li {
a {
font-size: 16px;
color: @color-epsilon;
margin: 1px 0px;
margin-right: 26px;
padding-right: 0;
&:hover, &:focus {
background-color: @gray-dark;
color: @color-beta;
}
}
}
}
.nav-pills > li > ul {
padding-left: 15px;
}
> ul > li > a {
color: @color-epsilon;
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: 25px;
text-transform: uppercase;
text-align: left;
margin-top: 0px;
padding: 10px 15px;
color: @color-alpha;
}
/* =========== 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 {
float: right;
padding: 0 4px;
cursor: pointer;
font-size: 18px;
color: @color-beta;
position: relative;
top: 2px;
}
/* =================== Product page =================== */
.js_sale {
> .container:first-child {
margin-top: 0 !important;
}
.breadcrumb {
padding-top: 20px;
background: transparent;
border-bottom: 1px solid @gray-lighter;
li {
font-size: 15px;
a {
color: @color-gamma;
}
}
}
}
#product_detail {
.form-inline {
width: 100%;
}
.col-md-5 {
padding: 40px;
}
}
.oe_website_sale.container {
width: 100%;
}
.js_add_cart_variants > li {
> strong {
font-size: 20px;
}
}
.js_add_cart_variants {
color: @gray;
/* ======== PRICE ======== */
.oe_price_h4 {
font-size: 25px;
.oe_currency_value {
font-size: 25px;
}
span {
font-size: 25px;
}
}
}
.discount .oe_default_price {
display: inline-block;
}
.product-description {
text-align: center;
font-size: 18px;
}
#add_to_cart {
padding: 30px;
margin: 20px 0;
width: 200px;
.transition (all 0.5s ease-out);
.fa {
font-size: 30px;
padding-right: 10px;
}
}
/* ======= ADD QUANTITY ========= */
.oe_website_spinner {
margin-bottom: 25px;
width: 200px;
height: 50px;
@media (max-width: @screen-sm-max) {
margin-left: 0;
}
.input-group-addon {
border-radius: 0px;
width: 50px;
&:first-child, &:last-child {
border: none;
background-color: @gray;
}
a {
color: white;
}
}
.js_quantity {
text-align: center;
border-color: @gray;
height: 50px;
}
}
.badge, .active > a > .badge {
padding: 5px 10px;
margin-left: 15px;
background-color: @color-epsilon;
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;
font-size: 24px !important;
border-bottom: none !important;
}
.product_price {
display: inline-block;
font-size: 18px !important;
}
.oe_subdescription {
max-width: 70%;
}
}
}
/* =================== Modal =================== */
#modal_optional_products {
.modal-title {
background: transparent;
}
.input-group {
border-collapse: inherit;
}
}
/* =================== Shopping cart =================== */
.oe_website_sale {
color: @gray;
.oe_cart {
.btn {
@media (max-width: @screen-xs-max) {
padding: 10px;
}
}
.btn-primary {
background-color: @color-epsilon;
color: white;
&:hover {
background-color: @color-mu;
}
}
strong {
color: @gray;
}
.well {
background-color: transparent;
}
#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: transparent;
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: transparent;
@media (max-width:@screen-sm-min) {
border-color: transparent;
padding-left: 7px;
}
.chevron {
border-left: 10px solid @color-gamma;
background: transparent;
@media (max-width:@screen-sm-min) {
border-color: transparent;
}
}
}
.text-muted {
color: @gray-light;
}
}
}
#payment_method {
.oe_sale_acquirer_button {
.btn-primary {
background-color: @color-epsilon;
color: white;
&:hover {
background-color: @color-mu;
}
}
}
}
/* ======================== PAY =========================== */
.oe_sale_acquirer_button {
.btn {
min-width: 150px;
text-transform: uppercase;
font-size: 20px;
margin-bottom: 20px;
}
}
+151
View File
@@ -0,0 +1,151 @@
<?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(@id, 'products_grid')]//*[1]" position="before">
<t t-call="theme_loftspace_sale.search"/>
</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>
<xpath expr="//div[contains(@class, 'js_sale')]/*[last()]" position="replace">
<div class="oe_structure"/>
</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_loftspace_sale.search"/>
</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-success 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" name="Product Categories CFA">
<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_loftspace_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">
<i class="fa fa-chevron-down open-icon"></i>
<i class="fa fa-chevron-up close-icon"></i>
<a t-att-href="keep('/shop/category/' + slug(c), category=0)" t-field="c.name" class="main-category"/>
</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_loftspace_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">
<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_loftspace_sale_less" inherit_id="website.theme">
<xpath expr="//link[last()]" position="after">
<link href="/theme_loftspace_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_loftspace_sale frontend scripts" priority="99">
<xpath expr="script[last()]" position="after">
<script type="text/javascript" src="/theme_loftspace_sale/static/src/js/collapse_categories.js"></script>
</xpath>
</template>
</data>
</openerp>