@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2008-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
|||
# Author: Treesa Maria Jude(<https://www.cybrosys.com>) |
|||
# 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 <https://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
@ -0,0 +1,46 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
############################################################################## |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2014-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
|||
# Author: Treesa Maria Jude(<https://www.cybrosys.com>) |
|||
# 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 <https://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
{ |
|||
'name': 'Stock Level In E-commerce', |
|||
'version': '9.0.1.0.0', |
|||
'summary': 'Out of Stock/Available Stock Indication In E-commerce', |
|||
'description': 'This module indicate stock quantity of the product to e-commerce', |
|||
'category': 'eCommerce', |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.cybrosys.com", |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'depends': [ |
|||
'base', |
|||
'website_sale', |
|||
], |
|||
'data': [ |
|||
'views/templates_extend.xml', |
|||
], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': True, |
|||
} |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 223 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 270 KiB |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,96 @@ |
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Stock Notification In E-commerce </h2> |
|||
<h3 class="oe_slogan">Out of Stock/Available Stock Indication In E-commerce</h3> |
|||
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_picture"> |
|||
<h2 class="oe_slogan">Overview</h2> |
|||
<p class="oe_mt32"> |
|||
This module allows to get the product stock information to odoo website sale/e-commerce.This |
|||
E-commerce App also displays a custom message Available/Out of Stock |
|||
and the stock quantity for each product based on their Stock in the |
|||
inventory. Also disables/hides the cart button for the products which are out of stock. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Product On Hand At Backend</h2> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<div class="oe_row_img oe_centered"> |
|||
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="ec4.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Stock Indication In E-Commerce</h2> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<div class="oe_row_img oe_centered"> |
|||
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="ec1.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container "> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Add to Cart Button</h2> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<p>Disabled : When Product is Out of Stock</p> |
|||
<div class="oe_row_img oe_centered"> |
|||
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="ec5.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<p>Enabled : When Product is Available</p> |
|||
<div class="oe_row_img oe_centered"> |
|||
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="ec3.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
|||
<div class="oe_slogan" style="margin-top:10px !important;"> |
|||
<div> |
|||
<a class="btn btn-primary btn-lg mt8" |
|||
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i |
|||
class="fa fa-envelope"></i> Email </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://www.cybrosys.com/contact/"><i |
|||
class="fa fa-phone"></i> Contact Us </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i |
|||
class="fa fa-check-square"></i> Request Customization </a> |
|||
</div> |
|||
<br> |
|||
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
|||
<div> |
|||
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> |
|||
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> |
|||
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> |
|||
</div> |
|||
</div> |
|||
</section> |
@ -0,0 +1,74 @@ |
|||
@charset "utf-8"; |
|||
|
|||
.text-stock-value-not { |
|||
color: rgb(226, 0, 0); |
|||
font-size: small; |
|||
font-family: fantasy; |
|||
font-style: italic; |
|||
} |
|||
.text-stock-value { |
|||
color: rgb(0, 88, 220); |
|||
font-size: small; |
|||
font-family: fantasy; |
|||
font-style: italic; |
|||
} |
|||
|
|||
.special-ribbon{ |
|||
display: block; |
|||
width: 85px; |
|||
height: 88px; |
|||
z-index: 5; |
|||
overflow: hidden; |
|||
position: absolute; |
|||
top: 0; |
|||
right: 0; |
|||
} |
|||
|
|||
.special-ribbon-red{ |
|||
display: block; |
|||
width: 85px; |
|||
height: 88px; |
|||
z-index: 5; |
|||
overflow: hidden; |
|||
position: absolute; |
|||
top: 0; |
|||
right: 0; |
|||
} |
|||
|
|||
.special-ribbon-banner-red { |
|||
|
|||
font: bold 14px Sans-Serif; |
|||
color: white; |
|||
text-align: center; |
|||
/* -webkit-transform: rotate(320deg); */ |
|||
-moz-transform: rotate(45deg); |
|||
-ms-transform: rotate(45deg); |
|||
-o-transform: rotate(45deg); |
|||
position: relative; |
|||
padding: 6px 0; |
|||
left: 0px; |
|||
top: 0px; |
|||
width: 109px; |
|||
cursor: default; |
|||
height: 28px; |
|||
float: left; |
|||
background-color: #a94442; |
|||
} |
|||
|
|||
.special-ribbon-banner { |
|||
font: bold 14px Sans-Serif; |
|||
color: white; |
|||
text-align: center; |
|||
-webkit-transform: rotate(0deg); |
|||
-moz-transform: rotate(-53deg); |
|||
-ms-transform: rotate(45deg); |
|||
-o-transform: rotate(45deg); |
|||
position: relative; |
|||
padding: 8px 0; |
|||
left: 1px; |
|||
top: 0px; |
|||
width: 141px; |
|||
cursor: default; |
|||
height: 31px; |
|||
float: left; |
|||
background-color: #004c8e;} |
@ -0,0 +1,74 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<template id="assets_frontend" inherit_id="website.assets_frontend" name="Shop"> |
|||
<xpath expr="." position="inside"> |
|||
<link rel='stylesheet' href='/ecommerce_stock/static/src/css/ribbon.css'/></xpath></template> |
|||
|
|||
<template id="available_stock" inherit_id="website_sale.products_item" name="Products item"> |
|||
<xpath expr="//div[@class='ribbon-wrapper']" position="before"> |
|||
<t t-if="product.sudo().qty_available > 0"> |
|||
<div class="special-ribbon special-ribbon-banner "> |
|||
<strong>Available</strong></div> |
|||
</t> |
|||
<t t-if="product.sudo().qty_available <= 0"> |
|||
<div class="special-ribbon-red special-ribbon-banner-red "> |
|||
<strong>Out of Stock</strong></div></t> |
|||
</xpath> |
|||
<xpath expr="//a[@itemprop='name']" position="after"> |
|||
|
|||
<t t-if="product.sudo().qty_available > 0"> |
|||
<div class="text-stock-value">Stock Avialable:<a class="text-stock-value" itemprop="qty" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))" t-esc="product.sudo().qty_available"/> |
|||
</div></t> |
|||
<t t-if="product.sudo().qty_available <= 0"> |
|||
<div class="text-stock-value-not">Stock Avialable:<a class="text-stock-value-not" itemprop="qty" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))" t-esc="product.sudo().qty_available"/> |
|||
</div> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<template id="available_stock_product" inherit_id="website_sale.product" name="Product"> |
|||
<xpath expr="//div[@class='js_product']" position="replace"> |
|||
<t t-if="product.sudo().qty_available > 0"> |
|||
<div class="js_product"> |
|||
<t t-placeholder="select"> |
|||
<input type="hidden" class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/> |
|||
<t t-call="website_sale.variants"> |
|||
<t t-set="ul_class" t-value="'nav-stacked'"/> |
|||
</t> |
|||
</t> |
|||
|
|||
<t t-call="website_sale.product_price"/> |
|||
<p t-if="len(product.product_variant_ids) > 1" class="css_not_available_msg bg-danger" style="padding: 15px;">Product not available</p> |
|||
|
|||
<div class="text-stock-value">Stock Avialable : <a class="text-stock-value" itemprop="qty" t-esc="product.sudo().qty_available"/> |
|||
</div> |
|||
|
|||
|
|||
<a id="add_to_cart" class="btn btn-primary btn-lg mt8 js_check_product a-submit" href="#">Add to Cart</a> |
|||
</div> |
|||
</t> |
|||
<t t-if="product.sudo().qty_available <= 0"> |
|||
<div class="js_product"> |
|||
<t t-placeholder="select"> |
|||
<input type="hidden" class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/> |
|||
<t t-call="website_sale.variants"> |
|||
<t t-set="ul_class" t-value="'nav-stacked'"/> |
|||
</t> |
|||
</t> |
|||
|
|||
<t t-call="website_sale.product_price"/> |
|||
<p t-if="len(product.product_variant_ids) > 1" class="css_not_available_msg bg-danger" style="padding: 15px;">Product not available</p> |
|||
|
|||
<div class="text-stock-value-not">Stock Avialable : <a class="text-stock-value-not" itemprop="qty" t-esc="product.sudo().qty_available"/> |
|||
</div> |
|||
<div class="special-ribbon-red special-ribbon-banner-red "> |
|||
<strong>Out of Stock</strong></div> |
|||
|
|||
</div> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</openerp> |
|||
|