feat: shopping portal changes

This commit is contained in:
Anupam 2021-01-22 10:45:34 +05:30
parent 923af36979
commit 988ea8d61d
2 changed files with 10 additions and 0 deletions

View File

@ -180,6 +180,13 @@ def create_lead_for_item_inquiry(lead, subject, message):
lead_doc.update(lead)
lead_doc.set('lead_owner', '')
if not frappe.db.exists('Lead Source', 'Product Inquiry'):
frappe.get_doc({
'doctype': 'Lead Source',
'source_name' : 'Product Inquiry'
}).insert(ignore_permissions=True)
lead_doc.set('source', 'Product Inquiry')
try:
lead_doc.save(ignore_permissions=True)
except frappe.exceptions.DuplicateEntryError:

View File

@ -47,6 +47,9 @@
{% if doc.items %}
<div class="place-order-container">
<a class="btn btn-primary-light" href="/all-products">
{{ _("Add More") }}
</a>
{% if cart_settings.enable_checkout %}
<button class="btn btn-primary btn-place-order" type="button">
{{ _("Place Order") }}