I have created an item including the stock entry and price list.
In the webshop settings, I have checked “Show Price”, “Enable Shopping Cart”, "
Show Price in Quotation" and disabled “Enable Checkout”
When I view the product list, I can see the price for the product, however when I request for quote, the price disappears in the shopping cart.
There was an issue with the user’s customer profile. Now its working.
I have another query regarding the shopping cart, when I click on the request quote, there is an error: Uncaught Server Exception and the product stays in the shopping cart. But a quotation is generated in the system.
Traceback (most recent call last):
File “apps/frappe/frappe/website/serve.py”, line 20, in get_response
response = renderer_instance.render()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/utils.py”, line 523, in cache_html_decorator
html = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 95, in get_html
self.update_context()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 163, in update_context
data = self.run_pymodule_method(“get_context”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 223, in run_pymodule_method
return method(self.context)
^^^^^^^^^^^^^^^^^^^^
File “apps/webshop/webshop/templates/pages/order.py”, line 43, in get_context
“Customer”, context.doc.customer, “loyalty_program”
^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘Quotation’ object has no attribute ‘customer’