diff --git a/website_multi_variant/README.rst b/website_multi_variant/README.rst new file mode 100644 index 000000000..4020505de --- /dev/null +++ b/website_multi_variant/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Website Multi Variant Add to Cart +================================= + +Website Multi Variant Add to Cart + +Installation +============ +- www.odoo.com/documentation/15.0/setup/install.html +- Install our custom addon + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + Cybrosys Techno Solutions + Version 15.0 : Ammu Raj + +Contacts +-------- +* Mail Contact : odoo@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 `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/website_multi_variant/__init__.py b/website_multi_variant/__init__.py new file mode 100644 index 000000000..5f87034f3 --- /dev/null +++ b/website_multi_variant/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Cybrosys Technologies() +# +# 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 . +# +############################################################################# + +from . import controllers diff --git a/website_multi_variant/__manifest__.py b/website_multi_variant/__manifest__.py new file mode 100644 index 000000000..4704399cf --- /dev/null +++ b/website_multi_variant/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Cybrosys Technologies() +# +# 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 . +# +############################################################################# + + +{ + 'name': 'Website Multi Variant Add to Cart', + 'category': 'Website', + 'summary': "List product attribute options on a product's details page with quantity Box with quick add to cart.", + 'version': '15.0.1.0.0', + 'description': 'Multi Variant Add to Cart' + 'List product attribute options on a product details page with quantity Box with quick add to cart.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['website_sale'], + 'installable': True, + 'data': [ + 'views/templates.xml', + ], + 'images': ['static/description/banner.png'], + 'application': True, + 'auto_install': False, + 'license': 'LGPL-3', +} diff --git a/website_multi_variant/controllers/__init__.py b/website_multi_variant/controllers/__init__.py new file mode 100644 index 000000000..d6dc4cf8b --- /dev/null +++ b/website_multi_variant/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Cybrosys Technologies() +# +# 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 . +# +############################################################################# + +from . import main diff --git a/website_multi_variant/controllers/main.py b/website_multi_variant/controllers/main.py new file mode 100644 index 000000000..198b1cc29 --- /dev/null +++ b/website_multi_variant/controllers/main.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# Author: Cybrosys Technologies() +# +# 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 . +# +############################################################################# + +from odoo import http +from odoo.http import request +from odoo.addons.website_sale.controllers.main import WebsiteSale + + +class WebsiteSale(WebsiteSale): + """ updating the cart quantity""" + + @http.route(['/shop/multi_cart'], type='http', auth="public", website=True) + def cart_popup_update(self, url_refferer='', **post): + cr, uid, context, pool = request.cr, request.uid, request.context, request.registry + qty_total = 0 + if post.get('product_tmpl_id'): + request.website.get_current_pricelist() + request_order = request.website.sale_get_order(force_create=1) + product_template = request.env['product.template'].sudo().search( + [('id', '=', post.get('product_tmpl_id'))]) + qty_total = 0 + + if product_template: + quantity = 0 + for variant in product_template.product_variant_ids: + if post.get('quantity-%s' % variant.id): + quantity = float(post.get('quantity-%s' % variant.id)) + if quantity >= 1: + request.website.sale_get_order( + force_create=1)._cart_update( + product_id=int(variant.id), + add_qty=float(quantity)) + qty_total += quantity + if qty_total > 0: + if post.get('buy_now'): + return request.redirect('/shop/payment') + return request.redirect('/shop/cart') + else: + return request.redirect('/shop') diff --git a/website_multi_variant/doc/RELEASE_NOTES.md b/website_multi_variant/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..23a9f47ea --- /dev/null +++ b/website_multi_variant/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 04.10.2022 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Multi Variant Add to Cart diff --git a/website_multi_variant/static/description/assets/icons/check.png b/website_multi_variant/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/check.png differ diff --git a/website_multi_variant/static/description/assets/icons/chevron.png b/website_multi_variant/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/chevron.png differ diff --git a/website_multi_variant/static/description/assets/icons/cogs.png b/website_multi_variant/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/cogs.png differ diff --git a/website_multi_variant/static/description/assets/icons/consultation.png b/website_multi_variant/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/consultation.png differ diff --git a/website_multi_variant/static/description/assets/icons/ecom-black.png b/website_multi_variant/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/ecom-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/education-black.png b/website_multi_variant/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/education-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/hotel-black.png b/website_multi_variant/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/hotel-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/license.png b/website_multi_variant/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/license.png differ diff --git a/website_multi_variant/static/description/assets/icons/lifebuoy.png b/website_multi_variant/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/lifebuoy.png differ diff --git a/website_multi_variant/static/description/assets/icons/logo.png b/website_multi_variant/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/logo.png differ diff --git a/website_multi_variant/static/description/assets/icons/manufacturing-black.png b/website_multi_variant/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/pos-black.png b/website_multi_variant/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/pos-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/puzzle.png b/website_multi_variant/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/puzzle.png differ diff --git a/website_multi_variant/static/description/assets/icons/restaurant-black.png b/website_multi_variant/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/restaurant-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/service-black.png b/website_multi_variant/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/service-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/trading-black.png b/website_multi_variant/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/trading-black.png differ diff --git a/website_multi_variant/static/description/assets/icons/training.png b/website_multi_variant/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/training.png differ diff --git a/website_multi_variant/static/description/assets/icons/update.png b/website_multi_variant/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/update.png differ diff --git a/website_multi_variant/static/description/assets/icons/user.png b/website_multi_variant/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/user.png differ diff --git a/website_multi_variant/static/description/assets/icons/wrench.png b/website_multi_variant/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_multi_variant/static/description/assets/icons/wrench.png differ diff --git a/website_multi_variant/static/description/assets/modules/budget_image.png b/website_multi_variant/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/website_multi_variant/static/description/assets/modules/budget_image.png differ diff --git a/website_multi_variant/static/description/assets/modules/credit_image.png b/website_multi_variant/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/website_multi_variant/static/description/assets/modules/credit_image.png differ diff --git a/website_multi_variant/static/description/assets/modules/employee_image.png b/website_multi_variant/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/website_multi_variant/static/description/assets/modules/employee_image.png differ diff --git a/website_multi_variant/static/description/assets/modules/export_image.png b/website_multi_variant/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/website_multi_variant/static/description/assets/modules/export_image.png differ diff --git a/website_multi_variant/static/description/assets/modules/gantt_image.png b/website_multi_variant/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/website_multi_variant/static/description/assets/modules/gantt_image.png differ diff --git a/website_multi_variant/static/description/assets/modules/quotation_image.png b/website_multi_variant/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/website_multi_variant/static/description/assets/modules/quotation_image.png differ diff --git a/website_multi_variant/static/description/assets/screenshots/hero.gif b/website_multi_variant/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..ae098d7ab Binary files /dev/null and b/website_multi_variant/static/description/assets/screenshots/hero.gif differ diff --git a/website_multi_variant/static/description/assets/screenshots/variant1.png b/website_multi_variant/static/description/assets/screenshots/variant1.png new file mode 100644 index 000000000..128c65a9f Binary files /dev/null and b/website_multi_variant/static/description/assets/screenshots/variant1.png differ diff --git a/website_multi_variant/static/description/assets/screenshots/variant2.png b/website_multi_variant/static/description/assets/screenshots/variant2.png new file mode 100644 index 000000000..4bb168b13 Binary files /dev/null and b/website_multi_variant/static/description/assets/screenshots/variant2.png differ diff --git a/website_multi_variant/static/description/assets/screenshots/variant3.png b/website_multi_variant/static/description/assets/screenshots/variant3.png new file mode 100644 index 000000000..b4c1eeb2f Binary files /dev/null and b/website_multi_variant/static/description/assets/screenshots/variant3.png differ diff --git a/website_multi_variant/static/description/assets/screenshots/variant4.png b/website_multi_variant/static/description/assets/screenshots/variant4.png new file mode 100644 index 000000000..a3cce8724 Binary files /dev/null and b/website_multi_variant/static/description/assets/screenshots/variant4.png differ diff --git a/website_multi_variant/static/description/banner.png b/website_multi_variant/static/description/banner.png new file mode 100644 index 000000000..b64b96d92 Binary files /dev/null and b/website_multi_variant/static/description/banner.png differ diff --git a/website_multi_variant/static/description/icon.png b/website_multi_variant/static/description/icon.png new file mode 100644 index 000000000..9b45fa212 Binary files /dev/null and b/website_multi_variant/static/description/icon.png differ diff --git a/website_multi_variant/static/description/index.html b/website_multi_variant/static/description/index.html new file mode 100644 index 000000000..6505609ab --- /dev/null +++ b/website_multi_variant/static/description/index.html @@ -0,0 +1,597 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Website Multi Variant Add to Cart

+

+ Customers can Add Multiple Variants of Products with Different Quantities to the Cart +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This module allows to directly login to POS no need to access Backend.

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ The customer can add multiple variants of products with different quantities to the basket at once + without having to select them one by one.

+
+
+ +
+
+ +
+
+

+ The amount of the variants will be visible on the same product page.

+
+
+ +
+
+ +
+
+

+ Product variants are displayed in a tabular format on the product page with a quantity field.

+
+
+ +
+
+ +
+
+

+ "Buy now button for variant" to add multiple variants

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Product Variant Options On Website

+

+ When clicking on a product having variants, customers can add multiple variants with different + quantities in the cart.

+ +
+ +
+

+ Cart View On Website

+

+ After clicking the "Add to cart" button multiple product will added in cart. +

+ +
+ +
+

+ Enable the Buy Now button for varints

+

+ We can directly add the multiple product variants into payment page like the buy now button in + website.

+ +
+ +
+

+ Redirected directly into payment page

+ +
+ +
+ +
+
+

Suggested Products

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

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/website_multi_variant/views/templates.xml b/website_multi_variant/views/templates.xml new file mode 100644 index 000000000..a64e46d71 --- /dev/null +++ b/website_multi_variant/views/templates.xml @@ -0,0 +1,125 @@ + + + + + +