feat: shopping portal changes (#24445)
* feat: shopping portal changes * fix: review changes * review changes
This commit is contained in:
parent
26f6fa326c
commit
0d9a8ae4d2
@ -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 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") }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user