diff --git a/call_for_price_website/README.rst b/call_for_price_website/README.rst new file mode 100644 index 000000000..e72e7ba9e --- /dev/null +++ b/call_for_price_website/README.rst @@ -0,0 +1,42 @@ +.. 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 CALL FOR PRICE +==================== +This module helps hide specific products prices from the shop and using 'Call for Price' button customer can sent their details, the user will follow up the details and get the product price. + +Configuration +============= +No additional configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Raneesha M K @cybrosys, 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 `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/call_for_price_website/__init__.py b/call_for_price_website/__init__.py new file mode 100644 index 000000000..084f44af0 --- /dev/null +++ b/call_for_price_website/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import models diff --git a/call_for_price_website/__manifest__.py b/call_for_price_website/__manifest__.py new file mode 100644 index 000000000..9dcee98b8 --- /dev/null +++ b/call_for_price_website/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Website Call For Price', + 'version': '16.0.1.0.0', + 'category': 'Website/Website', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'website_sale', 'website_sale_wishlist', + 'website_sale_comparison'], + 'summary': """Helps to hide price of specified product from shop""", + 'description': "Hide price and add to cart item button of All page stores" + "and user must ask for a call for price", + 'data': ['security/ir.model.access.csv', + 'views/shop_hide_call_price_template.xml', + 'views/wishlist_hide_price_template.xml', + 'views/compare_hide_price_template.xml', + 'views/call_for_price_views.xml', + 'views/product_template_views.xml'], + 'assets': { + 'web.assets_frontend': [ + '/call_for_price_website/static/src/js/create_call_form.js'] + }, + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/call_for_price_website/doc/RELEASE_NOTES.md b/call_for_price_website/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..851efaf7d --- /dev/null +++ b/call_for_price_website/doc/RELEASE_NOTES.md @@ -0,0 +1,11 @@ +## Module + +#### 15.03.2023 +#### Version 16.0.1.0.0 +#### ADD +Initial Commit for Website Call For Price + + + + + diff --git a/call_for_price_website/models/__init__.py b/call_for_price_website/models/__init__.py new file mode 100644 index 000000000..ca776bd5b --- /dev/null +++ b/call_for_price_website/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### + +from . import call_price, product_template diff --git a/call_for_price_website/models/call_price.py b/call_for_price_website/models/call_price.py new file mode 100644 index 000000000..5665fab4e --- /dev/null +++ b/call_for_price_website/models/call_price.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import api, fields, models + + +class CallForPrice(models.Model): + """Creating a model to record all the request the get from website.""" + _name = 'call.price' + _description = 'Call for Price' + _rec_name = 'product_id' + + first_name = fields.Char(string="First Name", help="First Name of user") + last_name = fields.Char(string="Last Name", help="Last Name of user") + product_id = fields.Many2one('product.template', string="Product", + help="In which product " + "they are requesting price") + email = fields.Char(string="Email", help="Users email for contact") + phone = fields.Char(string="Contact No.", + help="Users contact number for contacting") + quantity = fields.Integer(string="Quantity", + help="How much quantity of product price " + "they want know") + message = fields.Char(string="Message", + help="If any messages for referring") + state = fields.Selection( + [('draft', 'Draft'), ('done', 'Done'), ('cancel', 'Cancel')], + default="draft", help="Call for price requests stage") + + def action_done(self): + """the price of the requested product will be updated for them, + form state is done""" + self.write({'state': 'done'}) + + def action_cancel(self): + """ cancel the form or change the state to cancel""" + self.write({'state': 'cancel'}) + + @api.model + def create_form(self, first, last, product_id, phone, email, message, qty): + """ create the request from the users to backend for teams""" + self.create({ + 'product_id': product_id, + 'first_name': first, + 'last_name': last, + 'phone': phone, + 'email': email, + 'quantity': qty, + 'message': message + }) diff --git a/call_for_price_website/models/product_template.py b/call_for_price_website/models/product_template.py new file mode 100644 index 000000000..e271a3761 --- /dev/null +++ b/call_for_price_website/models/product_template.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Raneesha M K (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import fields, models + + +class ProductTemplate(models.Model): + """Inheriting product variants model for adding a field + that will hide price from website""" + _inherit = 'product.template' + + price_call = fields.Boolean(string="Call for Price", + help="This will hide the price and cart button from shop " + "and customer can request by calling for price") diff --git a/call_for_price_website/security/ir.model.access.csv b/call_for_price_website/security/ir.model.access.csv new file mode 100644 index 000000000..ff1aeae69 --- /dev/null +++ b/call_for_price_website/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink + +access_call_price,access_call_price,model_call_price,base.group_user,1,1,1,1 diff --git a/call_for_price_website/static/description/assets/icons/check.png b/call_for_price_website/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/check.png differ diff --git a/call_for_price_website/static/description/assets/icons/chevron.png b/call_for_price_website/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/chevron.png differ diff --git a/call_for_price_website/static/description/assets/icons/cogs.png b/call_for_price_website/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/cogs.png differ diff --git a/call_for_price_website/static/description/assets/icons/consultation.png b/call_for_price_website/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/consultation.png differ diff --git a/call_for_price_website/static/description/assets/icons/ecom-black.png b/call_for_price_website/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/ecom-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/education-black.png b/call_for_price_website/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/education-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/hotel-black.png b/call_for_price_website/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/hotel-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/license.png b/call_for_price_website/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/license.png differ diff --git a/call_for_price_website/static/description/assets/icons/lifebuoy.png b/call_for_price_website/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/lifebuoy.png differ diff --git a/call_for_price_website/static/description/assets/icons/manufacturing-black.png b/call_for_price_website/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/manufacturing-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/pos-black.png b/call_for_price_website/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/pos-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/puzzle.png b/call_for_price_website/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/puzzle.png differ diff --git a/call_for_price_website/static/description/assets/icons/restaurant-black.png b/call_for_price_website/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/restaurant-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/service-black.png b/call_for_price_website/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/service-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/trading-black.png b/call_for_price_website/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/trading-black.png differ diff --git a/call_for_price_website/static/description/assets/icons/training.png b/call_for_price_website/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/training.png differ diff --git a/call_for_price_website/static/description/assets/icons/update.png b/call_for_price_website/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/update.png differ diff --git a/call_for_price_website/static/description/assets/icons/user.png b/call_for_price_website/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/user.png differ diff --git a/call_for_price_website/static/description/assets/icons/wrench.png b/call_for_price_website/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/call_for_price_website/static/description/assets/icons/wrench.png differ diff --git a/call_for_price_website/static/description/assets/misc/categories.png b/call_for_price_website/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/categories.png differ diff --git a/call_for_price_website/static/description/assets/misc/check-box.png b/call_for_price_website/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/check-box.png differ diff --git a/call_for_price_website/static/description/assets/misc/compass.png b/call_for_price_website/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/compass.png differ diff --git a/call_for_price_website/static/description/assets/misc/corporate.png b/call_for_price_website/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/corporate.png differ diff --git a/call_for_price_website/static/description/assets/misc/customer-support.png b/call_for_price_website/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/customer-support.png differ diff --git a/call_for_price_website/static/description/assets/misc/cybrosys-logo.png b/call_for_price_website/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/cybrosys-logo.png differ diff --git a/call_for_price_website/static/description/assets/misc/features.png b/call_for_price_website/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/features.png differ diff --git a/call_for_price_website/static/description/assets/misc/logo.png b/call_for_price_website/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/logo.png differ diff --git a/call_for_price_website/static/description/assets/misc/pictures.png b/call_for_price_website/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/pictures.png differ diff --git a/call_for_price_website/static/description/assets/misc/pie-chart.png b/call_for_price_website/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/pie-chart.png differ diff --git a/call_for_price_website/static/description/assets/misc/right-arrow.png b/call_for_price_website/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/right-arrow.png differ diff --git a/call_for_price_website/static/description/assets/misc/star.png b/call_for_price_website/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/star.png differ diff --git a/call_for_price_website/static/description/assets/misc/support.png b/call_for_price_website/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/support.png differ diff --git a/call_for_price_website/static/description/assets/misc/whatsapp.png b/call_for_price_website/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/call_for_price_website/static/description/assets/misc/whatsapp.png differ diff --git a/call_for_price_website/static/description/assets/modules/1.png b/call_for_price_website/static/description/assets/modules/1.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/call_for_price_website/static/description/assets/modules/1.png differ diff --git a/call_for_price_website/static/description/assets/modules/2.png b/call_for_price_website/static/description/assets/modules/2.png new file mode 100644 index 000000000..eb3f8652f Binary files /dev/null and b/call_for_price_website/static/description/assets/modules/2.png differ diff --git a/call_for_price_website/static/description/assets/modules/3.png b/call_for_price_website/static/description/assets/modules/3.png new file mode 100644 index 000000000..a9c4ec82c Binary files /dev/null and b/call_for_price_website/static/description/assets/modules/3.png differ diff --git a/call_for_price_website/static/description/assets/modules/4.png b/call_for_price_website/static/description/assets/modules/4.png new file mode 100644 index 000000000..17ba4d75f Binary files /dev/null and b/call_for_price_website/static/description/assets/modules/4.png differ diff --git a/call_for_price_website/static/description/assets/modules/5.png b/call_for_price_website/static/description/assets/modules/5.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/call_for_price_website/static/description/assets/modules/5.png differ diff --git a/call_for_price_website/static/description/assets/modules/6.png b/call_for_price_website/static/description/assets/modules/6.png new file mode 100644 index 000000000..ed11bd818 Binary files /dev/null and b/call_for_price_website/static/description/assets/modules/6.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot1.png b/call_for_price_website/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..6f75249b6 Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot1.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot2.png b/call_for_price_website/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..3685eb05a Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot2.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot3.png b/call_for_price_website/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..9f16188b8 Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot3.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot4.png b/call_for_price_website/static/description/assets/screenshots/Screenshot4.png new file mode 100644 index 000000000..f4d20c03f Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot4.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot5.png b/call_for_price_website/static/description/assets/screenshots/Screenshot5.png new file mode 100644 index 000000000..cdf9abfa4 Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot5.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot6.png b/call_for_price_website/static/description/assets/screenshots/Screenshot6.png new file mode 100644 index 000000000..668803191 Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot6.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot7.png b/call_for_price_website/static/description/assets/screenshots/Screenshot7.png new file mode 100644 index 000000000..c212dd592 Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot7.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/Screenshot8.png b/call_for_price_website/static/description/assets/screenshots/Screenshot8.png new file mode 100644 index 000000000..a6484ca8c Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/Screenshot8.png differ diff --git a/call_for_price_website/static/description/assets/screenshots/hero.gif b/call_for_price_website/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..3f5a934ab Binary files /dev/null and b/call_for_price_website/static/description/assets/screenshots/hero.gif differ diff --git a/call_for_price_website/static/description/banner.png b/call_for_price_website/static/description/banner.png new file mode 100644 index 000000000..bd1a82caa Binary files /dev/null and b/call_for_price_website/static/description/banner.png differ diff --git a/call_for_price_website/static/description/cybro_logo.png b/call_for_price_website/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/call_for_price_website/static/description/cybro_logo.png differ diff --git a/call_for_price_website/static/description/icon.png b/call_for_price_website/static/description/icon.png new file mode 100644 index 000000000..43dc58b19 Binary files /dev/null and b/call_for_price_website/static/description/icon.png differ diff --git a/call_for_price_website/static/description/index.html b/call_for_price_website/static/description/index.html new file mode 100644 index 000000000..a2c737fe3 --- /dev/null +++ b/call_for_price_website/static/description/index.html @@ -0,0 +1,681 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

+ Website Call + for Price

+

+ Website Call for Price for + Specific Products

+ + + +
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ In some cases, we have to hide the price of a product. These items might + be free, out of stock, or available for + any other reason. This module allows you to hide the price and add to + cart button for specific products; the + call for price option will send a price request to the merchant. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Hide specific product price. +
+
+ + Hide add to cart button. +
+
+ + Adds a button for price requests from merchants. +
+
+ + Track all requests from the backend. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Enable Call for Price + from the Product Sales tab

+

+ Go to Products -> Sales -> + Enable Call for Price. After enabling this, the price and add to + cart button will hide from the website.

+ +
+ +
+

+ Hide product price from list of products

+ +
+ +
+

+ Wishlist page

+

+ Hide the price and add to cart button from wishlist page.

+ +
+ +
+

+ Product Compare Page

+

+ If the user needs to compare the products, then they need to + request the price.

+ +
+ +
+

+ Call For Price Button

+

+ Hides the price and add to cart button from product item and + adds button for price request, on clicking a popup will + open.

+ +
+ +
+

+ Call For Price Request

+

+ User need to enter these details inorder to get the price of the + product. The request will send to merchant by clicking send + button.

+ +
+ +
+

+ Request Sended

+

+ After sending the request a success message will show there, and + merchant can access the request from backend.

+ +
+ +
+

+ The Backend View

+

+ Initially, a draft request is created; after merchant + verification, the sales team contacts the customer.

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

+ Related + 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

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/call_for_price_website/static/src/js/create_call_form.js b/call_for_price_website/static/src/js/create_call_form.js new file mode 100644 index 000000000..c7fbf648a --- /dev/null +++ b/call_for_price_website/static/src/js/create_call_form.js @@ -0,0 +1,26 @@ +/** + * This file is used to give a success alert after requesting a call for price. +*/ + +odoo.define('call_for_price_website.create', function (require) { +"use strict"; + const rpc = require('web.rpc'); + var core = require('web.core'); + + $('#send_btn').on('click', function(){ + var first = $('#first_name').val(); + var last = $('#last_name').val(); + var product_id = $('#product_id').val(); + var phone = $('#phone').val(); + var email = $('#email').val(); + var message = $('#message').val(); + var qty = $('#quantity').val(); + rpc.query({ + model: "call.price", + method: "create_form", + args:[first,last,product_id,phone,email,message,qty] + }).then(function (result) { + document.getElementById('alert_message').style.display = "block" + }); + }); +}); \ No newline at end of file diff --git a/call_for_price_website/views/call_for_price_views.xml b/call_for_price_website/views/call_for_price_views.xml new file mode 100644 index 000000000..a91f31a8e --- /dev/null +++ b/call_for_price_website/views/call_for_price_views.xml @@ -0,0 +1,59 @@ + + + + + call.price.view.tree + call.price + + + + + + + + + + + + + call.price.view.form + call.price + +
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + + Call For Price + call.price + tree,form + + + +
\ No newline at end of file diff --git a/call_for_price_website/views/compare_hide_price_template.xml b/call_for_price_website/views/compare_hide_price_template.xml new file mode 100644 index 000000000..6e499c07e --- /dev/null +++ b/call_for_price_website/views/compare_hide_price_template.xml @@ -0,0 +1,59 @@ + + + + + + + \ No newline at end of file diff --git a/call_for_price_website/views/product_template_views.xml b/call_for_price_website/views/product_template_views.xml new file mode 100644 index 000000000..0447b7a59 --- /dev/null +++ b/call_for_price_website/views/product_template_views.xml @@ -0,0 +1,14 @@ + + + + + product.template.view.form.inherit.call.for.price.website + product.template + + + + + + + + diff --git a/call_for_price_website/views/shop_hide_call_price_template.xml b/call_for_price_website/views/shop_hide_call_price_template.xml new file mode 100644 index 000000000..a93e9d082 --- /dev/null +++ b/call_for_price_website/views/shop_hide_call_price_template.xml @@ -0,0 +1,176 @@ + + + + + + + + diff --git a/call_for_price_website/views/wishlist_hide_price_template.xml b/call_for_price_website/views/wishlist_hide_price_template.xml new file mode 100644 index 000000000..837211c35 --- /dev/null +++ b/call_for_price_website/views/wishlist_hide_price_template.xml @@ -0,0 +1,38 @@ + + + + + \ No newline at end of file