@ -0,0 +1,52 @@ |
|||
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
Special Product Website Snippet |
|||
=============================== |
|||
Special Product Website Snippet |
|||
|
|||
Features |
|||
======== |
|||
* Users can select Product and Multiple Template for Product from Snippet. |
|||
|
|||
Configuration |
|||
============= |
|||
Nothing to configure. |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (LGPL-3). |
|||
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
Credits |
|||
------- |
|||
* Developers: (V16) Sruthi Pavithran, |
|||
(V17) Farhana Jahan PT, |
|||
Contact: odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
|
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import controllers |
@ -0,0 +1,55 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': 'Special Product Website Snippet', |
|||
'version': '17.0.1.0.0', |
|||
'category': 'Website', |
|||
'summary': "Select Product and Multiple Template for Product in " |
|||
"Website Snippet", |
|||
'description': "This module gives an option to user to select product " |
|||
"and multiple template for product in website snippet.", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://cybrosys.com/", |
|||
'depends': ['sale_management', 'website', 'base', 'stock', 'website_sale'], |
|||
'data': [ |
|||
'views/special_product_snippet_templates.xml', |
|||
'views/product_snippet_templates.xml', |
|||
], |
|||
'assets': { |
|||
'web.assets_frontend': [ |
|||
'special_product_snippet/static/src/css/product_snippet.css', |
|||
], |
|||
'website.assets_wysiwyg': [ |
|||
'/special_product_snippet/static/src/js/options.js' |
|||
], |
|||
'web.assets_backend': [ |
|||
'special_product_snippet/static/src/xml/special_product_snippet.xml', |
|||
], |
|||
}, |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import special_product_snippet |
@ -0,0 +1,47 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import json |
|||
from odoo import http |
|||
from odoo.http import request |
|||
|
|||
|
|||
class SpecialProduct(http.Controller): |
|||
""" Getting product details and passing returning |
|||
the values and rendering the templates from js""" |
|||
|
|||
@http.route('/website/snippet/special/render', type='json', auth='public', |
|||
website=True) |
|||
def render_template(self, params): |
|||
res = json.loads(params) |
|||
product = request.env['product.template'].sudo().search_read( |
|||
[('id', '=', res['id'])]) |
|||
qcontext = {} |
|||
for rec in product: |
|||
qcontext['display_name'] = rec['display_name'] |
|||
qcontext['list_price'] = rec['list_price'] |
|||
qcontext['website_url'] = rec['website_url'] |
|||
qcontext[ |
|||
'image_url'] = '/web/image/product.template/%s/image_1920' % \ |
|||
rec['id'] |
|||
return { |
|||
'qcontext': qcontext |
|||
} |
@ -0,0 +1,5 @@ |
|||
## Module <special_product_snippet> |
|||
#### 22.01.2024 |
|||
#### Version 17.0.1.0.0 |
|||
#### ADD |
|||
- Initial Commit for Special Product Website Snippet |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 186 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 165 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 191 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 310 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 9.0 KiB |
@ -0,0 +1,604 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
|
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<title>Odoo App 3 Index</title> |
|||
<!-- Bootstrap CSS --> |
|||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
|||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
|||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
|||
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> |
|||
</head> |
|||
<body> |
|||
<section> |
|||
<div class="container" style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
|||
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
|||
<div class="my-3"> |
|||
<img src="assets/misc/Cybrosys R.png" style="width:auto !important; height:40px !important"> |
|||
</div> |
|||
<div class="my-3 d-flex align-items-center"> |
|||
<div class="text-center" |
|||
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Community |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
|||
Enterprise |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Odoo.sh |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
|||
style="margin: 80px 0px !important;"> |
|||
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
|||
#1A202C;"> |
|||
Special Product Website Snippet</h1> |
|||
<p class="my-3 mb-4" |
|||
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
|||
Special Product Snippet for Website |
|||
</p> |
|||
<div style="width: 80%; margin-top: 3rem;"> |
|||
<img src="assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5 mb-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#714b67 !important">Key Highlights |
|||
</p> |
|||
</div> |
|||
<div class="row py-4"> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> Add Special Snippet in Website</p> |
|||
<p class="m-0" style="color:#718096">Users can select Product and Multiple Template for Product from Snippet. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container rounded" > |
|||
<ul class="nav nav-tabs d-flex" style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
|||
class="active show" data-toggle="tab" href="#tab1" |
|||
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
|||
<i class="fa-regular fa-image pr-2" style="color: #fff;"></i> |
|||
Screenshots</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
|||
data-toggle="tab" href="#tab2" |
|||
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
|||
class="fa-solid fa-star pr-2" style="color: #fff;"></i>Features</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
|||
data-toggle="tab" href="#tab3" |
|||
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
|||
class="fa-solid fa-book-open pr-2" style="color: #fff;"></i>Released Notes</a></li> |
|||
</ul> |
|||
<div class="tab-content" style="background-color: rgba(121, 113, 119, 0.04);"> |
|||
<div id="tab1" class="tab-pane fade in active show"> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/1.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Drag and Drop the Snippet in Website.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/2.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
User can add Product and Choose Product Template from that Snippet</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/3.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
First Template</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/4.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Second Template</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/5.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Third Template</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/6.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Fourth Template</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/7.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
When we click on the 'View' button, redirects to the Shop to view the Product Details. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="tab2" class="tab-pane fade"> |
|||
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
|||
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
|||
width="16px"></span>Select Multiple Template and Product |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div id="tab3" class="tab-pane fade"> |
|||
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
|||
<div class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="d-flex mb-3" style="font-size: 0.8rem; font-weight: 500;"><span>Version |
|||
17.0.1.0.0</span><span class="px-2">|</span><span |
|||
style="color: #714B67;font-weight: 600;">Released on:10th Jan 2024</span> |
|||
</div> |
|||
<p class="m-0" |
|||
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
Initial Commit for Special Product Website Snippet.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Related Products</p> |
|||
</div> |
|||
</div> |
|||
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_website_helpdesk/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/1.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Website Helpdesk Support Ticket Management</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_website_helpdesk_dashboard/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/2.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Website HelpDesk Dashboard V16</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/education_student_portal/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/3.jpg" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Educational Student Portal & Online Admission</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/web_portal_attendance/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/4.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Portal Attendance</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/payment_proof_attachment/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/5.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Payment Proof Attachment</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/dynamic_link_snippet/" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/6.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
URL Snippet</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<a class="carousel-control-prev" href="#myCarousel" |
|||
data-slide="prev" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-prev-icon"> |
|||
<i class="fa fa-chevron-left" |
|||
style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
<a class="carousel-control-next" href="#myCarousel" |
|||
data-slide="next" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-next-icon"> |
|||
<i class="fa fa-chevron-right" |
|||
style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Services</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row py-3"> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/cogs.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Customization</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/wrench.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/lifebuoy.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/user.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Hire Odoo Developer</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
|
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/puzzle.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Integration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/update.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Migration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/consultation.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Consultancy</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/training.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/license.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Licensing Consultancy</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Industries</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="container"> |
|||
<div class="row my-5 py-4"> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100 " |
|||
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/trading-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
|||
<p>Easily procure and sell your products</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/pos-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
|||
<p>Easy configuration and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
|||
<img src="assets/icons/education-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Education</p> |
|||
<p>A platform for educational management</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/manufacturing-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Manufacturing</p> |
|||
<p>Plan, track and schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/ecom-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & Website</p> |
|||
<p>Mobile friendly, awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/service-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Service Management</p> |
|||
<p>Keep track of services and invoice</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/restaurant-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Restaurant</p> |
|||
<p>Run your bar or restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/hotel-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Hotel Management</p> |
|||
<p>An all-inclusive hotel management application</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row" style="background-color: #FFFAFE;"> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
|||
style="border-right: 1px solid #D9D9D9;"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/support (1) 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
|||
<div style="padding: 0px 8px;"> |
|||
<span |
|||
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
|||
Help?</span> |
|||
<p class="m-0" style="color:#718096;">Got questions or need help? Get in touch.</p> |
|||
<div style="font-weight: 400;"><span><img src="assets/misc/support-email.svg" alt="" |
|||
width="18px" |
|||
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/whatsapp 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
|||
<div> |
|||
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
|||
<p class="m-0" style="color:#718096;">Say hi to us on WhatsApp!</p> |
|||
<div style="font-weight: 400; font-size: 16px;"><span><img src="assets/misc/phone.svg" |
|||
alt="" width="14px" |
|||
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
|||
99456767686</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- Optional JavaScript --> |
|||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
|||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,186 @@ |
|||
.first-product-page { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
height: 100vh; |
|||
background-color: #f4f4f4; |
|||
} |
|||
.product-image { |
|||
width: 300px; |
|||
height: 300px; |
|||
object-fit: cover; |
|||
margin-right: 10px; |
|||
border-radius: 50px; |
|||
margin-top: 40px; |
|||
} |
|||
.second-product-image { |
|||
width: 300px; |
|||
height: 300px; |
|||
object-fit: cover; |
|||
margin-right: 10px; |
|||
border-radius: 0px; |
|||
margin-top: 40px; |
|||
margin-left: 600px; |
|||
margin-top: 5px; |
|||
} |
|||
.product-details { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
text-align: center; |
|||
} |
|||
.second-product-details { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
text-align: center; |
|||
} |
|||
.product-name { |
|||
font-size: 30px; |
|||
font-weight: bold; |
|||
color: #333; |
|||
margin-top: 100px; |
|||
} |
|||
.second-product-name { |
|||
font-size: 30px; |
|||
font-weight: bold; |
|||
color: #333; |
|||
margin-top: 40px; |
|||
margin-left: 90px; |
|||
} |
|||
.product-description { |
|||
font-size: 22px; |
|||
color: #888; |
|||
margin-top: 40px; |
|||
max-width: 700px; |
|||
} |
|||
.product-price { |
|||
font-size: 24px; |
|||
color: #ff5252; |
|||
margin-top: 10px; |
|||
} |
|||
.second-product-price { |
|||
font-size: 30px; |
|||
color: #ff5252; |
|||
margin-top: 5px; |
|||
font-style: italic; |
|||
margin-left: 75px; |
|||
} |
|||
.third-product-price { |
|||
color: grey; |
|||
font-size: 22px; |
|||
} |
|||
.cta-button { |
|||
margin-top: 40px; |
|||
padding: 20px 40px; |
|||
background-color: #ff5252; |
|||
color: #fff; |
|||
border: none; |
|||
border-radius: 100px; |
|||
font-size: 22px; |
|||
font-weight: bold; |
|||
cursor: pointer; |
|||
} |
|||
.cta-button:hover { |
|||
background-color: #e63939; |
|||
} |
|||
.cta-button2 { |
|||
padding: 20px 40px; |
|||
background-color: #ff5252; |
|||
color: #fff; |
|||
border: none; |
|||
border-radius: 100px; |
|||
font-size: 22px; |
|||
font-weight: bold; |
|||
cursor: pointer; |
|||
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2); |
|||
margin-left: 60px; |
|||
} |
|||
.cta-button:hover2 { |
|||
background-color: #e63939; |
|||
} |
|||
body { |
|||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
|||
} |
|||
.third-product-page { |
|||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); |
|||
max-width: 300px; |
|||
margin: auto; |
|||
text-align: center; |
|||
font-family: arial; |
|||
} |
|||
.third-product-name { |
|||
font-size: 24px; |
|||
} |
|||
.third-product-image { |
|||
width: 300px; |
|||
} |
|||
.third-cta-button { |
|||
padding: 20px 40px; |
|||
background-color: #ff5252; |
|||
color: #fff; |
|||
border: none; |
|||
border-radius: 100px; |
|||
font-size: 22px; |
|||
font-weight: bold; |
|||
cursor: pointer; |
|||
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2); |
|||
} |
|||
.fourth-cta-button { |
|||
border: none; |
|||
outline: 0; |
|||
padding: 12px; |
|||
color: white; |
|||
background-color: #ff5252; |
|||
text-align: center; |
|||
cursor: pointer; |
|||
width: 100%; |
|||
font-size: 18px; |
|||
} |
|||
.cta-button:hover3 { |
|||
background-color: #e63939; |
|||
} |
|||
.s_special_products_options { |
|||
border: 1px solid #EAEAEA; |
|||
padding: 20px; |
|||
} |
|||
.fourth-product-image { |
|||
width: 400px; |
|||
margin-left: 500px; |
|||
border: 1px solid black; |
|||
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); |
|||
animation: slide-in 1s ease-in-out; |
|||
} |
|||
@keyframes slide-in { |
|||
0% { |
|||
transform: translateX(-100%); |
|||
opacity: 0; |
|||
} |
|||
100% { |
|||
transform: translateX(0); |
|||
opacity: 1; |
|||
} |
|||
} |
|||
.fourth-product-details { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
} |
|||
.fourth-product-price { |
|||
font-size: 20px; |
|||
font-weight: bold; |
|||
color: black; |
|||
margin-bottom: 10px; |
|||
} |
|||
.fourth-view-button { |
|||
padding: 10px 30px; |
|||
background-color: #ff5252; |
|||
color: #fff; |
|||
border: none; |
|||
border-radius: 100px; |
|||
font-size: 22px; |
|||
font-weight: bold; |
|||
cursor: pointer; |
|||
box-shadow: 0px 0px 20px 0px rgb(0 0 0 / 20%); |
|||
} |
|||
} |
After Width: | Height: | Size: 2.3 KiB |
@ -0,0 +1,94 @@ |
|||
/** @odoo-module **/ |
|||
var globalVariable; |
|||
import { jsonrpc } from "@web/core/network/rpc_service"; |
|||
import options from "@web_editor/js/editor/snippets.options"; |
|||
import { renderToFragment } from "@web/core/utils/render"; |
|||
const Many2oneSpecialWidget = options.userValueWidgetsRegistry['we-many2one']; |
|||
options.registry.SpecialProduct = options.registry.SelectTemplate.extend({ |
|||
/** |
|||
* @constructor |
|||
*/ |
|||
init() { |
|||
this._super(...arguments); |
|||
this.containerSelector = ''; |
|||
this.selectTemplateWidgetName = 'special_product_snippet'; |
|||
this.orm = this.bindService("orm"); |
|||
}, |
|||
async selectTemplate(previewMode, widgetValue, params) { |
|||
var self = this; |
|||
if (globalVariable) { |
|||
await this._templatesLoading; |
|||
// Call the controller method with parameters
|
|||
const response = await jsonrpc("/website/snippet/special/render", { |
|||
'template': widgetValue, |
|||
'params': globalVariable |
|||
}); |
|||
if (previewMode === 'reset') { |
|||
if (!this.beforePreviewNodes) { |
|||
// FIXME should not be necessary: only needed because we have a
|
|||
// strange 'reset' sent after a non-preview
|
|||
return; |
|||
} |
|||
// Empty the container and restore the original content
|
|||
while (this.containerEl.lastChild) { |
|||
this.containerEl.removeChild(this.containerEl.lastChild); |
|||
} |
|||
for (const node of this.beforePreviewNodes) { |
|||
this.containerEl.appendChild(node); |
|||
} |
|||
this.beforePreviewNodes = null; |
|||
return; |
|||
} |
|||
if (!this.beforePreviewNodes) { |
|||
// We are about the apply a template on non-previewed content,
|
|||
// save that content's nodes.
|
|||
this.beforePreviewNodes = [...this.containerEl.childNodes]; |
|||
} |
|||
// Empty the container and add the template content
|
|||
while (this.containerEl.lastChild) { |
|||
this.containerEl.removeChild(this.containerEl.lastChild); |
|||
} |
|||
const temp = renderToFragment(widgetValue, response.qcontext); |
|||
this.$target.append(temp) |
|||
if (!previewMode) { |
|||
// The original content to keep saved has to be retrieved just
|
|||
// before the preview (if we save it now, we might miss other items
|
|||
// added by other options or custo).
|
|||
this.beforePreviewNodes = null; |
|||
} |
|||
} |
|||
}, |
|||
}); |
|||
// getting product from Many2one widget and setting the value in a global
|
|||
// variable and passing to python and fetching data
|
|||
const SpecialProductSnippetProduct = Many2oneSpecialWidget.include({ |
|||
init(parent, title, options, $target) { |
|||
return this._super(...arguments); |
|||
}, |
|||
_onUserValueNotification(ev) { |
|||
const { |
|||
widget |
|||
} = ev.data; |
|||
globalVariable = widget._methodsParams.recordData |
|||
if (widget && widget === this.createInput) { |
|||
ev.stopPropagation(); |
|||
return; |
|||
} |
|||
if (widget && widget === this.createButton) { |
|||
if (!this.createInput._value) { |
|||
ev.stopPropagation(); |
|||
} |
|||
return; |
|||
} |
|||
if (widget !== this.createButton && this.createInput) { |
|||
this.createInput._value = ''; |
|||
} |
|||
return this._super(ev); |
|||
}, |
|||
}); |
|||
options.userValueWidgetsRegistry['we-many2one-special'] = Many2oneSpecialWidget; |
|||
return { |
|||
SpecialProductSnippetProduct: SpecialProductSnippetProduct, |
|||
SpecialProduct: options.registry.SpecialProduct, |
|||
Many2oneSpecialWidget: Many2oneSpecialWidget, |
|||
}; |
@ -0,0 +1,85 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!--Create list of product snippet templates--> |
|||
<templates id="template" xml:space="preserve"> |
|||
<t t-name="special_product_snippet.first_dynamic_template"> |
|||
<div class="first-product-page"> |
|||
<img t-att-src="image_url" |
|||
alt="Product Image" |
|||
class="product-image"/> |
|||
<div class="product-details"> |
|||
<h1 class="product-name display_name"> |
|||
<t t-esc="display_name"/> |
|||
</h1> |
|||
<p class="product-description"> |
|||
|
|||
</p> |
|||
<p class="product-price">Starting at |
|||
<t t-esc="list_price" |
|||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/> |
|||
</p> |
|||
<a t-att-href="website_url" class="third-cta-button"> |
|||
View |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
<t t-name="special_product_snippet.second_dynamic_template"> |
|||
<div class="second-product-page"> |
|||
<img t-att-src="image_url" |
|||
alt="Product Image" |
|||
class="second-product-image"/> |
|||
<div class="second-product-details"> |
|||
<h1 class="second-product-name display_name"> |
|||
<t t-esc="display_name"/> |
|||
</h1> |
|||
<p class="second-product-description"> |
|||
|
|||
</p> |
|||
<p class="second-product-price">Starting at |
|||
<t t-esc="list_price" |
|||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/> |
|||
</p> |
|||
<a t-att-href="website_url" class="cta-button2"> |
|||
View |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
<t t-name="special_product_snippet.third_dynamic_template"> |
|||
<div class="third-product-page oe_structure"> |
|||
<div class="third-product-header"> |
|||
<h1 class="third-product-name display_name"> |
|||
<t t-esc="display_name"/> |
|||
</h1> |
|||
</div> |
|||
<div class="third-product-details"> |
|||
<img class="third-product-image" t-att-src="image_url" |
|||
alt="Product Image"/> |
|||
<div class="third-product-description"> |
|||
|
|||
</div> |
|||
<div class="third-product-price"> |
|||
<p>Starting at |
|||
<t t-esc="list_price" |
|||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/> |
|||
</p> |
|||
<a t-att-href="website_url" |
|||
class="fourth-cta-button">View |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
<t t-name="special_product_snippet.fourth_dynamic_template"> |
|||
<div class="product-card-page"> |
|||
<img t-att-src="image_url" class="fourth-product-image" |
|||
alt="Product Image"/> |
|||
<div class="fourth-product-details"> |
|||
<span class="fourth-product-price"><t t-esc="display_name"/> |
|||
<t t-esc="list_price" |
|||
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></span> |
|||
<a t-att-href="website_url" class="fourth-view-button">View</a> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</templates> |
@ -0,0 +1,138 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- Listing Product Snippet templates--> |
|||
<template id="s_special_snippets" name="Special Snippet"> |
|||
<section class="s_special_products_options"> |
|||
<div class="container"> |
|||
<t t-call="special_product_snippet.first_dynamic_template"/> |
|||
</div> |
|||
</section> |
|||
</template> |
|||
<template id="first_dynamic_template" |
|||
name="special snippet" groups="base.group_user"> |
|||
<div class="first-product-page"> |
|||
<img t-att-src="image_url" |
|||
alt="Product Image" |
|||
class="product-image"/> |
|||
<div class="product-details"> |
|||
<h1 class="product-name display_name"> |
|||
<t t-esc="display_name"/> |
|||
</h1> |
|||
<p class="product-description">Description of the |
|||
product |
|||
</p> |
|||
<p class="product-price">Starting at |
|||
<t t-esc="list_price"/> |
|||
</p> |
|||
<a t-att-href="website_url" class="third-cta-button"> |
|||
View |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
<template id="second_dynamic_template" |
|||
name="special snippet" groups="base.group_user"> |
|||
<div class="second-product-page" |
|||
t-attf-style="background-image: url(#{image_url});"> |
|||
<div class="second-product-details"> |
|||
<h1 class="second-product-name display_name"> |
|||
<t t-esc="display_name"/> |
|||
</h1> |
|||
<p class="second-product-description">Description of the |
|||
product |
|||
</p> |
|||
<p class="second-product-price">Starting at |
|||
<t t-esc="list_price"/> |
|||
</p> |
|||
<a t-att-href="website_url" class="third-cta-button"> |
|||
View |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
<template id="third_dynamic_template" |
|||
name="special snippet" groups="base.group_user"> |
|||
<div class="third-product-page oe_structure"> |
|||
<div class="third-product-header"> |
|||
<h1 class="third-product-name display_name"> |
|||
<t t-esc="display_name"/> |
|||
</h1> |
|||
</div> |
|||
<div class="third-product-details"> |
|||
<img class="third-product-image" t-att-src="image_url" |
|||
alt="Product Image"/> |
|||
<div class="third-product-description"> |
|||
<p>Description of the product.</p> |
|||
</div> |
|||
<div class="third-product-price"> |
|||
<p>Starting at |
|||
<t t-esc="list_price"/> |
|||
</p> |
|||
<a t-att-href="website_url" |
|||
class="third-cta-button">View |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
<template id="fourth_dynamic_template" |
|||
name="special snippet" groups="base.group_user"> |
|||
<div class="product-card-page"> |
|||
<h2 class="product-name4"> |
|||
<t t-esc="display_name"/> |
|||
</h2> |
|||
<img t-att-src="image_url" alt="Product Image"/> |
|||
<div class="fourth-product-details"> |
|||
<span class="fourth-product-price"> |
|||
<t t-esc="list_price"/> |
|||
</span> |
|||
<a t-att-href="website_url" class="fourth-view-button">View</a> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<template id="s_special_products_options" |
|||
inherit_id="website.snippet_options"> |
|||
<xpath expr="." position="inside"> |
|||
<div data-js="SpecialProduct" |
|||
data-selector=".s_special_products_options"> |
|||
<we-row> |
|||
<we-many2one string="Product" |
|||
data-model="product.template" |
|||
data-no-preview="true" |
|||
data-name="" |
|||
data-select-data-attribute="" |
|||
data-set-product-attribute="" |
|||
data-attribute-name="scrollBackgroundRatio" |
|||
/> |
|||
</we-row> |
|||
<we-select string="Template" |
|||
data-name="special_product_snippet" |
|||
data-attribute-name="SpecialProductTemplate" |
|||
data-attribute-default-value="default"> |
|||
<we-button title="Default" |
|||
data-select-template="special_product_snippet.first_dynamic_template" |
|||
data-select-data-attribute="default" |
|||
data-img="/special_product_snippet/static/src/img/snippets_options/img_special_product_snippet.svg" |
|||
|
|||
/> |
|||
<we-button title="second-temp" |
|||
data-select-template="special_product_snippet.second_dynamic_template" |
|||
data-select-data-attribute="Second Temp" |
|||
data-img="/special_product_snippet/static/src/img/snippets_options/img_special_product_snippet.svg" |
|||
/> |
|||
<we-button title="third-temp" |
|||
data-select-template="special_product_snippet.third_dynamic_template" |
|||
data-select-data-attribute="Third Temp" |
|||
data-img="/special_product_snippet/static/src/img/snippets_options/img_special_product_snippet.svg" |
|||
/> |
|||
<we-button title="fourth-temp" |
|||
data-select-template="special_product_snippet.fourth_dynamic_template" |
|||
data-select-data-attribute="Fourth Temp" |
|||
data-img="/special_product_snippet/static/src/img/snippets_options/img_special_product_snippet.svg" |
|||
/> |
|||
</we-select> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,12 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo> |
|||
<!-- Create product snippet--> |
|||
<template id="product_snippets" inherit_id="website.snippets" |
|||
priority="8"> |
|||
<xpath expr="//div[@id='snippet_effect']//t[@t-snippet][last()]" |
|||
position="after"> |
|||
<t t-snippet="special_product_snippet.s_special_snippets" |
|||
t-thumbnail="/special_product_snippet/static/src/img/snippets_options/img_special_product_snippet.svg"/> |
|||
</xpath> |
|||
</template> |
|||
</odoo> |