[ADD] theme 12.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,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import models
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
'name': 'Theme Loftspace eCommerce Plugin',
|
||||
'description': 'Loftspace eCommerce Plugin',
|
||||
'category': 'Hidden',
|
||||
'sequence': 131,
|
||||
'version': '1.0',
|
||||
'depends': ['theme_loftspace', 'website_sale'],
|
||||
'data': [
|
||||
'views/theme.xml',
|
||||
'views/layout.xml',
|
||||
],
|
||||
'auto_install': True,
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * theme_loftspace_sale
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
# Ermin Trevisan <trevi@twanda.com>, 2019
|
||||
# Rudolf Schnapka <rs@techno-flex.de>, 2019
|
||||
# Leon Grill <leg@odoo.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-24 08:51+0000\n"
|
||||
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
|
||||
"Last-Translator: Leon Grill <leg@odoo.com>, 2019\n"
|
||||
"Language-Team: German (https://www.transifex.com/odoo/teams/41243/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.product
|
||||
msgid ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Add to Cart"
|
||||
msgstr ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
"In den Einkaufskorb"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_categories
|
||||
msgid "Product categories"
|
||||
msgstr "Produktkategorie"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_filters
|
||||
msgid "Product filters"
|
||||
msgstr "Produktfilter"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "Search..."
|
||||
msgstr "Suchen..."
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model:ir.model,name:theme_loftspace_sale.model_theme_utils
|
||||
msgid "Theme Utils"
|
||||
msgstr "Werkzeuge"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "pagination form-inline col-lg-12"
|
||||
msgstr "pagination form-inline col-lg-12"
|
||||
@@ -0,0 +1,54 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * theme_loftspace_sale
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
# Jesse Garza <jga@odoo.com>, 2019
|
||||
# Alejandro Pérez Torregrosa <alejandropereztorregrosa@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-24 08:51+0000\n"
|
||||
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
|
||||
"Last-Translator: Alejandro Pérez Torregrosa <alejandropereztorregrosa@gmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.product
|
||||
msgid ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Add to Cart"
|
||||
msgstr "<i class=\"fa fa-shopping-cart\"/> Añadir al carrito"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_categories
|
||||
msgid "Product categories"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_filters
|
||||
msgid "Product filters"
|
||||
msgstr "Filtros de producto"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "Search..."
|
||||
msgstr "Buscar…"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model:ir.model,name:theme_loftspace_sale.model_theme_utils
|
||||
msgid "Theme Utils"
|
||||
msgstr "Herramientas del tema"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "pagination form-inline col-lg-12"
|
||||
msgstr ""
|
||||
@@ -0,0 +1,56 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * theme_loftspace_sale
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
# Vallen Delobel <edv@odoo.com>, 2020
|
||||
# Nasreddin Boulif <bon@odoo.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-24 08:51+0000\n"
|
||||
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
|
||||
"Last-Translator: Nasreddin Boulif <bon@odoo.com>, 2020\n"
|
||||
"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.product
|
||||
msgid ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Add to Cart"
|
||||
msgstr ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Ajouter au panier"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_categories
|
||||
msgid "Product categories"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_filters
|
||||
msgid "Product filters"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "Search..."
|
||||
msgstr "Recherche…"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model:ir.model,name:theme_loftspace_sale.model_theme_utils
|
||||
msgid "Theme Utils"
|
||||
msgstr "Thèmes utiles"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "pagination form-inline col-lg-12"
|
||||
msgstr ""
|
||||
@@ -0,0 +1,56 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * theme_loftspace_sale
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
# Erwin van der Ploeg <erwin@odooexperts.nl>, 2019
|
||||
# Yenthe Van Ginneken <yenthespam@gmail.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-24 08:51+0000\n"
|
||||
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
|
||||
"Last-Translator: Yenthe Van Ginneken <yenthespam@gmail.com>, 2019\n"
|
||||
"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: nl\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.product
|
||||
msgid ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Add to Cart"
|
||||
msgstr ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Toevoegen aan winkelmandje"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_categories
|
||||
msgid "Product categories"
|
||||
msgstr "Productcategorieën"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_filters
|
||||
msgid "Product filters"
|
||||
msgstr "Product filters"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "Search..."
|
||||
msgstr "Zoeken..."
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model:ir.model,name:theme_loftspace_sale.model_theme_utils
|
||||
msgid "Theme Utils"
|
||||
msgstr "Thema tools"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "pagination form-inline col-lg-12"
|
||||
msgstr "pagination form-inline col-lg-12"
|
||||
@@ -0,0 +1,48 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * theme_loftspace_sale
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-24 08:51+0000\n"
|
||||
"PO-Revision-Date: 2019-04-24 08:51+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.product
|
||||
msgid "<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Add to Cart"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_categories
|
||||
msgid "Product categories"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_filters
|
||||
msgid "Product filters"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "Search..."
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model:ir.model,name:theme_loftspace_sale.model_theme_utils
|
||||
msgid "Theme Utils"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "pagination form-inline col-lg-12"
|
||||
msgstr ""
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * theme_loftspace_sale
|
||||
#
|
||||
# Translators:
|
||||
# liAnGjiA <liangjia@qq.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-24 08:51+0000\n"
|
||||
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
|
||||
"Last-Translator: liAnGjiA <liangjia@qq.com>, 2019\n"
|
||||
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: zh_CN\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.product
|
||||
msgid ""
|
||||
"<i class=\"fa fa-shopping-cart\"/>\n"
|
||||
" Add to Cart"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_categories
|
||||
msgid "Product categories"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.products_filters
|
||||
msgid "Product filters"
|
||||
msgstr ""
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "Search..."
|
||||
msgstr "搜索..."
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model:ir.model,name:theme_loftspace_sale.model_theme_utils
|
||||
msgid "Theme Utils"
|
||||
msgstr "主题实用工具"
|
||||
|
||||
#. module: theme_loftspace_sale
|
||||
#: model_terms:theme.ir.ui.view,arch:theme_loftspace_sale.search
|
||||
msgid "pagination form-inline col-lg-12"
|
||||
msgstr ""
|
||||
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import theme_loftspace_sale
|
||||
@@ -0,0 +1,9 @@
|
||||
from odoo import models
|
||||
|
||||
class ThemeLoftspaceSale(models.AbstractModel):
|
||||
_inherit = 'theme.utils'
|
||||
|
||||
def _theme_loftspace_sale_post_copy(self, mod):
|
||||
# FIXME not sure we should keep this
|
||||
self.enable_view('website_sale.products_add_to_cart')
|
||||
self.enable_view('website_sale.products_categories')
|
||||
@@ -0,0 +1,214 @@
|
||||
#wrap > .container-fluid form.pagination, #wrap > .container form.pagination {
|
||||
float: none;
|
||||
width: 100%;
|
||||
}
|
||||
.oe_website_sale {
|
||||
overflow: hidden;
|
||||
padding-bottom: 20px !important;
|
||||
background-color: theme-color('alpha');
|
||||
color: gray('700');
|
||||
|
||||
.badge, .active > a > .badge {
|
||||
padding: 5px 10px;
|
||||
margin-left: 15px;
|
||||
min-width: 28px;
|
||||
}
|
||||
.card {
|
||||
text-align: unset;
|
||||
}
|
||||
.pagination {
|
||||
margin: 20px 0 !important;
|
||||
}
|
||||
.oe_cart {
|
||||
.btn-primary {
|
||||
background-color: theme-color('epsilon');
|
||||
color: white;
|
||||
}
|
||||
.oe_website_spinner {
|
||||
max-width: 180px;
|
||||
margin: auto;
|
||||
border-collapse: inherit;
|
||||
}
|
||||
h4 .oe_currency_value, h4 .text-right {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
.oe_product {
|
||||
border: 0;
|
||||
section .product_price .btn-secondary { // cart btn
|
||||
top: -6px;
|
||||
}
|
||||
}
|
||||
@include o-theme-cfa-ecommerce-classes($h6-border-bottom: 1px solid gray('200'), $add-cart-width: 50px, $price-h4: $h4-font-size,
|
||||
$nav-link-active-bg-color: theme-color('epsilon'), $btn-secondary-padding: 10px 0 0 20px);
|
||||
|
||||
#products_grid_before #o_shop_collapse_category li {
|
||||
padding: 0 0 0 15px;
|
||||
}
|
||||
}
|
||||
#products_grid {
|
||||
background-color: white;
|
||||
table, tbody {
|
||||
background-color: rgba(0, 0, 0, 0) !important;
|
||||
}
|
||||
.products_pager {
|
||||
margin-top: 15px;
|
||||
@include media-breakpoint-down(sm) {
|
||||
&:last-child {
|
||||
float: right;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
ul.pagination {
|
||||
a {
|
||||
border: rgba(0, 0, 0, 0);
|
||||
color: gray('700');
|
||||
min-width: 35px;
|
||||
transition: all 0.3s ease-out;
|
||||
&:hover {
|
||||
border-bottom: 3px solid theme-color('delta');
|
||||
background: rgba(0, 0, 0, 0);
|
||||
color: gray('600');
|
||||
}
|
||||
}
|
||||
li.active > a {
|
||||
border-bottom: 3px solid theme-color('epsilon');
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
color: theme-color('epsilon');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* =================== Search =================== */
|
||||
|
||||
#wrap .search {
|
||||
background-color: theme-color('beta');
|
||||
}
|
||||
.js_sale .search form {
|
||||
padding-right: 0px;
|
||||
}
|
||||
.pagination {
|
||||
padding-left: 15px;
|
||||
}
|
||||
.form-inline .input-group {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-bottom: 1px solid theme-color('epsilon');
|
||||
padding-right: 0;
|
||||
width: 100%;
|
||||
.form-control {
|
||||
height: 50px;
|
||||
text-transform: lowercase;
|
||||
border: none;
|
||||
}
|
||||
::-webkit-input-placeholder { color: theme-color('epsilon'); }
|
||||
::-moz-placeholder { color: theme-color('epsilon'); }
|
||||
:-ms-input-placeholder { color: theme-color('epsilon'); }
|
||||
input:-moz-placeholder { color: theme-color('epsilon'); }
|
||||
.input-group-btn .btn-secondary {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
&:hover {
|
||||
background-color: rgba(0, 0, 0, 0) !important;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* =================== Categories =================== */
|
||||
|
||||
#products_grid_before {
|
||||
padding-bottom: 800em;
|
||||
margin-bottom: -800em;
|
||||
background-color: theme-color('delta');
|
||||
> .row {
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
.category-name {
|
||||
font-size: 25px;
|
||||
text-transform: uppercase;
|
||||
text-align: left;
|
||||
margin-top: 0px;
|
||||
padding: 10px 15px;
|
||||
color: theme-color('alpha');
|
||||
}
|
||||
}
|
||||
|
||||
/* =================== Product page =================== */
|
||||
|
||||
.js_sale > .container:first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
#product_detail {
|
||||
.form-inline {
|
||||
width: 100%;
|
||||
}
|
||||
.col-lg-5 {
|
||||
padding: 40px;
|
||||
}
|
||||
}
|
||||
.oe_website_sale.container {
|
||||
max-width: 100%;
|
||||
padding-top: 0 !important;
|
||||
|
||||
> :first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
> :last-child, + .oe_structure {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
#add_to_cart {
|
||||
padding: 10px;
|
||||
max-width: 150px;
|
||||
display: inline-block;
|
||||
transition: all 0.5s ease-out;
|
||||
.fa {
|
||||
font-size: 22px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ======= ADD QUANTITY ========= */
|
||||
|
||||
.oe_website_spinner {
|
||||
margin-bottom: 25px;
|
||||
max-width: 160px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
@include media-breakpoint-down(md) {
|
||||
margin-left: 0;
|
||||
}
|
||||
.quantity {
|
||||
text-align: center;
|
||||
border-color: gray('700');
|
||||
height: 40px;
|
||||
width: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===================== Product list view ======================= */
|
||||
|
||||
.oe_list {
|
||||
border: 1px solid gray('200');
|
||||
width: 90% !important;
|
||||
section {
|
||||
h6 {
|
||||
text-align: left !important;
|
||||
font-size: 24px !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
.product_price {
|
||||
font-size: 18px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
#payment_method .oe_sale_acquirer_button .btn-primary {
|
||||
background-color: theme-color('epsilon');
|
||||
color: white;
|
||||
}
|
||||
.oe_website_sale_tx_status {
|
||||
// This was introduced as a fix to correct a layout problem (uncleared
|
||||
// float-right button in the block before).
|
||||
clear: both;
|
||||
padding-top: 4px;
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<!-- Product grid view -->
|
||||
<template id="products" inherit_id='website_sale.products' name="Products" priority="15">
|
||||
<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 form-inline justify-content-center">
|
||||
<t t-call="website_sale.pricelist_list"/>
|
||||
<t t-call="website.pager"/>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid']/*[last()]" position="after">
|
||||
<div class="products_pager form-inline justify-content-center">
|
||||
<t t-call="website_sale.pricelist_list"/>
|
||||
<t t-call="website.pager"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<!-- Remove original pager -->
|
||||
<xpath expr="//div[hasclass('products_pager')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('oe_website_sale')]/div[hasclass('products_pager')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<!-- Rearrange product page -->
|
||||
<template id="product" inherit_id='website_sale.product' name="Product">
|
||||
<!-- Widen breadcrumb -->
|
||||
<xpath expr="//*[@id='wrap']//*[hasclass('row')]/*[1]" position="attributes">
|
||||
<attribute name="class">col-md-12</attribute>
|
||||
</xpath>
|
||||
<!-- Move search bar -->
|
||||
<xpath expr="//*[@id='wrap']//*[hasclass('row')]/*[2]" position="replace"/>
|
||||
<xpath expr="//*[@id='wrap']//*[hasclass('row')]" position="before">
|
||||
<t t-call="theme_loftspace_sale.search"/>
|
||||
</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 d-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[hasclass('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">
|
||||
<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-lg-3 col-md-4 d-none d-md-block</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid']" position="attributes">
|
||||
<attribute name="class">col-lg-9 col-md-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[hasclass('js_attributes')]" position="before">
|
||||
<h3 class="category-name">Product filters</h3>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="search" name="search">
|
||||
<div class="row">
|
||||
<div class="col-lg-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"/>
|
||||
<div class="input-group-append">
|
||||
<a class="btn btn-secondary a-submit"><i class="fa fa-search"/></a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</t>
|
||||
<t t-if="keep">
|
||||
<t t-call="website_sale.search">
|
||||
<t t-set="search_class">pagination form-inline col-lg-12</t>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="assets_frontend" inherit_id="theme_loftspace.assets_frontend" priority="1">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_loftspace_sale/static/src/scss/theme_ecommerce.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user