[fix] [minor] [website]
This commit is contained in:
parent
ad0b05060a
commit
619ed5e949
@ -68,4 +68,5 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
|
||||
# make lead / communication
|
||||
from selling.doctype.lead.get_leads import add_sales_communication
|
||||
add_sales_communication(subject or "Website Query", message, sender, sender,
|
||||
mail=None, status=status)
|
||||
mail=None, status=status)
|
||||
|
@ -5,7 +5,7 @@
|
||||
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
|
||||
<div class="col-md-12">
|
||||
{% if slideshow %}<!-- slideshow -->
|
||||
{% include "lib/website/templates/includes/slideshow.html" %}
|
||||
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
|
||||
{% endif %}
|
||||
{% if description %}<!-- description -->
|
||||
<div>{{ description or ""}}</div>
|
||||
@ -32,10 +32,10 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if (items|length)==100 %}
|
||||
<div class="alert info">Showing top 100 items.</div>
|
||||
<div class="alert alert-info info">Showing top 100 items.</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="alert">No items listed.</div>
|
||||
<div class="alert alert-warning">No items listed.</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{% if slideshow %}
|
||||
{% include "lib/website/templates/includes/html/slideshow.html" %}
|
||||
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
|
||||
{% else %}
|
||||
{% if website_image %}
|
||||
<image itemprop="image" class="item-main-image"
|
||||
|
@ -2,7 +2,7 @@
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
$(document).ready(function() {
|
||||
var item_code = $('[itemscope] [itemprop="name"]').text().trim();
|
||||
var item_code = $('[itemscope] [itemprop="productID"]').text().trim();
|
||||
var qty = 0;
|
||||
|
||||
wn.call({
|
||||
|
0
stock/doctype/item/templates/pages/__init__.py
Normal file
0
stock/doctype/item/templates/pages/__init__.py
Normal file
@ -1,13 +1,13 @@
|
||||
|
||||
def on_login(self):
|
||||
from webnotes.utils import validate_email_add
|
||||
import conf
|
||||
if hasattr(conf, "demo_notify_url"):
|
||||
import conf
|
||||
if hasattr(conf, "demo_notify_url"):
|
||||
if webnotes.form_dict.lead_email and validate_email_add(webnotes.form_dict.lead_email):
|
||||
import requests
|
||||
response = requests.post(conf.demo_notify_url, data={
|
||||
"cmd":"selling.utils.contact.send_message",
|
||||
"cmd":"portal.utils.send_message",
|
||||
"subject":"Logged into Demo",
|
||||
"sender": webnotes.form_dict.lead_email,
|
||||
"message": "via demo.erpnext.com"
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user