| # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. |
| # License: GNU General Public License v3. See license.txt |
| from webnotes.utils import cint |
| def get_website_settings(context): |
| cart_enabled = cint(webnotes.conn.get_default("shopping_cart_enabled")) |
| post_login += [{"label": "Cart", "url": "cart", "icon": "icon-shopping-cart", "class": "cart-count"}, |
| {"label": "Profile", "url": "profile", "icon": "icon-user"}, |
| {"label": "Addresses", "url": "addresses", "icon": "icon-map-marker"}, |
| {"label": "My Orders", "url": "orders", "icon": "icon-list"}, |
| {"label": "My Tickets", "url": "tickets", "icon": "icon-tags"}, |
| {"label": "Invoices", "url": "invoices", "icon": "icon-file-text"}, |
| {"label": "Shipments", "url": "shipments", "icon": "icon-truck"}, |
| "shopping_cart_enabled": cart_enabled, |
| "post_login": post_login + context.get("post_login", []) |