[fix] [minor] [website]
diff --git a/portal/utils.py b/portal/utils.py
index 8f42d9b..f72c01f 100644
--- a/portal/utils.py
+++ b/portal/utils.py
@@ -68,4 +68,5 @@
# 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)
\ No newline at end of file
+ mail=None, status=status)
+
\ No newline at end of file
diff --git a/setup/doctype/item_group/templates/generators/item_group.html b/setup/doctype/item_group/templates/generators/item_group.html
index 22570d1..48db596 100644
--- a/setup/doctype/item_group/templates/generators/item_group.html
+++ b/setup/doctype/item_group/templates/generators/item_group.html
@@ -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>
diff --git a/stock/doctype/item/templates/generators/item.html b/stock/doctype/item/templates/generators/item.html
index d855479..7056068 100644
--- a/stock/doctype/item/templates/generators/item.html
+++ b/stock/doctype/item/templates/generators/item.html
@@ -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"
diff --git a/stock/doctype/item/templates/includes/product_page.js b/stock/doctype/item/templates/includes/product_page.js
index 44b7379..6caa71d 100644
--- a/stock/doctype/item/templates/includes/product_page.js
+++ b/stock/doctype/item/templates/includes/product_page.js
@@ -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({
diff --git a/stock/doctype/item/templates/pages/__init__.py b/stock/doctype/item/templates/pages/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/stock/doctype/item/templates/pages/__init__.py
diff --git a/utilities/demo/demo_control_panel.py b/utilities/demo/demo_control_panel.py
index a1113ae..1f381d5 100644
--- a/utilities/demo/demo_control_panel.py
+++ b/utilities/demo/demo_control_panel.py
@@ -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"
- })
+ })
\ No newline at end of file