feat: shopping portal changes (#24445)

* feat: shopping portal changes

* fix: review changes

* review changes
This commit is contained in:
Anupam Kumar 2021-01-28 17:32:57 +05:30 committed by GitHub
parent 26f6fa326c
commit 0d9a8ae4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.update(lead)
lead_doc.set('lead_owner', '') 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: try:
lead_doc.save(ignore_permissions=True) lead_doc.save(ignore_permissions=True)
except frappe.exceptions.DuplicateEntryError: except frappe.exceptions.DuplicateEntryError:

View File

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