feat: shopping portal changes
This commit is contained in:
parent
923af36979
commit
988ea8d61d
@ -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:
|
||||||
|
@ -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" href="/all-products">
|
||||||
|
{{ _("Add More") }}
|
||||||
|
</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") }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user