diff --git a/website_sale_product_quick_view/__init__.py b/website_sale_product_quick_view/__init__.py new file mode 100644 index 000000000..192867daf --- /dev/null +++ b/website_sale_product_quick_view/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +import controllers diff --git a/website_sale_product_quick_view/__manifest__.py b/website_sale_product_quick_view/__manifest__.py new file mode 100644 index 000000000..de76e96a7 --- /dev/null +++ b/website_sale_product_quick_view/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Hilar AK() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + +{ + 'name': "E-commerce Product Quick View", + 'version': '10.0.1.0.0', + 'summary': """E-commerce Product Quick View.""", + 'description': """E-commerce Product Quick View.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com", + 'category': 'eCommerce', + 'depends': ['base', + 'website_sale', + 'website_mail', + 'rating', + ], + 'data': [ + # 'security/ir.model.access.csv', + 'views/assets.xml', + 'views/template.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'application': True +} diff --git a/website_sale_product_quick_view/controllers/__init__.py b/website_sale_product_quick_view/controllers/__init__.py new file mode 100644 index 000000000..a84d81a79 --- /dev/null +++ b/website_sale_product_quick_view/controllers/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +import main diff --git a/website_sale_product_quick_view/controllers/main.py b/website_sale_product_quick_view/controllers/main.py new file mode 100644 index 000000000..c9b0123a4 --- /dev/null +++ b/website_sale_product_quick_view/controllers/main.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- + +from odoo import http +from odoo.addons.website_sale.controllers import main + + +class WebsiteSaleExtend(main.WebsiteSale): + @http.route([ + '/shop', + '/shop/page/', + '/shop/category/', + '/shop/category//page/' + ], type='http', auth="public", website=True) + def shop(self, page=0, category=None, search='', ppg=False, **post): + """ + Overrided function to update the response with products objects.Here we are updating qcontext. + :param page: + :param category: + :param search: + :param ppg: + :param post: + :return: + """ + response = super(WebsiteSaleExtend, self).shop(page=0, category=None, search='', ppg=False, **post) + response.qcontext.update({ + 'get_attribute_value_ids': self.get_attribute_value_ids, + 'rating_status': response.qcontext.get('rating_product'), + }) + return response diff --git a/website_sale_product_quick_view/readme.md b/website_sale_product_quick_view/readme.md new file mode 100644 index 000000000..b100e52f2 --- /dev/null +++ b/website_sale_product_quick_view/readme.md @@ -0,0 +1,32 @@ +# Ecommerce Product Quick View + +Ecommerce Product Quick View is an odoo e-commerse based addon, which Extends the products view by +including the wizard which shows the quick informations about the products. + + - E-commerce Product Quick View. + - Button to open the quick view. + - Click the quick view button on product form to open wizard. + - product rating on quick view. + - Alternative Products on Quick View page. + +### Depends +Ecommerce Product Quick View addon depends on Odoo website_sale, rating +### Tech + +* [Python] - Models, Controllers +* [XML] - Odoo website templates + +### Installation +- www.odoo.com/documentation/10.0/setup/install.html +- Install our custom addon, which also installs its depends [rating, website_sale] + +### Usage +> Goto Shop page -> click on quick view button + +License +---- +GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (LGPLv3) +(http://www.gnu.org/licenses/agpl.html) + + + diff --git a/website_sale_product_quick_view/static/description/banner.jpg b/website_sale_product_quick_view/static/description/banner.jpg new file mode 100644 index 000000000..6fa520659 Binary files /dev/null and b/website_sale_product_quick_view/static/description/banner.jpg differ diff --git a/website_sale_product_quick_view/static/description/cybro_logo.png b/website_sale_product_quick_view/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/website_sale_product_quick_view/static/description/cybro_logo.png differ diff --git a/website_sale_product_quick_view/static/description/icon.png b/website_sale_product_quick_view/static/description/icon.png new file mode 100644 index 000000000..64a4ce0ca Binary files /dev/null and b/website_sale_product_quick_view/static/description/icon.png differ diff --git a/website_sale_product_quick_view/static/description/index.html b/website_sale_product_quick_view/static/description/index.html new file mode 100644 index 000000000..bb606574f --- /dev/null +++ b/website_sale_product_quick_view/static/description/index.html @@ -0,0 +1,77 @@ + +
+
+

E-commerce Product Quick View

+

Cybrosys Technologies

+
+
+ +
+
+

Product Quick View button E-commerce product page

+

+ Responsive and with product ratings. +

+
+ +
+ +
+
+ +
+
+ +
+

Need Any Help?

+ +
+ diff --git a/website_sale_product_quick_view/static/description/product view.png b/website_sale_product_quick_view/static/description/product view.png new file mode 100644 index 000000000..7f4748a6a Binary files /dev/null and b/website_sale_product_quick_view/static/description/product view.png differ diff --git a/website_sale_product_quick_view/static/description/quick view.png b/website_sale_product_quick_view/static/description/quick view.png new file mode 100644 index 000000000..04718a44e Binary files /dev/null and b/website_sale_product_quick_view/static/description/quick view.png differ diff --git a/website_sale_product_quick_view/static/src/css/style.css b/website_sale_product_quick_view/static/src/css/style.css new file mode 100755 index 000000000..1e900febd --- /dev/null +++ b/website_sale_product_quick_view/static/src/css/style.css @@ -0,0 +1,9 @@ +.product_view .modal-dialog{max-width: 800px; width: 100%;} +.pre-cost{text-decoration: line-through; color: #a5a5a5;} +.space-ten{padding: 10px 0;} +.rating.hidden-sm.rating_ext > .price-text-color.fa-star { + color: #fcc500; +} +.rating.hidden-sm.rating_ext > .fa-star{ + color: #dddddb; +} \ No newline at end of file diff --git a/website_sale_product_quick_view/views/assets.xml b/website_sale_product_quick_view/views/assets.xml new file mode 100644 index 000000000..640485663 --- /dev/null +++ b/website_sale_product_quick_view/views/assets.xml @@ -0,0 +1,7 @@ + + + diff --git a/website_sale_product_quick_view/views/template.xml b/website_sale_product_quick_view/views/template.xml new file mode 100644 index 000000000..7b062519a --- /dev/null +++ b/website_sale_product_quick_view/views/template.xml @@ -0,0 +1,109 @@ + + + + \ No newline at end of file