From d3bcfb29ebf8e4907780da599e3f0b9083085408 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 4 Jan 2024 02:33:20 +0000 Subject: [PATCH 01/43] Updating hook for e_commerce --- webshop/hooks.py | 3 ++ webshop/webshop/api.py | 41 ++++++++++++++++++- .../doctype/override_doctype/item_group.py | 16 +++++++- 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/webshop/hooks.py b/webshop/hooks.py index 722069d327..e1ea304a9e 100644 --- a/webshop/hooks.py +++ b/webshop/hooks.py @@ -38,6 +38,9 @@ "Homepage": "public/js/override/homepage.js", } + + + doc_events = { "Item": { "on_update": [ diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index d7399cef52..0a324b381c 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -10,7 +10,10 @@ from webshop.webshop.product_data_engine.filters import ProductFiltersBuilder from webshop.webshop.product_data_engine.query import ProductQuery from webshop.webshop.doctype.override_doctype.item_group import get_child_groups_for_website - +from webshop.webshop.doctype.override_doctype.item_group import get_main_groups_for_website +from webshop.webshop.shopping_cart.cart import get_party, get_address_docs +from webshop.webshop.doctype.wishlist.wishlist import add_to_wishlist +from webshop.webshop.doctype.wishlist.wishlist import remove_from_wishlist @frappe.whitelist(allow_guest=True) def get_product_filter_data(query_args=None): @@ -87,3 +90,39 @@ def get_product_filter_data(query_args=None): @frappe.whitelist(allow_guest=True) def get_guest_redirect_on_action(): return frappe.db.get_single_value("Webshop Settings", "redirect_on_action") + + +@frappe.whitelist(allow_guest=True) +def get_main_group(): + return get_main_groups_for_website() + + +@frappe.whitelist() +def get_orders(): + party = get_party() + lp_record = frappe.get_all("Sales Invoice", filters={"customer": party.name}, fields=["name","status","base_total","company","customer_name","creation"]) + for invoice in lp_record: + items = frappe.get_all("Sales Invoice Item",filters={"parent": invoice["name"]},fields=["item_code", "item_name", "qty", "rate", "amount"]) + invoice["items"] = items + return lp_record + + +@frappe.whitelist() +def get_shipping_methods(): + party = get_party() + lp_record = frappe.get_all("Shipping Rule", filters={"custom_show_on_website": 1}, fields=["name","shipping_rule_type","shipping_amount"]) + return lp_record + + + + +@frappe.whitelist(allow_guest=True) +def edit_product_wish( + name: str = None, + wished: bool = None, +): + if wished: + add_to_wishlist(name) + else: + remove_from_wishlist(name) + diff --git a/webshop/webshop/doctype/override_doctype/item_group.py b/webshop/webshop/doctype/override_doctype/item_group.py index 9148564392..60ded8e591 100644 --- a/webshop/webshop/doctype/override_doctype/item_group.py +++ b/webshop/webshop/doctype/override_doctype/item_group.py @@ -149,4 +149,18 @@ def get_child_groups_for_website(item_group_name, immediate=False, include_self= if include_self: filters.update({"lft": [">=", item_group.lft], "rgt": ["<=", item_group.rgt]}) - return frappe.get_all("Item Group", filters=filters, fields=["name", "route"], order_by="name") \ No newline at end of file + return frappe.get_all("Item Group", filters=filters, fields=["name", "route"], order_by="name") + + +def get_children(group_name): + children = frappe.get_all("Item Group", filters={"parent_item_group": group_name,"show_in_website":"1"}, fields=["name"], order_by="name") + for child in children: + child['children'] = get_children(child['name']) + return children + + +def get_main_groups_for_website(): + main_groups = frappe.get_all("Item Group", filters={"parent_item_group": "All Item Groups","show_in_website":"1"}, fields=["name"], order_by="name") + for group in main_groups: + group['children'] = get_children(group['name']) + return main_groups From 9a32f79881cb32183c35274cf6dedda3445ae8d8 Mon Sep 17 00:00:00 2001 From: Anatholyb1 Date: Sat, 6 Jan 2024 17:22:00 +0700 Subject: [PATCH 02/43] whitelist get shipping rules --- webshop/webshop/shopping_cart/cart.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 3196c9698a..5cd310faf8 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -705,6 +705,7 @@ def get_applicable_shipping_rules(party=None, quotation=None): return [[rule, rule] for rule in shipping_rules] +@frappe.whitelist() def get_shipping_rules(quotation=None, cart_settings=None): if not quotation: quotation = _get_cart_quotation() From 6caa0da6a07420d0ec556ec03c2958536bd12ab7 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Mon, 8 Jan 2024 08:50:57 +0000 Subject: [PATCH 03/43] fix: ensure all arguments passed to `after_rename` hook are accepted (#50) --- .../webshop/crud_events/item/invalidate_item_variants_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webshop/webshop/crud_events/item/invalidate_item_variants_cache.py b/webshop/webshop/crud_events/item/invalidate_item_variants_cache.py index f783bf7099..e9f8cd0794 100644 --- a/webshop/webshop/crud_events/item/invalidate_item_variants_cache.py +++ b/webshop/webshop/crud_events/item/invalidate_item_variants_cache.py @@ -4,7 +4,7 @@ ) -def execute(doc, method=None): +def execute(doc, *args): """ Rebuild ItemVariantsCacheManager via Item or Website Item. """ From f64839261d1bcb1a3bb1a69cb4269bd9fcafd16f Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 16 Jan 2024 11:30:40 +0500 Subject: [PATCH 04/43] Update query.py --- webshop/webshop/product_data_engine/query.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webshop/webshop/product_data_engine/query.py b/webshop/webshop/product_data_engine/query.py index 4fb6c60543..c556135ee5 100644 --- a/webshop/webshop/product_data_engine/query.py +++ b/webshop/webshop/product_data_engine/query.py @@ -119,6 +119,14 @@ def query_items(self, start=0): limit_start=start, order_by="ranking desc", ) + + items_with_values = [] + for item in items: + item_doc = frappe.get_doc("Website Item", item.name) + custom_images = item_doc.get("custom_multipleimges", []) + file_urls = [image.get("file_url") for image in custom_images] + item["slider_images"] = file_urls + items_with_values.append(item) return items, count From 166786752bd4bce856b4b9ad095f2ebd52fa3ba1 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 16 Jan 2024 12:05:06 +0500 Subject: [PATCH 05/43] Update webshop_settings.json --- .../doctype/webshop_settings/webshop_settings.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.json b/webshop/webshop/doctype/webshop_settings/webshop_settings.json index 1b65f536a9..18f7015f39 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.json +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.json @@ -6,6 +6,7 @@ "engine": "InnoDB", "field_order": [ "products_per_page", + "default_product_image", "filter_categories_section", "enable_field_filters", "filter_fields", @@ -366,12 +367,17 @@ "fieldtype": "Check", "label": "Enable Redisearch", "read_only_depends_on": "eval:!doc.is_redisearch_loaded" + }, + { + "fieldname": "default_product_image", + "fieldtype": "Attach Image", + "label": "Default Product Image" } ], "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2022-04-01 18:35:56.106756", + "modified": "2024-01-16 14:01:38.301987", "modified_by": "Administrator", "module": "Webshop", "name": "Webshop Settings", @@ -392,4 +398,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} \ No newline at end of file +} From abaccc30a8956bc29d4b2f59caa4ab85fdcfac85 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 17 Jan 2024 12:04:30 +0530 Subject: [PATCH 06/43] fix: create portal user for customer from shopping cart (#58) --- .github/helper/install.sh | 10 ++++------ ...{site_config.json => site_config_mariadb.json} | 2 +- .github/workflows/ci.yml | 15 ++++++++------- webshop/setup/install.py | 2 +- webshop/webshop/shopping_cart/cart.py | 2 ++ 5 files changed, 16 insertions(+), 15 deletions(-) rename .github/helper/{site_config.json => site_config_mariadb.json} (99%) diff --git a/.github/helper/install.sh b/.github/helper/install.sh index 557cbac2ab..e648669b02 100644 --- a/.github/helper/install.sh +++ b/.github/helper/install.sh @@ -14,7 +14,7 @@ git clone https://github.com/frappe/frappe --branch "$BRANCH_TO_CLONE" --depth 1 bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench mkdir ~/frappe-bench/sites/test_site -cp -r "${GITHUB_WORKSPACE}/.github/helper/site_config.json" ~/frappe-bench/sites/test_site/ +cp -r "${GITHUB_WORKSPACE}/.github/helper/site_config_mariadb.json" ~/frappe-bench/sites/test_site/ mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL character_set_server = 'utf8mb4'" mariadb --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'" @@ -42,13 +42,11 @@ sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile bench get-app payments --branch ${BRANCH_TO_CLONE%"-hotfix"} bench get-app https://github.com/frappe/erpnext --branch "$BRANCH_TO_CLONE" --resolve-deps +bench get-app webshop "${GITHUB_WORKSPACE}" bench setup requirements --dev -bench start &> bench_run_logs.txt & +bench start &>> ~/frappe-bench/bench_start.log & CI=Yes bench build --app frappe & bench --site test_site reinstall --yes -bench get-app webshop "${GITHUB_WORKSPACE}" -bench --site test_site install-app webshop -bench --site test_site set-config allow_tests true -bench setup requirements --dev \ No newline at end of file +bench --verbose --site test_site install-app webshop \ No newline at end of file diff --git a/.github/helper/site_config.json b/.github/helper/site_config_mariadb.json similarity index 99% rename from .github/helper/site_config.json rename to .github/helper/site_config_mariadb.json index 21fdbf31c8..ff763b82e1 100644 --- a/.github/helper/site_config.json +++ b/.github/helper/site_config_mariadb.json @@ -13,4 +13,4 @@ "host_name": "http://test_site:8000", "install_apps": ["payments", "erpnext"], "throttle_user_limit": 100 -} \ No newline at end of file + } \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88e3623897..18bbe9ed4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ on: # Run everday at midnight UTC / 5:30 IST - cron: "0 0 * * *" env: - _BRANCH: ${{ github.base_ref || github.ref_name }} + WEBSHOP_BRANCH: ${{ github.base_ref || github.ref_name }} concurrency: group: develop-${{ github.event.number }} @@ -49,7 +49,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 20 check-latest: true - name: Add to Hosts @@ -91,17 +91,18 @@ jobs: run: | bash ${GITHUB_WORKSPACE}/.github/helper/install.sh env: - BRANCH_TO_CLONE: ${{ env._BRANCH }} + BRANCH_TO_CLONE: ${{ env.WEBSHOP_BRANCH }} - name: Run Tests run: cd ~/frappe-bench/ && bench --site test_site run-tests --app webshop --coverage env: TYPE: server + CI_BUILD_ID: ${{ github.run_id }} + ORCHESTRATOR_URL: http://test-orchestrator.frappe.io - name: Upload coverage data - uses: codecov/codecov-action@v2 + uses: actions/upload-artifact@v3 with: - fail_ci_if_error: true - files: /home/runner/frappe-bench/sites/coverage.xml - verbose: true \ No newline at end of file + name: coverage-${{ matrix.container }} + path: /home/runner/frappe-bench/sites/coverage.xml \ No newline at end of file diff --git a/webshop/setup/install.py b/webshop/setup/install.py index 825ca40497..06b251291a 100644 --- a/webshop/setup/install.py +++ b/webshop/setup/install.py @@ -233,7 +233,7 @@ def run_patches(): try: for patch in patches: - frappe.get_attr(f"webshop.patches.after_install.{patch}.execute")() + frappe.get_attr(f"webshop.patches.{patch}.execute")() finally: frappe.flags.in_patch = False diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 3196c9698a..109d1a40f3 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -573,6 +573,8 @@ def get_party(user=None): } ) + customer.append("portal_users", {"user": user}) + if debtors_account: customer.update( { From 213acba98d45b5c5864b5ced60df22ae07832422 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Fri, 19 Jan 2024 10:05:33 +0500 Subject: [PATCH 07/43] Update api.py --- webshop/webshop/api.py | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 0a324b381c..332e04d746 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -14,6 +14,12 @@ from webshop.webshop.shopping_cart.cart import get_party, get_address_docs from webshop.webshop.doctype.wishlist.wishlist import add_to_wishlist from webshop.webshop.doctype.wishlist.wishlist import remove_from_wishlist +from frappe import _ +from frappe.utils.password import update_password as _update_password +from frappe.website.utils import is_signup_disabled +from frappe.utils import ( + escape_html, +) @frappe.whitelist(allow_guest=True) def get_product_filter_data(query_args=None): @@ -126,3 +132,57 @@ def edit_product_wish( else: remove_from_wishlist(name) + +@frappe.whitelist(allow_guest=True) +def sign_up(email: str, full_name: str, redirect_to: str) -> tuple[int, str]: + if is_signup_disabled(): + frappe.throw(_("Sign Up is disabled"), title=_("Not Allowed")) + + user = frappe.db.get("User", {"email": email}) + if user: + if user.enabled: + return 0, _("Already Registered") + else: + return 0, _("Registered but disabled") + else: + if frappe.db.get_creation_count("User", 60) > 300: + frappe.respond_as_web_page( + _("Temporarily Disabled"), + _( + "Too many users signed up recently, so the registration is disabled. Please try back in an hour" + ), + http_status_code=429, + ) + + from frappe.utils import random_string + + user = frappe.get_doc( + { + "doctype": "User", + "email": email, + "first_name": escape_html(full_name), + "enabled": 1, + "new_password": random_string(10), + "user_type": "Website User", + } + ) + user.flags.ignore_permissions = True + user.flags.ignore_password_policy = True + user.flags.is_verified = 1 + user.insert() + + default_role = frappe.db.get_single_value("Portal Settings", "default_role") + if default_role: + user.add_roles(default_role) + + + + api_secret = frappe.generate_hash(length=15) + if not user.api_key: + api_key = frappe.generate_hash(length=15) + user.api_key = api_key + user.api_secret = api_secret + user.save() + user.reload() + token = f"{user.api_key}:{user.get_password('api_secret')}" + return {"message":'Logged In',"token":token} From 18109191e101b8fca5b4062e0e3efb87cd841487 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Fri, 19 Jan 2024 10:09:31 +0500 Subject: [PATCH 08/43] Update api.py --- webshop/webshop/api.py | 99 +++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 50 deletions(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 332e04d746..5d70f7703f 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -135,54 +135,53 @@ def edit_product_wish( @frappe.whitelist(allow_guest=True) def sign_up(email: str, full_name: str, redirect_to: str) -> tuple[int, str]: - if is_signup_disabled(): - frappe.throw(_("Sign Up is disabled"), title=_("Not Allowed")) - - user = frappe.db.get("User", {"email": email}) - if user: - if user.enabled: - return 0, _("Already Registered") - else: - return 0, _("Registered but disabled") - else: - if frappe.db.get_creation_count("User", 60) > 300: - frappe.respond_as_web_page( - _("Temporarily Disabled"), - _( - "Too many users signed up recently, so the registration is disabled. Please try back in an hour" - ), - http_status_code=429, - ) - - from frappe.utils import random_string - - user = frappe.get_doc( - { - "doctype": "User", - "email": email, - "first_name": escape_html(full_name), - "enabled": 1, - "new_password": random_string(10), - "user_type": "Website User", - } - ) - user.flags.ignore_permissions = True - user.flags.ignore_password_policy = True - user.flags.is_verified = 1 - user.insert() - + if is_signup_disabled(): + frappe.throw(_("Sign Up is disabled"), title=_("Not Allowed")) + + user = frappe.db.get("User", {"email": email}) + if user: + if user.enabled: + return 0, _("Already Registered") + else: + return 0, _("Registered but disabled") + else: + if frappe.db.get_creation_count("User", 60) > 300: + frappe.respond_as_web_page( + _("Temporarily Disabled"), + _( + "Too many users signed up recently, so the registration is disabled. Please try back in an hour" + ), + http_status_code=429, + ) + + from frappe.utils import random_string + + user = frappe.get_doc( + { + "doctype": "User", + "email": email, + "first_name": escape_html(full_name), + "enabled": 1, + "new_password": random_string(10), + "user_type": "Website User", + } + ) + user.flags.ignore_permissions = True + user.flags.ignore_password_policy = True + user.flags.is_verified = 1 + user.insert() + default_role = frappe.db.get_single_value("Portal Settings", "default_role") - if default_role: - user.add_roles(default_role) - - - - api_secret = frappe.generate_hash(length=15) - if not user.api_key: - api_key = frappe.generate_hash(length=15) - user.api_key = api_key - user.api_secret = api_secret - user.save() - user.reload() - token = f"{user.api_key}:{user.get_password('api_secret')}" - return {"message":'Logged In',"token":token} + if default_role: + user.add_roles(default_role) + + api_secret = frappe.generate_hash(length=15) + if not user.api_key: + api_key = frappe.generate_hash(length=15) + user.api_key = api_key + user.api_secret = api_secret + user.save() + user.reload() + + token = f"{user.api_key}:{user.get_password('api_secret')}" + return {"message": 'Logged In', "token": token} From 81e5af7a3426182a8a90a08fad161646b7bd8c21 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 23 Jan 2024 09:26:46 +0500 Subject: [PATCH 09/43] update cart --- webshop/webshop/api.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 5d70f7703f..b8c340d4bb 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -20,6 +20,7 @@ from frappe.utils import ( escape_html, ) +from webshop.webshop.shopping_cart.cart import _get_cart_quotation @frappe.whitelist(allow_guest=True) def get_product_filter_data(query_args=None): @@ -185,3 +186,19 @@ def sign_up(email: str, full_name: str, redirect_to: str) -> tuple[int, str]: token = f"{user.api_key}:{user.get_password('api_secret')}" return {"message": 'Logged In', "token": token} + + +@frappe.whitelist() +def update_cart(cart): + quotation = _get_cart_quotation() + quotation.set("items", []) + + if cart: + for item_code, qty in cart.items(): + quotation.append("items", { + "item_code": item_code, + "qty": qty, + }) + quotation.save() + + return quotation From 432b350e97788ff043411f81a9927632951a7584 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 23 Jan 2024 09:30:48 +0500 Subject: [PATCH 10/43] Update api.py --- webshop/webshop/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index b8c340d4bb..908230cce2 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -135,7 +135,7 @@ def edit_product_wish( @frappe.whitelist(allow_guest=True) -def sign_up(email: str, full_name: str, redirect_to: str) -> tuple[int, str]: +def sign_up(email: str, full_name: str, redirect_to: str,password) -> tuple[int, str]: if is_signup_disabled(): frappe.throw(_("Sign Up is disabled"), title=_("Not Allowed")) @@ -163,7 +163,7 @@ def sign_up(email: str, full_name: str, redirect_to: str) -> tuple[int, str]: "email": email, "first_name": escape_html(full_name), "enabled": 1, - "new_password": random_string(10), + "new_password": password, "user_type": "Website User", } ) From e386171115e2b192684fed96204e37b22a50274e Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 23 Jan 2024 09:31:31 +0500 Subject: [PATCH 11/43] Update api.py --- webshop/webshop/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 908230cce2..5ac8372c0a 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -107,7 +107,7 @@ def get_main_group(): @frappe.whitelist() def get_orders(): party = get_party() - lp_record = frappe.get_all("Sales Invoice", filters={"customer": party.name}, fields=["name","status","base_total","company","customer_name","creation"]) + lp_record = frappe.get_all("Sales Invoice", filters={"customer": party.name}, fields=["name","status","base_total","company","customer_name","creation","address_display"]) for invoice in lp_record: items = frappe.get_all("Sales Invoice Item",filters={"parent": invoice["name"]},fields=["item_code", "item_name", "qty", "rate", "amount"]) invoice["items"] = items From 0235befa3bc533580742099d721e5fd815cbd0c1 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 23 Jan 2024 09:35:15 +0500 Subject: [PATCH 12/43] Update api.py --- webshop/webshop/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 5ac8372c0a..b0ea0e74c0 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -199,6 +199,6 @@ def update_cart(cart): "item_code": item_code, "qty": qty, }) - quotation.save() + quotation.save(ignore_permissions=True) return quotation From 5998775d3f52f27ab69c044bc3c3b37c99481b1f Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 23 Jan 2024 17:45:51 +0530 Subject: [PATCH 13/43] fix: customer login error (#60) --- webshop/webshop/utils/portal.py | 75 +++++++++++++++++---------------- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/webshop/webshop/utils/portal.py b/webshop/webshop/utils/portal.py index 42be1c3058..72fdfb08b6 100644 --- a/webshop/webshop/utils/portal.py +++ b/webshop/webshop/utils/portal.py @@ -10,53 +10,56 @@ def update_debtors_account(): - doc_type = debtors_account = None - user = frappe.session.user + doc_type = debtors_account = None + user = frappe.session.user - if frappe.db.get_value("User", user, "user_type") != "Website User": - return + if frappe.db.get_value("User", user, "user_type") != "Website User": + return - user_roles = frappe.get_roles() - portal_settings = frappe.get_single("Portal Settings") - default_role = portal_settings.default_role + user_roles = frappe.get_roles() + portal_settings = frappe.get_single("Portal Settings") + default_role = portal_settings.default_role - if default_role not in ["Customer", "Supplier"]: - return + if default_role not in ["Customer", "Supplier"]: + return - if portal_settings.default_role and portal_settings.default_role in user_roles: - doc_type = portal_settings.default_role + if portal_settings.default_role and portal_settings.default_role in user_roles: + doc_type = portal_settings.default_role - if not doc_type: - return + if not doc_type: + return - if not doc_type == "Customer": - return + if doc_type != "Customer": + return - party = frappe.get_doc(doc_type, user) or create_customer_or_supplier() + if frappe.db.exists(doc_type, user): + party = frappe.get_doc(doc_type, user) + else: + party = create_customer_or_supplier() - if not party: - return + if not party: + return - fullname = frappe.utils.get_fullname(user) - cart_settings = get_shopping_cart_settings() + fullname = frappe.utils.get_fullname(user) + cart_settings = get_shopping_cart_settings() - party.update( - { - "customer_name": fullname, - "customer_type": "Individual", - "customer_group": cart_settings.default_customer_group, - "territory": get_root_of("Territory"), - } - ) + party.update( + { + "customer_name": fullname, + "customer_type": "Individual", + "customer_group": cart_settings.default_customer_group, + "territory": get_root_of("Territory"), + } + ) - if cart_settings.enable_checkout: - debtors_account = get_debtors_account(cart_settings) + if cart_settings.enable_checkout: + debtors_account = get_debtors_account(cart_settings) - if not debtors_account: - return party + if not debtors_account: + return party - party.update( - {"accounts": [{"company": cart_settings.company, "account": debtors_account}]} - ) + party.update( + {"accounts": [{"company": cart_settings.company, "account": debtors_account}]} + ) - return party + return party From 0637e0a82ec393d2d86f2a836354377efb82b62a Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 24 Jan 2024 11:50:31 +0530 Subject: [PATCH 14/43] fix: not able to change address through portal (#63) --- .../templates/includes/cart/address_card.html | 79 ++++++++++++++++++- webshop/templates/pages/cart.js | 73 ----------------- 2 files changed, 78 insertions(+), 74 deletions(-) diff --git a/webshop/templates/includes/cart/address_card.html b/webshop/templates/includes/cart/address_card.html index 830ed649f5..fdcf0ac7c0 100644 --- a/webshop/templates/includes/cart/address_card.html +++ b/webshop/templates/includes/cart/address_card.html @@ -7,7 +7,7 @@
{{ address.display }}
- + @@ -15,3 +15,80 @@ + + + \ No newline at end of file diff --git a/webshop/templates/pages/cart.js b/webshop/templates/pages/cart.js index 83f734d29d..9e41add538 100644 --- a/webshop/templates/pages/cart.js +++ b/webshop/templates/pages/cart.js @@ -12,7 +12,6 @@ $.extend(shopping_cart, { }, bind_events: function() { - shopping_cart.bind_address_picker_dialog(); shopping_cart.bind_place_order(); shopping_cart.bind_request_quotation(); shopping_cart.bind_change_qty(); @@ -21,78 +20,6 @@ $.extend(shopping_cart, { shopping_cart.bind_coupon_code(); }, - bind_address_picker_dialog: function() { - const d = this.get_update_address_dialog(); - this.parent.find('.btn-change-address').on('click', (e) => { - const type = $(e.currentTarget).parents('.address-container').attr('data-address-type'); - $(d.get_field('address_picker').wrapper).html( - this.get_address_template(type) - ); - d.show(); - }); - }, - - get_update_address_dialog() { - let d = new frappe.ui.Dialog({ - title: "Select Address", - fields: [{ - 'fieldtype': 'HTML', - 'fieldname': 'address_picker', - }], - primary_action_label: __('Set Address'), - primary_action: () => { - const $card = d.$wrapper.find('.address-card.active'); - const address_type = $card.closest('[data-address-type]').attr('data-address-type'); - const address_name = $card.closest('[data-address-name]').attr('data-address-name'); - frappe.call({ - type: "POST", - method: "webshop.webshop.shopping_cart.cart.update_cart_address", - freeze: true, - args: { - address_type, - address_name - }, - callback: function(r) { - d.hide(); - if (!r.exc) { - $(".cart-tax-items").html(r.message.total); - shopping_cart.parent.find( - `.address-container[data-address-type="${address_type}"]` - ).html(r.message.address); - } - } - }); - } - }); - - return d; - }, - - get_address_template(type) { - return { - shipping: `
-
- {% for address in shipping_addresses %} -
- {% include "templates/includes/cart/address_picker_card.html" %} -
- {% endfor %} -
-
`, - billing: `
-
- {% for address in billing_addresses %} -
- {% include "templates/includes/cart/address_picker_card.html" %} -
- {% endfor %} -
-
`, - }[type]; - }, - bind_place_order: function() { $(".btn-place-order").on("click", function() { shopping_cart.place_order(this); From 9cc48b3694c691af5842d4b792a2fe3a46076ff9 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 24 Jan 2024 22:47:11 +0530 Subject: [PATCH 15/43] fix: billing address not showing in the portal (#65) --- .../templates/includes/cart/address_card.html | 77 ------------ .../includes/cart/address_picker_card.html | 2 +- .../templates/includes/cart/cart_address.html | 114 +++++++++++++++--- 3 files changed, 96 insertions(+), 97 deletions(-) diff --git a/webshop/templates/includes/cart/address_card.html b/webshop/templates/includes/cart/address_card.html index fdcf0ac7c0..a80e6d83b4 100644 --- a/webshop/templates/includes/cart/address_card.html +++ b/webshop/templates/includes/cart/address_card.html @@ -15,80 +15,3 @@ - - - \ No newline at end of file diff --git a/webshop/templates/includes/cart/address_picker_card.html b/webshop/templates/includes/cart/address_picker_card.html index 646210e65f..dd9adad66f 100644 --- a/webshop/templates/includes/cart/address_picker_card.html +++ b/webshop/templates/includes/cart/address_picker_card.html @@ -7,6 +7,6 @@
{{ address.title }}

{{ address.display }}

- {{ _('Edit') }} + {{ _('Edit') }} diff --git a/webshop/templates/includes/cart/cart_address.html b/webshop/templates/includes/cart/cart_address.html index 80bbe80d47..e7065c4305 100644 --- a/webshop/templates/includes/cart/cart_address.html +++ b/webshop/templates/includes/cart/cart_address.html @@ -32,27 +32,27 @@ -{% if billing_addresses %} -
-
-
{{ _("Billing Address") }}
- -
-
- {% for address in billing_addresses %} - {% if doc.customer_address == address.name %} -
-
- {% include "templates/includes/cart/address_card.html" %} -
-
- {% endif %} - {% endfor %} +
+
+
{{ _("Billing Address") }}
+
-{% endif %} + +
+ {% for address in billing_addresses %} + {% if doc.customer_address == address.name %} +
+
+ {% include "templates/includes/cart/address_card.html" %} +
+
+ {% endif %} + {% endfor %} +
+ + + \ No newline at end of file From 2b6abdd9665a6f2123a24998065839f143bc8628 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 25 Jan 2024 11:37:10 +0530 Subject: [PATCH 16/43] fix: Item Tax template is not working for e-commerce (#67) --- webshop/templates/includes/order/order_taxes.html | 2 +- webshop/webshop/shopping_cart/cart.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/webshop/templates/includes/order/order_taxes.html b/webshop/templates/includes/order/order_taxes.html index 0060ab39cc..d7b9620fa0 100644 --- a/webshop/templates/includes/order/order_taxes.html +++ b/webshop/templates/includes/order/order_taxes.html @@ -19,7 +19,7 @@ {{ d.description }}
- {{ doc.get_formatted("net_total") }} + {{ d.get_formatted("base_tax_amount") }}
diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 109d1a40f3..a59c28e964 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -533,6 +533,7 @@ def set_taxes(quotation, cart_settings): # # # append taxes quotation.append_taxes_from_master() + quotation.append_taxes_from_item_tax_template() def get_party(user=None): From ea9ace32b532dba31e3f7cb42250d0d6b5372a9a Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Fri, 26 Jan 2024 08:00:19 +0500 Subject: [PATCH 17/43] update --- webshop/webshop/api.py | 39 +++++++++++++++++++++++---- webshop/webshop/shopping_cart/cart.py | 1 - 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index b0ea0e74c0..0630ec98a0 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -20,7 +20,7 @@ from frappe.utils import ( escape_html, ) -from webshop.webshop.shopping_cart.cart import _get_cart_quotation +from webshop.webshop.shopping_cart.cart import (_get_cart_quotation,apply_cart_settings,update_party) @frappe.whitelist(allow_guest=True) def get_product_filter_data(query_args=None): @@ -78,12 +78,15 @@ def get_product_filter_data(query_args=None): return {"exc": "Something went wrong!"} # discount filter data + filters = {} discounts = result["discounts"] if discounts: filter_engine = ProductFiltersBuilder() filters["discount_filters"] = filter_engine.get_discount_filters(discounts) + + return { "items": result["items"] or [], @@ -91,6 +94,7 @@ def get_product_filter_data(query_args=None): "settings": engine.settings, "sub_categories": sub_categories, "items_count": result["items_count"], + "total_items" : frappe.db.count('Website Item', {'published': '1'}) } @@ -107,7 +111,7 @@ def get_main_group(): @frappe.whitelist() def get_orders(): party = get_party() - lp_record = frappe.get_all("Sales Invoice", filters={"customer": party.name}, fields=["name","status","base_total","company","customer_name","creation","address_display"]) + lp_record = frappe.get_all("Sales Invoice", filters={"customer": party.name}, fields=["name","shipping_address_name","status","base_total","grand_total","company","customer_name","creation","address_display"]) for invoice in lp_record: items = frappe.get_all("Sales Invoice Item",filters={"parent": invoice["name"]},fields=["item_code", "item_name", "qty", "rate", "amount"]) invoice["items"] = items @@ -156,12 +160,24 @@ def sign_up(email: str, full_name: str, redirect_to: str,password) -> tuple[int, ) from frappe.utils import random_string + at_index = email.find("@") + username = '' + if at_index != -1: + username = email[:at_index] + + base_username = username + count = 1 + while frappe.db.get_value("User", {"username": username}): + count += 1 + username = f"{base_username}{count}" + user = frappe.get_doc( { "doctype": "User", "email": email, "first_name": escape_html(full_name), + "username": username, "enabled": 1, "new_password": password, "user_type": "Website User", @@ -199,6 +215,19 @@ def update_cart(cart): "item_code": item_code, "qty": qty, }) - quotation.save(ignore_permissions=True) - - return quotation + apply_cart_settings(quotation=quotation) + quotation.flags.ignore_permissions = True + quotation.save() + +@frappe.whitelist() +def update_profile(first_name=None, last_name=None, phone=None): + party = get_party() + user = frappe.get_doc("User", party.name) + if first_name is not None: + user.first_name = first_name + if last_name is not None: + user.last_name = last_name + if phone is not None: + user.phone = phone + user.flags.ignore_permissions = True + user.save() \ No newline at end of file diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 5cd310faf8..fb496bb8f8 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -277,7 +277,6 @@ def create_lead_for_item_inquiry(lead, subject, message): def get_terms_and_conditions(terms_name): return frappe.db.get_value("Terms and Conditions", terms_name, "terms") - @frappe.whitelist() def update_cart_address(address_type, address_name): quotation = _get_cart_quotation() From 8750ce2b628b967d67e4f4c4a462b1bed4fce69d Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Mon, 29 Jan 2024 16:10:27 +0500 Subject: [PATCH 18/43] fix api --- webshop/webshop/api.py | 72 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 0630ec98a0..1e4d15f503 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -21,6 +21,8 @@ escape_html, ) from webshop.webshop.shopping_cart.cart import (_get_cart_quotation,apply_cart_settings,update_party) +from frappe.utils import nowdate, nowtime, cint + @frappe.whitelist(allow_guest=True) def get_product_filter_data(query_args=None): @@ -230,4 +232,72 @@ def update_profile(first_name=None, last_name=None, phone=None): if phone is not None: user.phone = phone user.flags.ignore_permissions = True - user.save() \ No newline at end of file + user.save() + +@frappe.whitelist() +def payment_info(): + # payments = frappe.get_all('Storefront Website Settings', filters={'name': 'Storefront Website Settings'}, fields=['name', 'description']) + payments = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") + + payment_methods = [] + + if payments.enable_promptpay_qr == 1: + payment_info = { + 'name': payments.payment_method_title, + 'key': 1, + 'promptpay_qr_image': payments.upload_your_promptpay_qr_image, + 'account_name': payments.promptpay_account_name, + 'promptpay_number': payments.promptpay_number + } + payment_methods.append(payment_info) + + if payments.enable_bank_transfer == 1: + banks_list = frappe.get_all("Payment channel",filters={"parent": "Storefront Website Settings"},fields=["bank","bank_account_name","bank_account_number"]) + payment_info = { + 'name': payments.bank_title, + 'key': 2, + 'banks_list': banks_list + } + payment_methods.append(payment_info) + + return payment_methods + + +@frappe.whitelist() +def payment_entry(file, order_name, payment_info): + if order_name: + get_si = frappe.get_doc("Sales Invoice", order_name) + payment_id = get_si.custom_payment_method + web_settings = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") + mode_of_payment = "" + if payment_id == 1: + mode_of_payment = web_settings.mode_of_payment_for_qr + elif payment_id == 2: + mode_of_payment = web_settings.mode_of_payment_for_bank + _make_payment_entry(get_si, mode_of_payment, get_si.base_grand_total) + +def _make_payment_entry(si, mode_of_payment, paid_amount): + + pe = frappe.new_doc('Payment Entry') + totalconverfactor = 0 + pe.update({ + 'payment_type': 'Receive', + 'posting_date': nowdate(), + 'posting_time': nowtime(), + 'mode_of_payment': mode_of_payment, + 'paid_amount': paid_amount, + 'received_amount': paid_amount, + 'allocate_payment_amount': 1, + 'party_type': 'Customer', + 'party': si.customer, + 'paid_from': si.debit_to, + "target_exchange_rate":1, + 'paid_to': 'Cash - Z' + }) + ffa = paid_amount + pe.append('references', { + 'reference_doctype': 'Sales Invoice', + 'reference_name': si.name, + 'allocated_amount': ffa + }) + pe.save(ignore_permissions=True) \ No newline at end of file From cc25660386eec8669724e8dcf557a6d8e1081aa6 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 1 Feb 2024 08:55:35 +0500 Subject: [PATCH 19/43] add: sync workflow --- .github/workflows/sync.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/sync.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml new file mode 100644 index 0000000000..81a37d47e8 --- /dev/null +++ b/.github/workflows/sync.yaml @@ -0,0 +1,28 @@ +name: Sync with upstream branch + +on: + push: + branches: + - version-* + - develop + + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Fetch upstream + run: | + git remote add upstream https://github.com/frappe/webshop.git + git fetch upstream + + - name: Sync with upstream + run: | + git merge upstream/${{ github.ref_name }} + + - name: Push to origin + run: | + git push origin ${{ github.ref_name }} \ No newline at end of file From 2df23ee288d85671e043ef08d13d189ba4b62391 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 1 Feb 2024 09:13:04 +0500 Subject: [PATCH 20/43] Merge upstream changes with unrelated histories --- .github/workflows/sync.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 81a37d47e8..615926e55d 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -21,7 +21,7 @@ jobs: - name: Sync with upstream run: | - git merge upstream/${{ github.ref_name }} + git merge --allow-unrelated-histories upstream/${{ github.ref_name }} - name: Push to origin run: | From d58449701f2dceeff46b4b5420097992a05c6712 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 1 Feb 2024 09:16:11 +0500 Subject: [PATCH 21/43] add: git configs --- .github/workflows/sync.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 615926e55d..6dad72de89 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -21,6 +21,8 @@ jobs: - name: Sync with upstream run: | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" git merge --allow-unrelated-histories upstream/${{ github.ref_name }} - name: Push to origin From 63ffaf5b46afdb4cf6638d69d560da2eb47ba9f8 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 1 Feb 2024 09:22:38 +0500 Subject: [PATCH 22/43] add: depth --- .github/workflows/sync.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 6dad72de89..02a32541e1 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -13,6 +13,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Fetch upstream run: | @@ -23,7 +25,7 @@ jobs: run: | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]" - git merge --allow-unrelated-histories upstream/${{ github.ref_name }} + git merge upstream/${{ github.ref_name }} - name: Push to origin run: | From 55c63c4fb9ef06f29d3152229ef8aab479bfd57c Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 1 Feb 2024 09:29:28 +0500 Subject: [PATCH 23/43] update: Readme --- README.md | 71 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f9392b38b3..e048ebe50d 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,58 @@ -## Frappe Webshop +# Frappe Webshop + Frappe webshop is an Open Source eCommerce Platform ![Frappe Webshop](webshop.png) -## Installation -1. [Install bench](https://github.com/frappe/bench). -2. [Install ERPNext](https://github.com/frappe/bench#installation). -3. Once ERPNext is installed, add the webshop app to your bench by running - - ```sh - $ bench get-app webshop - ``` -4. After that, you can install the webshop app on the required site by running - ```sh - $ bench --site sitename install-app webshop - ``` - -#### License -GNU GPL V3. (See [LICENSE](LICENSE) for more information). +## Update guide + +**Note:** There will be no commit on `develop` branch. + +There are 2 remotes: + +- origin (zaviagodev/webshop) +- upstream (frappe/webshop) + +Each version should have a seprate branch on both remotes like `version-15`, `version-13` e.t.c + +### Steps + +1. Developer will commit the change in the relative branch example `version-15` +2. After commiting developer should keep the relative branch in sync with its `upstream` branch by: + + ```bash + git fetch upstream + git merge upstream/ + ``` + +3. At times there might be some conflicts developer hast to make sure the conflicts are resolved properly. + +### Steps for new version Release + +1. Switch to latest branch example `version-15` & make sure its synced with its upstream branch. + + ```bash + git checkout version-15 + git fetch upstream + git merge upstream/version-15 + ``` + +2. create new branch from latest branch & push. + + ```bash + git checkout version-15 + git checkout -b version-16 + git push origin version-16 + ``` + +3. sync with relative upstream branch by + + ```bash + git fetch upstream version-16 + git merge upstream/version-16 + ``` + +4. resolve conflicts if any & push. + + ```bash + git push origin version-16 + ``` From efdc1a2aa813680ddcdedeb23e51a2db54ac650b Mon Sep 17 00:00:00 2001 From: umer2001 Date: Wed, 3 Apr 2024 22:36:33 +0000 Subject: [PATCH 24/43] fix: major issus and some new apis --- webshop/webshop/api.py | 111 +++++++++++------- webshop/webshop/product_data_engine/query.py | 11 +- webshop/webshop/shopping_cart/cart.py | 94 +++++++++++---- webshop/webshop/shopping_cart/product_info.py | 7 +- 4 files changed, 154 insertions(+), 69 deletions(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 1e4d15f503..aae6bb61fd 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -11,16 +11,17 @@ from webshop.webshop.product_data_engine.query import ProductQuery from webshop.webshop.doctype.override_doctype.item_group import get_child_groups_for_website from webshop.webshop.doctype.override_doctype.item_group import get_main_groups_for_website -from webshop.webshop.shopping_cart.cart import get_party, get_address_docs +from webshop.webshop.shopping_cart.cart import get_party, update_cart as _update_cart from webshop.webshop.doctype.wishlist.wishlist import add_to_wishlist from webshop.webshop.doctype.wishlist.wishlist import remove_from_wishlist +from frappe.utils.oauth import redirect_post_login from frappe import _ from frappe.utils.password import update_password as _update_password from frappe.website.utils import is_signup_disabled from frappe.utils import ( escape_html, ) -from webshop.webshop.shopping_cart.cart import (_get_cart_quotation,apply_cart_settings,update_party) +from webshop.webshop.shopping_cart.cart import (_get_cart_quotation) from frappe.utils import nowdate, nowtime, cint @@ -76,6 +77,7 @@ def get_product_filter_data(query_args=None): item_group=item_group, ) except Exception: + print(frappe.get_traceback()) frappe.log_error("Product query with filter failed") return {"exc": "Something went wrong!"} @@ -111,14 +113,33 @@ def get_main_group(): @frappe.whitelist() -def get_orders(): +def get_orders(filters="{}", start=0, page_size=20): party = get_party() - lp_record = frappe.get_all("Sales Invoice", filters={"customer": party.name}, fields=["name","shipping_address_name","status","base_total","grand_total","company","customer_name","creation","address_display"]) - for invoice in lp_record: - items = frappe.get_all("Sales Invoice Item",filters={"parent": invoice["name"]},fields=["item_code", "item_name", "qty", "rate", "amount"]) - invoice["items"] = items - return lp_record + filters = json.loads(filters) + filters = { + **filters, + "customer": party.name, + } + order_list = frappe.db.get_all( + "Sales Order", + filters=filters, + fields="*", + limit_start=start, + limit_page_length=page_size, + ) + count = frappe.db.count("Sales Order", filters=filters) + return { + "orders": order_list, + "count": count, + } +@frappe.whitelist() +def get_order(order_name): + party = get_party() + sales_order = frappe.get_last_doc("Sales Order", filters={"name": order_name, "customer": party.name}) + if not sales_order: + frappe.throw(_("You are not allowed to access this order")) + return sales_order @frappe.whitelist() def get_shipping_methods(): @@ -129,19 +150,21 @@ def get_shipping_methods(): -@frappe.whitelist(allow_guest=True) -def edit_product_wish( - name: str = None, - wished: bool = None, +@frappe.whitelist() +def update_wshlist( + item_codes: list = [], ): - if wished: - add_to_wishlist(name) - else: - remove_from_wishlist(name) + if frappe.db.exists("Wishlist", frappe.session.user): + wishlist = frappe.get_doc("Wishlist", frappe.session.user) + wishlist.items = [] + wishlist.save(ignore_permissions=True) + for item_code in item_codes: + add_to_wishlist(item_code) + return item_codes @frappe.whitelist(allow_guest=True) -def sign_up(email: str, full_name: str, redirect_to: str,password) -> tuple[int, str]: +def sign_up(email: str, full_name: str, password): if is_signup_disabled(): frappe.throw(_("Sign Up is disabled"), title=_("Not Allowed")) @@ -194,40 +217,46 @@ def sign_up(email: str, full_name: str, redirect_to: str,password) -> tuple[int, if default_role: user.add_roles(default_role) - api_secret = frappe.generate_hash(length=15) - if not user.api_key: - api_key = frappe.generate_hash(length=15) - user.api_key = api_key - user.api_secret = api_secret - user.save() - user.reload() - - token = f"{user.api_key}:{user.get_password('api_secret')}" - return {"message": 'Logged In', "token": token} + # api_secret = frappe.generate_hash(length=15) + # if not user.api_key: + # api_key = frappe.generate_hash(length=15) + # user.api_key = api_key + # user.api_secret = api_secret + # user.save() + # user.reload() + + # token = f"{user.api_key}:{user.get_password('api_secret')}" + + # use Login Manager to login + frappe.local.login_manager.login_as(user.name) + + return { + "user": user.name, + "username": user.username, + "full_name": user.full_name, + "email": user.email + } @frappe.whitelist() def update_cart(cart): quotation = _get_cart_quotation() - quotation.set("items", []) - - if cart: - for item_code, qty in cart.items(): - quotation.append("items", { - "item_code": item_code, - "qty": qty, - }) - apply_cart_settings(quotation=quotation) - quotation.flags.ignore_permissions = True - quotation.save() + if not quotation.as_dict().get("__islocal", 0): + for item in quotation.items: + frappe.delete_doc("Quotation Item", item.name, ignore_permissions=True) + quotation.save(ignore_permissions=True) + for item_code, qty in cart.items(): + _update_cart(item_code, qty) + return _get_cart_quotation() + @frappe.whitelist() def update_profile(first_name=None, last_name=None, phone=None): - party = get_party() - user = frappe.get_doc("User", party.name) + user = frappe.get_doc("User", frappe.session.user) if first_name is not None: user.first_name = first_name if last_name is not None: + print("last_name", last_name) user.last_name = last_name if phone is not None: user.phone = phone @@ -236,7 +265,6 @@ def update_profile(first_name=None, last_name=None, phone=None): @frappe.whitelist() def payment_info(): - # payments = frappe.get_all('Storefront Website Settings', filters={'name': 'Storefront Website Settings'}, fields=['name', 'description']) payments = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") payment_methods = [] @@ -279,7 +307,6 @@ def payment_entry(file, order_name, payment_info): def _make_payment_entry(si, mode_of_payment, paid_amount): pe = frappe.new_doc('Payment Entry') - totalconverfactor = 0 pe.update({ 'payment_type': 'Receive', 'posting_date': nowdate(), diff --git a/webshop/webshop/product_data_engine/query.py b/webshop/webshop/product_data_engine/query.py index c556135ee5..7eb3476494 100644 --- a/webshop/webshop/product_data_engine/query.py +++ b/webshop/webshop/product_data_engine/query.py @@ -94,13 +94,14 @@ def query_items(self, start=0): # MySQL does not support offset without limit, # frappe does not accept two parameters for limit # https://dev.mysql.com/doc/refman/8.0/en/select.html#id4651989 + count_items = frappe.db.get_all( "Website Item", filters=self.filters, or_filters=self.or_filters, limit_page_length=184467440737095516, - limit_start=start, # get all items from this offset for total count ahead - order_by="ranking desc", + # limit_start=start, # get all items from this offset for total count ahead + # order_by="ranking desc", ) count = len(count_items) @@ -123,9 +124,9 @@ def query_items(self, start=0): items_with_values = [] for item in items: item_doc = frappe.get_doc("Website Item", item.name) - custom_images = item_doc.get("custom_multipleimges", []) - file_urls = [image.get("file_url") for image in custom_images] - item["slider_images"] = file_urls + # custom_images = item_doc.get("custom_multipleimges", []) + # file_urls = [image.get("file_url") for image in custom_images] + # item["slider_images"] = file_urls items_with_values.append(item) return items, count diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index d5fb62c070..8d40f0c674 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -85,6 +85,56 @@ def get_billing_addresses(party=None): if address.address_type == "Billing" ] +@frappe.whitelist() +def get_address(address_name): + portal_user = frappe.get_last_doc("Portal User", filters={ + "user": frappe.session.user, + "parenttype": "Customer" + }) + + print("portal_user => ", portal_user) + + if not portal_user: + frappe.throw(_("Address not found")) + + customer_link = frappe.get_last_doc("Dynamic Link", filters={ + "link_name": portal_user.parent, + "link_doctype": "Customer", + "parenttype": "Address", + "parent": address_name + }) + + if not customer_link: + frappe.throw(_("Address not found")) + + address = frappe.get_doc("Address", address_name) + return address.as_dict() + +@frappe.whitelist() +def update_address(address_name, address): + portal_user = frappe.get_last_doc("Portal User", filters={ + "user": frappe.session.user, + "parenttype": "Customer" + }) + + if not portal_user: + frappe.throw(_("Address not found")) + + customer_link = frappe.get_last_doc("Dynamic Link", filters={ + "link_name": portal_user.parent, + "link_doctype": "Customer", + "parenttype": "Address", + "parent": address_name + }) + + if not customer_link: + frappe.throw(_("Address not found")) + + address_doc = frappe.get_doc("Address", address_name) + address_doc.update(address) + address_doc.save(ignore_permissions=True) + + @frappe.whitelist() def place_order(): @@ -215,7 +265,7 @@ def update_cart(item_code, qty, additional_notes=None, with_items=False): ), } else: - return {"name": quotation.name} + return {"name": quotation.name if quotation else None} @frappe.whitelist() @@ -562,21 +612,24 @@ def get_party(user=None): if not cart_settings.enabled: frappe.local.flags.redirect_location = "/contact" raise frappe.Redirect - customer = frappe.new_doc("Customer") + fullname = get_fullname(user) - customer.update( - { - "customer_name": fullname, - "customer_type": "Individual", - "customer_group": get_shopping_cart_settings().default_customer_group, - "territory": get_root_of("Territory"), - } - ) - - customer.append("portal_users", {"user": user}) + customer_doc = frappe.get_doc({ + 'doctype':"Customer", + 'customer_name': fullname, + 'email_id': user, + 'email': user, + 'type': 'Individual', + 'customer_group': get_shopping_cart_settings().default_customer_group, + 'territory': get_root_of("Territory") + }) + customer_doc.insert(ignore_permissions=True) + + + customer_doc.append("portal_users", {"user": user}) if debtors_account: - customer.update( + customer_doc.update( { "accounts": [ {"company": cart_settings.company, "account": debtors_account} @@ -584,18 +637,18 @@ def get_party(user=None): } ) - customer.flags.ignore_mandatory = True - customer.insert(ignore_permissions=True) + customer_doc.flags.ignore_mandatory = True + customer_doc.save(ignore_permissions=True) contact = frappe.new_doc("Contact") contact.update( {"first_name": fullname, "email_ids": [{"email_id": user, "is_primary": 1}]} ) - contact.append("links", dict(link_doctype="Customer", link_name=customer.name)) + contact.append("links", dict(link_doctype="Customer", link_name=customer_doc.name)) contact.flags.ignore_mandatory = True contact.insert(ignore_permissions=True) - return customer + return customer_doc def get_debtors_account(cart_settings): @@ -702,9 +755,7 @@ def get_applicable_shipping_rules(party=None, quotation=None): shipping_rules = get_shipping_rules(quotation) if shipping_rules: - rule_label_map = frappe.db.get_values("Shipping Rule", shipping_rules, "label") - # we need this in sorted order as per the position of the rule in the settings page - return [[rule, rule] for rule in shipping_rules] + return [frappe.get_doc("Shipping Rule", rule_name) for rule_name in shipping_rules] @frappe.whitelist() @@ -729,6 +780,7 @@ def get_shipping_rules(quotation=None, cart_settings=None): .where((sr_country.country == country) & (sr.disabled != 1)) ) result = query.run(as_list=True) + print("result => ", result) shipping_rules = [x[0] for x in result] return shipping_rules @@ -755,7 +807,7 @@ def show_terms(doc): @frappe.whitelist(allow_guest=True) -def apply_coupon_code(applied_code, applied_referral_sales_partner): +def apply_coupon_code(applied_code, applied_referral_sales_partner=None): quotation = True if not applied_code: diff --git a/webshop/webshop/shopping_cart/product_info.py b/webshop/webshop/shopping_cart/product_info.py index 97e5871f01..a8d85185b6 100644 --- a/webshop/webshop/shopping_cart/product_info.py +++ b/webshop/webshop/shopping_cart/product_info.py @@ -60,12 +60,17 @@ def get_product_info_for_website(item_code, skip_quotation_creation=False): stock_status = frappe._dict({"on_backorder": True}) else: stock_status = get_web_item_qty_in_stock(item_code, "website_warehouse") - + + fields = [ "name", "item_code", "web_item_name", "web_long_description", "short_description", "thumbnail", "item_group", "stock_uom", "slideshow", "website_specifications"] + values = frappe.get_cached_value("Website Item", {"item_code": item_code}, fields) + product = dict(zip(fields, values)) + product_info = { "price": price, "qty": 0, "uom": frappe.db.get_value("Item", item_code, "stock_uom"), "sales_uom": frappe.db.get_value("Item", item_code, "sales_uom"), + **product } if stock_status: From 5bb3e395b5b222edc698ba8aac256098cd63ee9e Mon Sep 17 00:00:00 2001 From: umer2001 Date: Mon, 8 Apr 2024 21:44:46 +0000 Subject: [PATCH 25/43] fix; many bugs --- webshop/webshop/api.py | 230 +++++++++--------- .../webshop_settings/webshop_settings.json | 10 +- webshop/webshop/shopping_cart/cart.py | 85 +++++-- 3 files changed, 189 insertions(+), 136 deletions(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index aae6bb61fd..750ce7cdf3 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -19,97 +19,98 @@ from frappe.utils.password import update_password as _update_password from frappe.website.utils import is_signup_disabled from frappe.utils import ( - escape_html, + escape_html, ) from webshop.webshop.shopping_cart.cart import (_get_cart_quotation) from frappe.utils import nowdate, nowtime, cint +from frappe.handler import upload_file @frappe.whitelist(allow_guest=True) def get_product_filter_data(query_args=None): - """ - Returns filtered products and discount filters. - - Args: - query_args (dict): contains filters to get products list - - Query Args filters: - search (str): Search Term. - field_filters (dict): Keys include item_group, brand, etc. - attribute_filters(dict): Keys include Color, Size, etc. - start (int): Offset items by - item_group (str): Valid Item Group - from_filters (bool): Set as True to jump to page 1 - """ - if isinstance(query_args, str): - query_args = json.loads(query_args) - - query_args = frappe._dict(query_args) - - if query_args: - search = query_args.get("search") - field_filters = query_args.get("field_filters", {}) - attribute_filters = query_args.get("attribute_filters", {}) - start = cint(query_args.start) if query_args.get("start") else 0 - item_group = query_args.get("item_group") - from_filters = query_args.get("from_filters") - else: - search, attribute_filters, item_group, from_filters = None, None, None, None - field_filters = {} - start = 0 - - # if new filter is checked, reset start to show filtered items from page 1 - if from_filters: - start = 0 - - sub_categories = [] - if item_group: - sub_categories = get_child_groups_for_website(item_group, immediate=True) - - engine = ProductQuery() - - try: - result = engine.query( - attribute_filters, - field_filters, - search_term=search, - start=start, - item_group=item_group, - ) - except Exception: - print(frappe.get_traceback()) - frappe.log_error("Product query with filter failed") - return {"exc": "Something went wrong!"} - - # discount filter data + """ + Returns filtered products and discount filters. + + Args: + query_args (dict): contains filters to get products list + + Query Args filters: + search (str): Search Term. + field_filters (dict): Keys include item_group, brand, etc. + attribute_filters(dict): Keys include Color, Size, etc. + start (int): Offset items by + item_group (str): Valid Item Group + from_filters (bool): Set as True to jump to page 1 + """ + if isinstance(query_args, str): + query_args = json.loads(query_args) + + query_args = frappe._dict(query_args) + + if query_args: + search = query_args.get("search") + field_filters = query_args.get("field_filters", {}) + attribute_filters = query_args.get("attribute_filters", {}) + start = cint(query_args.start) if query_args.get("start") else 0 + item_group = query_args.get("item_group") + from_filters = query_args.get("from_filters") + else: + search, attribute_filters, item_group, from_filters = None, None, None, None + field_filters = {} + start = 0 + + # if new filter is checked, reset start to show filtered items from page 1 + if from_filters: + start = 0 + + sub_categories = [] + if item_group: + sub_categories = get_child_groups_for_website(item_group, immediate=True) + + engine = ProductQuery() + + try: + result = engine.query( + attribute_filters, + field_filters, + search_term=search, + start=start, + item_group=item_group, + ) + except Exception: + print(frappe.get_traceback()) + frappe.log_error("Product query with filter failed") + return {"exc": frappe.get_traceback()} + + # discount filter data - filters = {} - discounts = result["discounts"] + filters = {} + discounts = result["discounts"] - if discounts: - filter_engine = ProductFiltersBuilder() - filters["discount_filters"] = filter_engine.get_discount_filters(discounts) + if discounts: + filter_engine = ProductFiltersBuilder() + filters["discount_filters"] = filter_engine.get_discount_filters(discounts) - return { - "items": result["items"] or [], - "filters": filters, - "settings": engine.settings, - "sub_categories": sub_categories, - "items_count": result["items_count"], + return { + "items": result["items"] or [], + "filters": filters, + "settings": engine.settings, + "sub_categories": sub_categories, + "items_count": result["items_count"], "total_items" : frappe.db.count('Website Item', {'published': '1'}) - } + } @frappe.whitelist(allow_guest=True) def get_guest_redirect_on_action(): - return frappe.db.get_single_value("Webshop Settings", "redirect_on_action") + return frappe.db.get_single_value("Webshop Settings", "redirect_on_action") @frappe.whitelist(allow_guest=True) def get_main_group(): - return get_main_groups_for_website() + return get_main_groups_for_website() @frappe.whitelist() @@ -143,16 +144,12 @@ def get_order(order_name): @frappe.whitelist() def get_shipping_methods(): - party = get_party() lp_record = frappe.get_all("Shipping Rule", filters={"custom_show_on_website": 1}, fields=["name","shipping_rule_type","shipping_amount"]) return lp_record - - - @frappe.whitelist() def update_wshlist( - item_codes: list = [], + item_codes: list = [], ): if frappe.db.exists("Wishlist", frappe.session.user): wishlist = frappe.get_doc("Wishlist", frappe.session.user) @@ -216,6 +213,8 @@ def sign_up(email: str, full_name: str, password): default_role = frappe.db.get_single_value("Portal Settings", "default_role") if default_role: user.add_roles(default_role) + + get_party(user=user.name) # api_secret = frappe.generate_hash(length=15) # if not user.api_key: @@ -244,7 +243,8 @@ def update_cart(cart): if not quotation.as_dict().get("__islocal", 0): for item in quotation.items: frappe.delete_doc("Quotation Item", item.name, ignore_permissions=True) - quotation.save(ignore_permissions=True) + if quotation.items: + quotation.save(ignore_permissions=True) for item_code, qty in cart.items(): _update_cart(item_code, qty) return _get_cart_quotation() @@ -264,7 +264,7 @@ def update_profile(first_name=None, last_name=None, phone=None): user.save() @frappe.whitelist() -def payment_info(): +def payment_methods(): payments = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") payment_methods = [] @@ -280,7 +280,7 @@ def payment_info(): payment_methods.append(payment_info) if payments.enable_bank_transfer == 1: - banks_list = frappe.get_all("Payment channel",filters={"parent": "Storefront Website Settings"},fields=["bank","bank_account_name","bank_account_number"]) + banks_list = frappe.get_all("Payment Channel",filters={"parent": "Storefront Website Settings"},fields=["bank","bank_account_name","bank_account_number"]) payment_info = { 'name': payments.bank_title, 'key': 2, @@ -292,39 +292,45 @@ def payment_info(): @frappe.whitelist() -def payment_entry(file, order_name, payment_info): - if order_name: - get_si = frappe.get_doc("Sales Invoice", order_name) - payment_id = get_si.custom_payment_method - web_settings = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") - mode_of_payment = "" - if payment_id == 1: - mode_of_payment = web_settings.mode_of_payment_for_qr - elif payment_id == 2: - mode_of_payment = web_settings.mode_of_payment_for_bank - _make_payment_entry(get_si, mode_of_payment, get_si.base_grand_total) +def confirm_payment(order_name, payment_info): + frappe.form_dict.is_private = True + bank_slip = upload_file() + + if not bank_slip: + frappe.throw("Please upload bank slip") -def _make_payment_entry(si, mode_of_payment, paid_amount): + payment_info = json.loads(payment_info) + web_settings = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") - pe = frappe.new_doc('Payment Entry') - pe.update({ - 'payment_type': 'Receive', - 'posting_date': nowdate(), - 'posting_time': nowtime(), - 'mode_of_payment': mode_of_payment, - 'paid_amount': paid_amount, - 'received_amount': paid_amount, - 'allocate_payment_amount': 1, - 'party_type': 'Customer', - 'party': si.customer, - 'paid_from': si.debit_to, - "target_exchange_rate":1, - 'paid_to': 'Cash - Z' - }) - ffa = paid_amount - pe.append('references', { - 'reference_doctype': 'Sales Invoice', - 'reference_name': si.name, - 'allocated_amount': ffa - }) - pe.save(ignore_permissions=True) \ No newline at end of file + # make sales invoice + from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice + sales_invoice = make_sales_invoice(order_name, ignore_permissions=True) + sales_invoice.custom_channel = "Website" + for item in sales_invoice.items: + item.warehouse = None + # sales_invoice.set_target_warehouse = None + sales_invoice.save(ignore_permissions=True) + sales_invoice.submit() + print("sales_invoice", sales_invoice.name) + + current_user = frappe.session.user + current_session_data = frappe.session.data + frappe.set_user("Administrator") + + # make payment entry + from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry + payment_entry = get_payment_entry("Sales Invoice", sales_invoice.name) + payment_entry.custom_payment_file = bank_slip.get("file_url") + payment_entry.mode_of_payment = web_settings.mode_of_payment_for_qr if payment_info.get("payment_method_key") == "1" else web_settings.mode_of_payment_for_bank + payment_entry.reference_date = nowdate() + payment_entry.reference_no = sales_invoice.name + payment_entry.custom_bank = payment_info.get("bank") if payment_info.get("payment_method_key") == "2" else None + payment_entry.save(ignore_permissions=True) + + frappe.set_user(current_user) + frappe.session.data = current_session_data + + +@frappe.whitelist(allow_guest=True) +def get_config(): + return frappe.get_doc("Webshop Settings") \ No newline at end of file diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.json b/webshop/webshop/doctype/webshop_settings/webshop_settings.json index 18f7015f39..2677448f36 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.json +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.json @@ -7,6 +7,7 @@ "field_order": [ "products_per_page", "default_product_image", + "brand_logo", "filter_categories_section", "enable_field_filters", "filter_fields", @@ -372,12 +373,17 @@ "fieldname": "default_product_image", "fieldtype": "Attach Image", "label": "Default Product Image" + }, + { + "fieldname": "brand_logo", + "fieldtype": "Attach Image", + "label": "Brand Logo" } ], "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-01-16 14:01:38.301987", + "modified": "2024-04-09 03:29:53.374665", "modified_by": "Administrator", "module": "Webshop", "name": "Webshop Settings", @@ -398,4 +404,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 8d40f0c674..b5a935f8e7 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -33,7 +33,9 @@ def set_cart_count(quotation=None): @frappe.whitelist() def get_cart_quotation(doc=None): + print("//////////get_cart_quotation///////////////") party = get_party() + print("//////////get_cart_quotation end///////////////") if not doc: quotation = _get_cart_quotation(party) @@ -53,11 +55,16 @@ def get_cart_quotation(doc=None): "cart_settings": frappe.get_cached_doc("Webshop Settings"), } +@frappe.whitelist() +def get_addresses(): + return get_address_docs() @frappe.whitelist() def get_shipping_addresses(party=None): if not party: + print("//////////get_shipping_addresses///////////////") party = get_party() + print("//////////get_shipping_addresses end///////////////") addresses = get_address_docs(party=party) return [ { @@ -73,7 +80,9 @@ def get_shipping_addresses(party=None): @frappe.whitelist() def get_billing_addresses(party=None): if not party: + print("//////////get_billing_addresses///////////////") party = get_party() + print("//////////get_billing_addresses end///////////////") addresses = get_address_docs(party=party) return [ { @@ -134,6 +143,27 @@ def update_address(address_name, address): address_doc.update(address) address_doc.save(ignore_permissions=True) +@frappe.whitelist() +def delete_address(address_name): + portal_user = frappe.get_last_doc("Portal User", filters={ + "user": frappe.session.user, + "parenttype": "Customer" + }) + + if not portal_user: + frappe.throw(_("Address not found")) + + customer_link = frappe.get_last_doc("Dynamic Link", filters={ + "link_name": portal_user.parent, + "link_doctype": "Customer", + "parenttype": "Address", + "parent": address_name + }) + + if not customer_link: + frappe.throw(_("Address not found")) + + frappe.db.set_value("Address", address_name, "disabled", 1) @frappe.whitelist() @@ -328,7 +358,7 @@ def get_terms_and_conditions(terms_name): return frappe.db.get_value("Terms and Conditions", terms_name, "terms") @frappe.whitelist() -def update_cart_address(address_type, address_name): +def update_cart_address(address_name, address_type): quotation = _get_cart_quotation() address_doc = frappe.get_doc("Address", address_name).as_dict() address_display = get_address_display(address_doc) @@ -420,7 +450,9 @@ def decorate_quotation_doc(doc): def _get_cart_quotation(party=None): """Return the open Quotation of type "Shopping Cart" or make a new one""" if not party: + print("//////////_get_cart_quotation///////////////") party = get_party() + print("//////////_get_cart_quotation end///////////////") quotation = frappe.get_all( "Quotation", @@ -467,20 +499,22 @@ def _get_cart_quotation(party=None): def update_party(fullname, company_name=None, mobile_no=None, phone=None): + print("//////////update_party///////////////") party = get_party() + print("//////////update_party end///////////////") party.customer_name = company_name or fullname party.customer_type = "Company" if company_name else "Individual" - contact_name = frappe.db.get_value("Contact", {"email_id": frappe.session.user}) - contact = frappe.get_doc("Contact", contact_name) - contact.first_name = fullname - contact.last_name = None - contact.customer_name = party.customer_name - contact.mobile_no = mobile_no - contact.phone = phone - contact.flags.ignore_permissions = True - contact.save() + # contact_name = frappe.db.get_value("Contact", {"email_id": frappe.session.user}) + # contact = frappe.get_doc("Contact", contact_name) + # contact.first_name = fullname + # contact.last_name = None + # contact.customer_name = party.customer_name + # contact.mobile_no = mobile_no + # contact.phone = phone + # contact.flags.ignore_permissions = True + # contact.save() party_doc = frappe.get_doc(party.as_dict()) party_doc.flags.ignore_permissions = True @@ -496,7 +530,9 @@ def update_party(fullname, company_name=None, mobile_no=None, phone=None): def apply_cart_settings(party=None, quotation=None): if not party: + print("//////////apply_cart_settings///////////////") party = get_party() + print("//////////apply_cart_settings end///////////////") if not quotation: quotation = _get_cart_quotation(party) @@ -537,8 +573,10 @@ def _set_price_list(cart_settings, quotation=None): """Set price list based on customer or shopping cart default""" from erpnext.accounts.party import get_default_price_list + print("//////////_set_price_list///////////////") party_name = quotation.get("party_name") if quotation else get_party().get("name") selling_price_list = None + print("//////////_set_price_list end///////////////") # check if default customer price list exists if party_name and frappe.db.exists("Customer", party_name): @@ -592,12 +630,16 @@ def get_party(user=None): contact_name = get_contact_name(user) party = None + print("contact_name => ", contact_name) + + if contact_name: contact = frappe.get_doc("Contact", contact_name) if contact.links: party_doctype = contact.links[0].link_doctype party = contact.links[0].link_name + print("party => ", party) cart_settings = frappe.get_cached_doc("Webshop Settings") debtors_account = "" @@ -623,11 +665,7 @@ def get_party(user=None): 'customer_group': get_shopping_cart_settings().default_customer_group, 'territory': get_root_of("Territory") }) - customer_doc.insert(ignore_permissions=True) - - customer_doc.append("portal_users", {"user": user}) - if debtors_account: customer_doc.update( { @@ -636,17 +674,16 @@ def get_party(user=None): ] } ) - customer_doc.flags.ignore_mandatory = True customer_doc.save(ignore_permissions=True) - contact = frappe.new_doc("Contact") - contact.update( - {"first_name": fullname, "email_ids": [{"email_id": user, "is_primary": 1}]} - ) - contact.append("links", dict(link_doctype="Customer", link_name=customer_doc.name)) - contact.flags.ignore_mandatory = True - contact.insert(ignore_permissions=True) + # contact = frappe.new_doc("Contact") + # contact.update( + # {"first_name": fullname, "email_ids": [{"email_id": user, "is_primary": 1}]} + # ) + # contact.append("links", dict(link_doctype="Customer", link_name=customer_doc.name)) + # contact.flags.ignore_mandatory = True + # contact.insert(ignore_permissions=True) return customer_doc @@ -699,7 +736,9 @@ def get_address_docs( party=None, ): if not party: + print("//////////get_address_docs///////////////") party = get_party() + print("//////////get_address_docs end///////////////") if not party: return [] @@ -716,6 +755,8 @@ def get_address_docs( for a in address_names: address = frappe.get_doc("Address", a.parent) + if address.disabled: + continue address.display = get_address_display(address.as_dict()) out.append(address) From 0566cd4e1e13ebd791e634ef358677b16f534e74 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Sun, 30 Jun 2024 15:34:43 +0000 Subject: [PATCH 26/43] add: more customization and adjustments --- webshop/templates/pages/wishlist.py | 2 +- webshop/webshop/api.py | 82 ++++++--- webshop/webshop/custom/shipping_rule.json | 67 +++++++ .../webshop_settings/webshop_settings.json | 169 +++++++++++++++++- webshop/webshop/product_data_engine/query.py | 2 +- webshop/webshop/shopping_cart/cart.py | 73 +++++--- webshop/webshop/shopping_cart/product_info.py | 6 +- 7 files changed, 342 insertions(+), 59 deletions(-) create mode 100644 webshop/webshop/custom/shipping_rule.json diff --git a/webshop/templates/pages/wishlist.py b/webshop/templates/pages/wishlist.py index 66b359caa5..afff52ad23 100644 --- a/webshop/templates/pages/wishlist.py +++ b/webshop/templates/pages/wishlist.py @@ -85,6 +85,6 @@ def set_stock_price_details(items, settings, selling_price_list): if item.formatted_mrp: item.discount = price_details.get( "formatted_discount_percent" - ) or price_details.get("formatted_discount_rate") + ) or price_details.get("formatted_discount_rate") or price_details.get("formatted_discount_amount") return items diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 750ce7cdf3..d8ca550570 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -113,6 +113,35 @@ def get_main_group(): return get_main_groups_for_website() +# @frappe.whitelist() +# def get_orders(filters="{}", start=0, page_size=20): +# party = get_party() +# filters = json.loads(filters) +# filters = { +# **filters, +# "customer": party.name, +# } +# order_list = frappe.db.get_all( +# "Sales Order", +# filters=filters, +# fields="*", +# limit_start=start, +# limit_page_length=page_size, +# ) +# count = frappe.db.count("Sales Order", filters=filters) +# return { +# "orders": order_list, +# "count": count, +# } + +# @frappe.whitelist() +# def get_order(order_name): +# party = get_party() +# sales_order = frappe.get_last_doc("Sales Order", filters={"name": order_name, "customer": party.name}) +# if not sales_order: +# frappe.throw(_("You are not allowed to access this order")) +# return sales_order + @frappe.whitelist() def get_orders(filters="{}", start=0, page_size=20): party = get_party() @@ -121,26 +150,26 @@ def get_orders(filters="{}", start=0, page_size=20): **filters, "customer": party.name, } - order_list = frappe.db.get_all( - "Sales Order", + invoice_list = frappe.db.get_all( + "Sales Invoice", filters=filters, fields="*", limit_start=start, limit_page_length=page_size, ) - count = frappe.db.count("Sales Order", filters=filters) + count = frappe.db.count("Sales Invoice", filters=filters) return { - "orders": order_list, + "orders": invoice_list, "count": count, } @frappe.whitelist() -def get_order(order_name): +def get_order(invoice_name): party = get_party() - sales_order = frappe.get_last_doc("Sales Order", filters={"name": order_name, "customer": party.name}) - if not sales_order: + sales_invoice = frappe.get_last_doc("Sales Invoice", filters={"name": invoice_name, "customer": party.name}) + if not sales_invoice: frappe.throw(_("You are not allowed to access this order")) - return sales_order + return sales_invoice @frappe.whitelist() def get_shipping_methods(): @@ -168,9 +197,9 @@ def sign_up(email: str, full_name: str, password): user = frappe.db.get("User", {"email": email}) if user: if user.enabled: - return 0, _("Already Registered") + return frappe.throw(_("Already Registered")) else: - return 0, _("Registered but disabled") + return frappe.throw(_("Registered but disabled")) else: if frappe.db.get_creation_count("User", 60) > 300: frappe.respond_as_web_page( @@ -201,6 +230,7 @@ def sign_up(email: str, full_name: str, password): "first_name": escape_html(full_name), "username": username, "enabled": 1, + "birth_date": None, "new_password": password, "user_type": "Website User", } @@ -265,7 +295,7 @@ def update_profile(first_name=None, last_name=None, phone=None): @frappe.whitelist() def payment_methods(): - payments = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") + payments = frappe.get_doc("Webshop Settings", "Webshop Settings") payment_methods = [] @@ -280,7 +310,7 @@ def payment_methods(): payment_methods.append(payment_info) if payments.enable_bank_transfer == 1: - banks_list = frappe.get_all("Payment Channel",filters={"parent": "Storefront Website Settings"},fields=["bank","bank_account_name","bank_account_number"]) + banks_list = frappe.get_all("Payment Channel",filters={"parent": "Webshop Settings"},fields=["bank","bank_account_name","bank_account_number"]) payment_info = { 'name': payments.bank_title, 'key': 2, @@ -292,7 +322,7 @@ def payment_methods(): @frappe.whitelist() -def confirm_payment(order_name, payment_info): +def confirm_payment(invoice_name, payment_info): frappe.form_dict.is_private = True bank_slip = upload_file() @@ -300,18 +330,18 @@ def confirm_payment(order_name, payment_info): frappe.throw("Please upload bank slip") payment_info = json.loads(payment_info) - web_settings = frappe.get_doc("Storefront Website Settings", "Storefront Website Settings") + web_settings = frappe.get_doc("Webshop Settings", "Webshop Settings") - # make sales invoice - from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice - sales_invoice = make_sales_invoice(order_name, ignore_permissions=True) - sales_invoice.custom_channel = "Website" - for item in sales_invoice.items: - item.warehouse = None - # sales_invoice.set_target_warehouse = None - sales_invoice.save(ignore_permissions=True) - sales_invoice.submit() - print("sales_invoice", sales_invoice.name) + # # make sales invoice + # from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice + # sales_invoice = make_sales_invoice(order_name, ignore_permissions=True) + # sales_invoice.custom_channel = "Website" + # for item in sales_invoice.items: + # item.warehouse = None + # # sales_invoice.set_target_warehouse = None + # sales_invoice.save(ignore_permissions=True) + # sales_invoice.submit() + # print("sales_invoice", sales_invoice.name) current_user = frappe.session.user current_session_data = frappe.session.data @@ -319,11 +349,11 @@ def confirm_payment(order_name, payment_info): # make payment entry from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry - payment_entry = get_payment_entry("Sales Invoice", sales_invoice.name) + payment_entry = get_payment_entry("Sales Invoice", invoice_name) payment_entry.custom_payment_file = bank_slip.get("file_url") payment_entry.mode_of_payment = web_settings.mode_of_payment_for_qr if payment_info.get("payment_method_key") == "1" else web_settings.mode_of_payment_for_bank payment_entry.reference_date = nowdate() - payment_entry.reference_no = sales_invoice.name + payment_entry.reference_no = invoice_name payment_entry.custom_bank = payment_info.get("bank") if payment_info.get("payment_method_key") == "2" else None payment_entry.save(ignore_permissions=True) diff --git a/webshop/webshop/custom/shipping_rule.json b/webshop/webshop/custom/shipping_rule.json new file mode 100644 index 0000000000..427cb943d3 --- /dev/null +++ b/webshop/webshop/custom/shipping_rule.json @@ -0,0 +1,67 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-04-22 06:23:35.946986", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Shipping Rule", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_show_on_website", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "disabled", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Show on website", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-04-22 06:23:35.946986", + "modified_by": "Administrator", + "module": null, + "name": "Shipping Rule-custom_show_on_website", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.json b/webshop/webshop/doctype/webshop_settings/webshop_settings.json index 2677448f36..98ac261220 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.json +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.json @@ -5,9 +5,13 @@ "editable_grid": 1, "engine": "InnoDB", "field_order": [ + "site_name", "products_per_page", "default_product_image", "brand_logo", + "site_favicon", + "default_language", + "help_url", "filter_categories_section", "enable_field_filters", "filter_fields", @@ -24,6 +28,8 @@ "column_break_13", "show_apply_coupon_code_in_website", "show_contact_us_button", + "contact_us_label", + "contact_us_url", "show_attachments", "section_break_18", "company", @@ -42,6 +48,7 @@ "payment_success_url", "add_ons_section", "enable_wishlist", + "enable_i18n", "column_break_22", "enable_reviews", "column_break_23", @@ -50,12 +57,30 @@ "redisearch_warning", "search_index_fields", "is_redisearch_enabled", + "is_search_enabled", "is_redisearch_loaded", "shop_by_category_section", "slideshow", "guest_display_settings_section", "hide_price_for_guest", - "redirect_on_action" + "redirect_on_action", + "payment_setting_tab", + "website_payment_setting_section", + "enable_bank_transfer", + "section_break_uzqc", + "bank_title", + "payment_channels", + "mode_of_payment_for_bank", + "promptpay_qr_section", + "enable_promptpay_qr", + "section_break_bgza", + "payment_method_title", + "upload_your_promptpay_qr_image", + "mode_of_payment_for_qr", + "bank", + "column_break_pnbl", + "promptpay_account_name", + "promptpay_number" ], "fields": [ { @@ -378,12 +403,152 @@ "fieldname": "brand_logo", "fieldtype": "Attach Image", "label": "Brand Logo" + }, + { + "default": "0", + "fieldname": "is_search_enabled", + "fieldtype": "Check", + "label": "Enable Search" + }, + { + "default": "0", + "fieldname": "enable_i18n", + "fieldtype": "Check", + "label": "Enable Internationalization (I18N)" + }, + { + "fieldname": "default_language", + "fieldtype": "Link", + "label": "Default Language", + "options": "Language", + "reqd": 1 + }, + { + "depends_on": "show_contact_us_button", + "fieldname": "contact_us_label", + "fieldtype": "Data", + "label": "Contact us label", + "mandatory_depends_on": "show_contact_us_button" + }, + { + "depends_on": "show_contact_us_button", + "fieldname": "contact_us_url", + "fieldtype": "Data", + "label": "Contact us URL", + "mandatory_depends_on": "show_contact_us_button" + }, + { + "fieldname": "payment_setting_tab", + "fieldtype": "Tab Break", + "label": "Payment Setting" + }, + { + "fieldname": "website_payment_setting_section", + "fieldtype": "Section Break", + "label": "Website Payment Setting" + }, + { + "default": "0", + "fieldname": "enable_bank_transfer", + "fieldtype": "Check", + "label": "Enable Bank Transfer" + }, + { + "depends_on": "enable_bank_transfer", + "fieldname": "section_break_uzqc", + "fieldtype": "Section Break" + }, + { + "fieldname": "bank_title", + "fieldtype": "Data", + "label": "Payment Method Title" + }, + { + "fieldname": "payment_channels", + "fieldtype": "Table", + "options": "Payment Channel" + }, + { + "fieldname": "mode_of_payment_for_bank", + "fieldtype": "Link", + "label": "Mode Of payment for bank", + "options": "Mode of Payment" + }, + { + "fieldname": "promptpay_qr_section", + "fieldtype": "Section Break", + "label": "PromptPay QR" + }, + { + "default": "0", + "fieldname": "enable_promptpay_qr", + "fieldtype": "Check", + "label": "Enable PromptPay QR" + }, + { + "depends_on": "enable_promptpay_qr", + "fieldname": "section_break_bgza", + "fieldtype": "Section Break" + }, + { + "fieldname": "payment_method_title", + "fieldtype": "Data", + "label": "Payment Method Title" + }, + { + "fieldname": "upload_your_promptpay_qr_image", + "fieldtype": "Attach Image", + "label": "Upload your PromptPay QR image" + }, + { + "fieldname": "mode_of_payment_for_qr", + "fieldtype": "Link", + "label": "Mode of payment for Qr", + "options": "Mode of Payment" + }, + { + "fieldname": "bank", + "fieldtype": "Link", + "label": "Bank", + "options": "Bank" + }, + { + "fieldname": "column_break_pnbl", + "fieldtype": "Column Break" + }, + { + "fieldname": "promptpay_account_name", + "fieldtype": "Data", + "label": "PromptPay Account Name", + "mandatory_depends_on": "enable_promptpay_qr" + }, + { + "fieldname": "promptpay_number", + "fieldtype": "Data", + "label": "PromptPay number", + "mandatory_depends_on": "enable_promptpay_qr" + }, + { + "fieldname": "site_favicon", + "fieldtype": "Attach Image", + "label": "Site Favicon" + }, + { + "fieldname": "site_name", + "fieldtype": "Data", + "label": "Site Name", + "reqd": 1 + }, + { + "fieldname": "help_url", + "fieldtype": "Data", + "label": "Help URL" } ], "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-04-09 03:29:53.374665", + "modified": "2024-06-19 20:59:29.146382", "modified_by": "Administrator", "module": "Webshop", "name": "Webshop Settings", diff --git a/webshop/webshop/product_data_engine/query.py b/webshop/webshop/product_data_engine/query.py index 7eb3476494..70fd950541 100644 --- a/webshop/webshop/product_data_engine/query.py +++ b/webshop/webshop/product_data_engine/query.py @@ -266,7 +266,7 @@ def get_price_discount_info(self, item, price_object, discount_list): if item.formatted_mrp: item.discount = price_object.get("formatted_discount_percent") or price_object.get( "formatted_discount_rate" - ) + ) or price_object.get("formatted_discount_amount") def get_stock_availability(self, item): """Modify item object and add stock details.""" diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index b5a935f8e7..7da04f5e7b 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -11,14 +11,14 @@ from erpnext.accounts.utils import get_account_name from webshop.webshop.doctype.webshop_settings.webshop_settings import ( - get_shopping_cart_settings, + get_shopping_cart_settings, ) from webshop.webshop.utils.product import get_web_item_qty_in_stock from erpnext.selling.doctype.quotation.quotation import _make_sales_order class WebsitePriceListMissingError(frappe.ValidationError): - pass + pass def set_cart_count(quotation=None): @@ -57,7 +57,7 @@ def get_cart_quotation(doc=None): @frappe.whitelist() def get_addresses(): - return get_address_docs() + return get_address_docs() @frappe.whitelist() def get_shipping_addresses(party=None): @@ -96,6 +96,7 @@ def get_billing_addresses(party=None): @frappe.whitelist() def get_address(address_name): + print("//////////get_address///////////////") portal_user = frappe.get_last_doc("Portal User", filters={ "user": frappe.session.user, "parenttype": "Customer" @@ -164,6 +165,15 @@ def delete_address(address_name): frappe.throw(_("Address not found")) frappe.db.set_value("Address", address_name, "disabled", 1) + + quotations = frappe.get_all("Quotation", filters={ + "shipping_address_name": address_name + }) + for quotation in quotations: + frappe.get_doc("Quotation", quotation.name).update({ + "shipping_address_name": None, + "shipping_address": None + }).save(ignore_permissions=True) @frappe.whitelist() @@ -218,7 +228,19 @@ def place_order(): if hasattr(frappe.local, "cookie_manager"): frappe.local.cookie_manager.delete_cookie("cart_count") - return sales_order.name + # make sales invoice + from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice + sales_invoice = make_sales_invoice(sales_order.name, ignore_permissions=True) + sales_invoice.custom_channel = "Website" + sales_invoice.update_stock = 0 if cint(cart_settings.allow_items_not_in_stock) else 1 + for item in sales_invoice.items: + item.warehouse = None + # sales_invoice.set_target_warehouse = None + sales_invoice.save(ignore_permissions=True) + sales_invoice.submit() + print("sales_invoice", sales_invoice.name) + + return sales_invoice.name @frappe.whitelist() @@ -499,10 +521,8 @@ def _get_cart_quotation(party=None): def update_party(fullname, company_name=None, mobile_no=None, phone=None): - print("//////////update_party///////////////") party = get_party() - print("//////////update_party end///////////////") - + party.customer_name = company_name or fullname party.customer_type = "Company" if company_name else "Individual" @@ -658,10 +678,11 @@ def get_party(user=None): fullname = get_fullname(user) customer_doc = frappe.get_doc({ 'doctype':"Customer", - 'customer_name': fullname, + # 'customer_name': fullname, + 'customer_name': user, 'email_id': user, 'email': user, - 'type': 'Individual', + 'customer_type': 'Individual', 'customer_group': get_shopping_cart_settings().default_customer_group, 'territory': get_root_of("Territory") }) @@ -728,12 +749,12 @@ def get_debtors_account(cart_settings): def get_address_docs( - doctype=None, - txt=None, - filters=None, - limit_start=0, - limit_page_length=20, - party=None, + doctype=None, + txt=None, + filters=None, + limit_start=0, + limit_page_length=20, + party=None, ): if not party: print("//////////get_address_docs///////////////") @@ -810,19 +831,15 @@ def get_shipping_rules(quotation=None, cart_settings=None): "Address", quotation.shipping_address_name, "country" ) if country: - sr_country = frappe.qb.DocType("Shipping Rule Country") - sr = frappe.qb.DocType("Shipping Rule") - query = ( - frappe.qb.from_(sr_country) - .join(sr) - .on(sr.name == sr_country.parent) - .select(sr.name) - .distinct() - .where((sr_country.country == country) & (sr.disabled != 1)) - ) - result = query.run(as_list=True) - print("result => ", result) - shipping_rules = [x[0] for x in result] + res = frappe.get_all( + "Shipping Rule", + filters={"custom_show_on_website": 1, "disabled": 0}, + or_filters=[ + {"country": country}, + {"country": ""}, + ], + ) + shipping_rules = [x.get("name") for x in res] return shipping_rules diff --git a/webshop/webshop/shopping_cart/product_info.py b/webshop/webshop/shopping_cart/product_info.py index a8d85185b6..55b6846d28 100644 --- a/webshop/webshop/shopping_cart/product_info.py +++ b/webshop/webshop/shopping_cart/product_info.py @@ -11,6 +11,7 @@ from erpnext.utilities.product import (get_price) from webshop.webshop.utils.product import (get_non_stock_item_status, get_web_item_qty_in_stock) from webshop.webshop.shopping_cart.cart import get_party +from webshop.webshop.variant_selector.utils import get_attributes_and_values @frappe.whitelist(allow_guest=True) @@ -61,10 +62,13 @@ def get_product_info_for_website(item_code, skip_quotation_creation=False): else: stock_status = get_web_item_qty_in_stock(item_code, "website_warehouse") - fields = [ "name", "item_code", "web_item_name", "web_long_description", "short_description", "thumbnail", "item_group", "stock_uom", "slideshow", "website_specifications"] + fields = [ "name", "item_code", "web_item_name", "web_long_description", "short_description", "thumbnail", "item_group", "stock_uom", "slideshow", "website_specifications", "has_variants"] values = frappe.get_cached_value("Website Item", {"item_code": item_code}, fields) product = dict(zip(fields, values)) + if product["has_variants"]: + product["variant_attributes"] = get_attributes_and_values(item_code) + product_info = { "price": price, "qty": 0, From ead21fa4e63d3d51a2084125d348ab2635895e26 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Sun, 30 Jun 2024 16:27:09 +0000 Subject: [PATCH 27/43] add: payment channel doctype --- .../doctype/payment_channel/__init__.py | 0 .../payment_channel/payment_channel.json | 54 +++++++++++++++++++ .../payment_channel/payment_channel.py | 9 ++++ 3 files changed, 63 insertions(+) create mode 100644 webshop/webshop/doctype/payment_channel/__init__.py create mode 100644 webshop/webshop/doctype/payment_channel/payment_channel.json create mode 100644 webshop/webshop/doctype/payment_channel/payment_channel.py diff --git a/webshop/webshop/doctype/payment_channel/__init__.py b/webshop/webshop/doctype/payment_channel/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/webshop/webshop/doctype/payment_channel/payment_channel.json b/webshop/webshop/doctype/payment_channel/payment_channel.json new file mode 100644 index 0000000000..1d8b18697b --- /dev/null +++ b/webshop/webshop/doctype/payment_channel/payment_channel.json @@ -0,0 +1,54 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2024-04-04 06:56:55.620649", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "bank", + "bank_account_name", + "column_break_biqv", + "bank_account_number" + ], + "fields": [ + { + "fieldname": "bank", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Bank", + "options": "Bank", + "reqd": 1 + }, + { + "fieldname": "bank_account_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Bank Account Name", + "reqd": 1 + }, + { + "fieldname": "column_break_biqv", + "fieldtype": "Column Break" + }, + { + "fieldname": "bank_account_number", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Bank Account Number", + "reqd": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2024-06-30 23:23:50.364493", + "modified_by": "Administrator", + "module": "Webshop", + "name": "Payment Channel", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/webshop/webshop/doctype/payment_channel/payment_channel.py b/webshop/webshop/doctype/payment_channel/payment_channel.py new file mode 100644 index 0000000000..2f1543f3c4 --- /dev/null +++ b/webshop/webshop/doctype/payment_channel/payment_channel.py @@ -0,0 +1,9 @@ +# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class PaymentChannel(Document): + pass From 5873e9b145328ca30f167717d7b96442d2cbf732 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Tue, 2 Jul 2024 08:25:32 +0000 Subject: [PATCH 28/43] chnage: field change --- webshop/webshop/api.py | 2 +- webshop/webshop/shopping_cart/cart.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index d8ca550570..26692f9248 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -354,7 +354,7 @@ def confirm_payment(invoice_name, payment_info): payment_entry.mode_of_payment = web_settings.mode_of_payment_for_qr if payment_info.get("payment_method_key") == "1" else web_settings.mode_of_payment_for_bank payment_entry.reference_date = nowdate() payment_entry.reference_no = invoice_name - payment_entry.custom_bank = payment_info.get("bank") if payment_info.get("payment_method_key") == "2" else None + payment_entry.custom_bank_name = payment_info.get("bank") if payment_info.get("payment_method_key") == "2" else None payment_entry.save(ignore_permissions=True) frappe.set_user(current_user) diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 7da04f5e7b..4e400fac8b 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -231,7 +231,7 @@ def place_order(): # make sales invoice from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice sales_invoice = make_sales_invoice(sales_order.name, ignore_permissions=True) - sales_invoice.custom_channel = "Website" + sales_invoice.custom_sales_channel = "Website" sales_invoice.update_stock = 0 if cint(cart_settings.allow_items_not_in_stock) else 1 for item in sales_invoice.items: item.warehouse = None From 746025eebe76840cd3031e7f93dd285ca004ae6b Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 1 Aug 2024 05:52:10 +0000 Subject: [PATCH 29/43] version cut-off --- webshop/public/js/override/item.js | 21 +- webshop/webshop/api.py | 14 +- webshop/webshop/custom/website_item.json | 2962 +++++++++++++++++ .../webshop_settings/webshop_settings.json | 14 +- .../website_item/custom_website_item.py | 196 ++ .../doctype/website_item/website_item.js | 146 + .../doctype/website_item/website_item.json | 9 +- .../doctype/website_item/website_item.py | 28 +- .../doctype/website_item/website_item_list.js | 7 +- webshop/webshop/shopping_cart/cart.py | 6 +- webshop/webshop/shopping_cart/product_info.py | 19 +- 11 files changed, 3395 insertions(+), 27 deletions(-) create mode 100644 webshop/webshop/custom/website_item.json create mode 100644 webshop/webshop/doctype/website_item/custom_website_item.py diff --git a/webshop/public/js/override/item.js b/webshop/public/js/override/item.js index 5289ed42d8..86a0d924b8 100644 --- a/webshop/public/js/override/item.js +++ b/webshop/public/js/override/item.js @@ -10,16 +10,17 @@ frappe.ui.form.on("Item", { freeze: true, freeze_message: __("Publishing Item ..."), callback: function(result) { - frappe.msgprint({ - message: __("Website Item {0} has been created.", - [repl('%(item)s', { - item_encoded: encodeURIComponent(result.message[0]), - item: result.message[1] - })] - ), - title: __("Published"), - indicator: "green" - }); + // frappe.msgprint({ + // message: __("Website Item {0} has been created.", + // [repl('%(item)s', { + // item_encoded: encodeURIComponent(result.message[0]), + // item: result.message[1] + // })] + // ), + // title: __("Published"), + // indicator: "green" + // }); + window.location.href="/app/website-item/"+result.message[0] } }); }, __('Actions')); diff --git a/webshop/webshop/api.py b/webshop/webshop/api.py index 26692f9248..7bd869f1ab 100644 --- a/webshop/webshop/api.py +++ b/webshop/webshop/api.py @@ -156,6 +156,7 @@ def get_orders(filters="{}", start=0, page_size=20): fields="*", limit_start=start, limit_page_length=page_size, + order_by="modified desc" ) count = frappe.db.count("Sales Invoice", filters=filters) return { @@ -167,9 +168,13 @@ def get_orders(filters="{}", start=0, page_size=20): def get_order(invoice_name): party = get_party() sales_invoice = frappe.get_last_doc("Sales Invoice", filters={"name": invoice_name, "customer": party.name}) + have_payment_entry = frappe.db.exists("Payment Entry Reference", {"reference_name": invoice_name}) if not sales_invoice: frappe.throw(_("You are not allowed to access this order")) - return sales_invoice + return { + "have_payment_entry": True if have_payment_entry else False, + **sales_invoice.as_dict() + } @frappe.whitelist() def get_shipping_methods(): @@ -314,7 +319,12 @@ def payment_methods(): payment_info = { 'name': payments.bank_title, 'key': 2, - 'banks_list': banks_list + 'banks_list': [ { + 'bank': bank.get("bank"), + 'bank_account_name': bank.get("bank_account_name"), + 'bank_account_number': bank.get("bank_account_number"), + 'custom_bank_logo': frappe.db.get_value("Bank", bank.get("bank"), "custom_bank_logo") + } for bank in banks_list] } payment_methods.append(payment_info) diff --git a/webshop/webshop/custom/website_item.json b/webshop/webshop/custom/website_item.json new file mode 100644 index 0000000000..a0c66a18e3 --- /dev/null +++ b/webshop/webshop/custom/website_item.json @@ -0,0 +1,2962 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-10 11:21:46.309102", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_eziym", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 27, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "item_group", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-10 11:21:46.309102", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_eziym", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-09 09:56:53.647342", + "default": "eval:doc.custom_sales_price", + "depends_on": "eval:doc.custom_on_sale==1", + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": "item_code.custom_sale_price_not_virtual", + "fetch_if_empty": 1, + "fieldname": "custom_sale_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 61, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_margin", + "is_system_generated": 0, + "is_virtual": 1, + "label": "Sale Price", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-09 09:56:53.647342", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sale_price", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-09 00:05:37.539497", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_saved_or_not", + "fieldtype": "Check", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 6, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "variant_of", + "is_system_generated": 0, + "is_virtual": 0, + "label": "images saved or not", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-09 00:05:37.539497", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_saved_or_not", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-08 16:18:21.038726", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_get_images_from_main_item", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 16, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_images_section_top", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Get Images from Main Item", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-08 16:18:21.038726", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_get_images_from_main_item", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 13:16:11.302786", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_logo_section_in_pricing", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 58, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_8rnbk", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-04 13:16:11.302786", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_logo_section_in_pricing", + "no_copy": 0, + "non_negative": 0, + "options": "", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 12:59:47.113557", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_section_top", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 15, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_images_list", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-04 12:59:47.113557", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_section_top", + "no_copy": 0, + "non_negative": 0, + "options": "", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 02:16:16.875651", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_tgeci", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 35, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "section_break_17", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-04 02:16:16.875651", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_tgeci", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 15:14:12.492209", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_list", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 14, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "slideshow", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 15:14:12.492209", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_list", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:45.195914", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_description", + "fieldtype": "Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 82, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_shipping_title", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Description", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:45.195914", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_description", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:44.701346", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_title", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 81, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_shipping_info", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Shipping Title", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:44.701346", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_title", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:44.272494", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_info", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 80, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_long_description", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Shipping Info
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:44.272494", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_info", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:43.842028", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_long_description", + "fieldtype": "Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 79, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_return__refund_title", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Long Description", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:43.842028", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_long_description", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:43.375530", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_return__refund_title", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 78, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_return__refund_policy", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Return & Refund Title", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:43.375530", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_return__refund_title", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:42.849188", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_return__refund_policy", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 77, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "web_long_description", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Return & Refund Policy
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:42.849188", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_return__refund_policy", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:48.313034", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_get_information_from_main_item", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 73, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_web_information", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Get Information from Main Item", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:48.313034", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_get_information_from_main_item", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:47.432740", + "default": null, + "depends_on": null, + "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_web_information", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 72, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_additional_info", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Web Information", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:47.432740", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_web_information", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:46.477892", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_additional_info", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 71, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "website_warehouse", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Additional Info", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:46.477892", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_additional_info", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:39.373397", + "default": null, + "depends_on": null, + "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_store_inventory", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 69, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_inventory", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Store Inventory", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:39.373397", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_store_inventory", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:38.906599", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_inventory", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 68, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sales_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Inventory", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:38.906599", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_inventory", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:38.156404", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_0n8ml", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 31, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "stock_information_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:38.156404", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_0n8ml", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:40.633488", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 67, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_ct4ct", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sale Price", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:40.633488", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sales_price", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:40.211057", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_ct4ct", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 66, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_set_discount_value", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:40.211057", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_ct4ct", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:39.798356", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_set_discount_value", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 65, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_disc_value", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Set Discount Value", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:39.798356", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_set_discount_value", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:39.391211", + "default": null, + "depends_on": "custom_on_sale", + "description": "Set your discount value based on your selected discount type.", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_disc_value", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 64, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_select_discount_type_", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
2. Set Value
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:39.391211", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_disc_value", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:38.900861", + "default": "Discount Percentage", + "depends_on": null, + "description": "", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_select_discount_type_", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 63, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_discount_type_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Select Discount Type ", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:38.900861", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_select_discount_type_", + "no_copy": 0, + "non_negative": 0, + "options": "Discount Percentage\nDiscount Amount", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:38.449268", + "default": null, + "depends_on": "custom_on_sale", + "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_type_section", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 62, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sale_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
1. Select Type
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:38.449268", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_discount_type_section", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:41:10.474275", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_on_sale", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 56, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "On Sale", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:41:10.474275", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_on_sale", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:36.307102", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_margin", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 60, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_cost_of_goods", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Margin", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:36.307102", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_margin", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:35.415987", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_cost_of_goods", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 59, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_logo_section_in_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Cost of goods", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:35.415987", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_cost_of_goods", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.976493", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_8rnbk", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 57, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_on_sale", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.976493", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_8rnbk", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.516620", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 55, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing_summary", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Price", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.516620", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_price", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.116365", + "default": null, + "depends_on": null, + "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_summary", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 54, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Pricing Summary", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.116365", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_summary", + "no_copy": 0, + "non_negative": 0, + "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:31:26.955361", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_pricing", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 53, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "website_content", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Pricing", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:31:26.955361", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_pricing", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:27:29.545204", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_1ewip", + "fieldtype": "Section Break", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 1, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": null, + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:27:29.545204", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_section_break_1ewip", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:20:55.440897", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_web_category", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 24, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing_virtual", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Website Category
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:20:55.440897", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_web_category", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 15:04:23.017573", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_virtual", + "fieldtype": "Read Only", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 23, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing", + "is_system_generated": 0, + "is_virtual": 1, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 15:04:23.017573", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_virtual", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 15:04:22.636948", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 22, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "published", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Website Pricing
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 15:04:22.636948", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Website Item", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-17 17:18:28.033766", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:28.033766", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-12 15:59:28.885001", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_sale_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.941204", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sale_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:56:14.571155", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_on_sale", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.845037", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_on_sale-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.637960", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "web_item_name", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.757132", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-web_item_name-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-12 16:00:47.619089", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_sales_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.657463", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sales_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.680982", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_group", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-12 15:59:28.675738", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-item_group-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 14:00:30.610684", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "thumbnail", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-11 14:01:04.825601", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-thumbnail-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.737469", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_select_discount_type_", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-11 14:00:30.306365", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_select_discount_type_-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.709695", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "route", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-11 12:07:06.062420", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-route-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-10 15:01:52.200319", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-10 15:01:52.200319", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"custom_images_saved_or_not\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_select_discount_type_\", \"custom_disc_value\", \"custom_set_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-10 11:39:48.830967", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_name", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-10 11:39:48.830967", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-item_name-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-08 14:16:30.202343", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_images", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-08 14:16:30.202343", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_images-in_preview", + "owner": "Administrator", + "property": "in_preview", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 18:32:20.286896", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 18:32:20.286896", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-description-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 13:08:11.896267", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "published", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 13:08:11.896267", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-published-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Show in online store" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:58:08.328023", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "display_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 12:58:08.328023", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-display_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.934230", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "slideshow", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 12:51:29.934230", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-slideshow-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.759972", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_image_alt", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 12:51:29.759972", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_image_alt-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:41:14.596249", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:41:14.596249", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Long Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:41:14.382412", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "short_description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:41:14.382412", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-short_description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Short Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:52.230639", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "advanced_display_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:52.230639", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-advanced_display_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:52.023233", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_6", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:52.023233", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-section_break_6-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.842150", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "offers_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.842150", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-offers_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.642710", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "recommended_items_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.642710", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-recommended_items_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.435972", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "display_additional_information_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.435972", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-display_additional_information_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.224275", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_17", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.224275", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-section_break_17-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.003988", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "stock_information_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.003988", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-stock_information_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:19:37.907817", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_warehouse", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:19:37.907817", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_warehouse-description", + "owner": "Administrator", + "property": "description", + "property_type": "Text", + "row_name": null, + "value": "Entering the first Stock of this product to track the inventory" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.json b/webshop/webshop/doctype/webshop_settings/webshop_settings.json index 98ac261220..5ef992c4f2 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.json +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.json @@ -7,7 +7,6 @@ "field_order": [ "site_name", "products_per_page", - "default_product_image", "brand_logo", "site_favicon", "default_language", @@ -35,6 +34,7 @@ "company", "price_list", "enabled", + "add_to_cart_label", "store_page_docs", "column_break_21", "default_customer_group", @@ -394,11 +394,6 @@ "label": "Enable Redisearch", "read_only_depends_on": "eval:!doc.is_redisearch_loaded" }, - { - "fieldname": "default_product_image", - "fieldtype": "Attach Image", - "label": "Default Product Image" - }, { "fieldname": "brand_logo", "fieldtype": "Attach Image", @@ -543,12 +538,17 @@ "fieldname": "help_url", "fieldtype": "Data", "label": "Help URL" + }, + { + "fieldname": "add_to_cart_label", + "fieldtype": "Data", + "label": "Add To Cart Label" } ], "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-06-19 20:59:29.146382", + "modified": "2024-07-11 13:11:39.212717", "modified_by": "Administrator", "module": "Webshop", "name": "Webshop Settings", diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py new file mode 100644 index 0000000000..027e40d5ba --- /dev/null +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -0,0 +1,196 @@ +import json +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from erpnext.stock.doctype.item.item import Item + +import frappe +from frappe import _ +from frappe.utils import cint, cstr, flt, random_string +from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow +from frappe.website.website_generator import WebsiteGenerator + +from webshop.webshop.doctype.item_review.item_review import get_item_reviews +from webshop.webshop.redisearch_utils import ( + delete_item_from_index, + insert_item_to_index, + update_index_for_item, +) +from webshop.webshop.shopping_cart.cart import _set_price_list +from webshop.webshop.doctype.override_doctype.item_group import ( + get_parent_item_groups, + invalidate_cache_for, +) +from erpnext.stock.doctype.item.item import Item +from erpnext.utilities.product import get_price +from webshop.webshop.shopping_cart.cart import get_party +from webshop.webshop.variant_selector.item_variants_cache import ( + ItemVariantsCacheManager, +) +import erpnext + +class CustomWebSiteItem( ): + + def before_validate(self): + self.website_image = self.website_images[0].file_url if self.website_images else None + + @property + def custom_website_pricing_virtual(self): + currency = frappe.defaults.get_global_default('currency') + if self.custom_on_sale: + if self.custom_on_sale: + discount_in_percentage = self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else self.custom_set_discount_value / self.custom_price * 100 if self.custom_price else 0 + discount_in_value = (self.custom_set_discount_value / 100) * self.custom_price if self.custom_select_discount_type_ == 'Discount Percentage' else self.custom_set_discount_value + custom_sale_price = self.custom_sales_price = (self.custom_price or 0) - (discount_in_value or 0) + else: + discount_in_percentage = 0 + discount_in_value = 0 + custom_sale_price = 0 + custom_price = self.custom_price + + + custom_sale_price = float(custom_sale_price) if isinstance(custom_sale_price, str) else custom_sale_price + custom_sale_price=custom_sale_price if self.custom_on_sale else 0 + # discount_in_percentage = float(discount_in_percentage) if isinstance(discount_in_percentage, str) else discount_in_percentage + discount_in_value = float(discount_in_value) if isinstance(discount_in_value, str) else discount_in_value + + + return f''' +
+
+ Price + {frappe.utils.fmt_money(self.custom_price, currency=currency)} +
+ {'
Sales Price'+frappe.utils.fmt_money(custom_sale_price,currency=currency)+'
' if custom_sale_price>0 else ""} +
+ {f'Discount in %{round(discount_in_percentage, 2):g} %' if discount_in_percentage > 0 else ""} +
+ {'
Discount in Value'+frappe.utils.fmt_money(discount_in_value, currency=currency)+'
' if discount_in_value>0 else ""} +
+ ''' + + def before_save(self): + if self.is_new(): + if self.item_code: + item_doc = frappe.get_doc('Item', self.item_code) + self.custom_price = item_doc.standard_rate + self.custom_on_sale = item_doc.custom_on_sale + self.custom_select_discount_type_ = item_doc.custom_discount_type + self.custom_set_discount_value = item_doc.custom_discount_value + self.custom_sales_price = item_doc.custom_sale_price + self.custom_sale_price = item_doc.custom_sales_price_1 + self.update_price() + self.update_pricing_rule() + + fields = self.get_changed_fields() + if fields and len(fields) >= 2: + if self.custom_price: + self.update_price() + self.update_pricing_rule() + else: + pass + + + def update_pricing_rule(self): + price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) + existing_rules = frappe.db.exists('Pricing Rule', {'title': self.item_code, 'for_price_list': price_list}) + + if existing_rules: + pricing_rule = frappe.get_doc('Pricing Rule', existing_rules) + pricing_rule.update({ + 'disable': 0 if self.custom_on_sale else 1, + 'rate_or_discount': self.custom_select_discount_type_, + 'rate': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Rate' else 0, + 'discount_amount': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Amount' else 0, + 'discount_percentage': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else 0 + }) + # Save the document + pricing_rule.save() + else: + self.add_pricing_rule() + + + def add_pricing_rule(self): + price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) + pricing_rule = frappe.get_doc({ + 'doctype': 'Pricing Rule', + 'apply_on': "Item Code", + 'price_or_product_discount': "Price", + 'selling': 1, + 'for_price_list': price_list, + 'title': self.item_code, + 'pricing_rule_name': self.item_code, + 'currency': erpnext.get_default_currency(), + 'rate_or_discount': self.custom_select_discount_type_, + 'rate': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Rate' else 0, + 'discount_amount': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Amount' else 0, + 'discount_percentage': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else 0, + 'items': [{ + 'item_code': self.item_code + }] + }) + pricing_rule.insert() + return pricing_rule + + def update_price(self, price_list=None): + if self.custom_price: + if not price_list: + price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) + + existing_price = frappe.db.exists('Item Price', {'item_code': self.item_code,'price_list': price_list}) + if existing_price: + frappe.db.set_value('Item Price', existing_price, 'price_list_rate', self.custom_price) + else: + if price_list: + item_price = frappe.get_doc( + { + "doctype": "Item Price", + "price_list": price_list, + "item_code": self.item_code, + "currency": erpnext.get_default_currency(), + "price_list_rate": self.custom_price, + } + ) + item_price.insert() + self.item_price = item_price + + def get_changed_fields(self): + changed_fields = [] + initilaized_fields = [] + old_doc = self.get_doc_before_save() + if not old_doc: + return [] + for field in frappe.get_meta(self.doctype).fields: + if not field.is_virtual and field.fieldtype != 'Table': + if self.get(field.fieldname) != None and old_doc.get(field.fieldname) == None: + initilaized_fields.append(field.fieldname) + + if self.get(field.fieldname) != old_doc.get(field.fieldname): + changed_fields.append(field.fieldname) + + return [changed_fields, initilaized_fields] + + +@frappe.whitelist() +def get_item_data_for_web_item(reference,item_name): + main_item = frappe.get_doc("Item",item_name) + if( main_item is not None ): + temp_dict=dict({ + "custom_short_description":main_item.custom_short_description, + "description":main_item.description, + "custom_return__refund_title":main_item.custom_return__refund_title, + "custom_return__refund_description":main_item.custom_return__refund_description, + "custom_shipping_title":main_item.custom_shipping_title, + "custom_shipping_description":main_item.custom_shipping_description, + }) + frappe.response['message'] = temp_dict + else: + frappe.response['message'] = "None" + +@frappe.whitelist() +def get_item_images_for_web_item_from_script(main_item_code): + main_item = frappe.get_doc("Item",main_item_code) + if( main_item is not None ): + frappe.response['message'] = main_item.custom_images + else: + frappe.response['message'] = "None" \ No newline at end of file diff --git a/webshop/webshop/doctype/website_item/website_item.js b/webshop/webshop/doctype/website_item/website_item.js index e82cd1d933..b5eb5bdd33 100644 --- a/webshop/webshop/doctype/website_item/website_item.js +++ b/webshop/webshop/doctype/website_item/website_item.js @@ -3,10 +3,75 @@ frappe.ui.form.on('Website Item', { onload: (frm) => { + let images_button=$(".btn-attach[data-fieldname='website_images']"); + images_button.html("Upload Images"); + images_button.css("visibility","hidden"); + + frm.set_df_property("description", "read_only", 0); // should never check Private frm.fields_dict["website_image"].df.is_private = 0; + + if( !frm.doc.custom_images_saved_or_not && frm.doc.item_code!= null ){ + fetch_images( frm ); + frm.set_value("custom_images_saved_or_not",true,0,1) + frappe.toast("Website Item is Created"); + frm.save() + } + if( frm.doc.custom_on_sale && frm.doc.custom_sales_price>0 ) + frm.set_value("custom_sale_price", frm.doc.custom_sales_price, 0 , 1 ); + }, + onload_post_render: (frm)=>{ + setTimeout(function(frm) { + console.log("loaded") + let images_button=$(".btn-attach[data-fieldname='website_images']"); + images_button.css("visibility","visible"); + $("div[data-fieldname='website_images']").find(".row").after(images_button); + }, 1200); + }, + custom_price: function(frm) { + update_sale_price(frm) + }, + custom_select_discount_type_: function(frm) { + update_sale_price(frm) + }, + custom_sales_price: function(frm) { + reverse_update_sale_price(frm) + }, + custom_set_discount_value: function(frm) { + update_sale_price(frm) }, + custom_get_information_from_main_item(frm) { + if( frm.doc.item_code== null ){ + frappe.msgprint("Please add item code to proceed"); + } + frappe.call({ + freeze: true, + freeze_message: "Loading item data...", + method: 'webshop.webshop.doctype.website_item.custom_website_item.get_item_data_for_web_item', + args: { + 'reference': frm.doc.name, + 'item_name': frm.doc.item_code, + }, + callback: function(r) { + response=r.message; + frm.set_value("short_description",response.custom_short_description); + frm.set_value("web_long_description",response.description); + frm.set_value("custom_return__refund_title",response.custom_return__refund_title); + frm.set_value("custom_long_description",response.custom_return__refund_description); + frm.set_value("custom_shipping_title",response.custom_shipping_title); + frm.set_value("custom_shipping_description",response.custom_shipping_description); + } + }); + }, + custom_get_images_from_main_item(frm){ + if( frm.doc.item_code== null ){ + frappe.msgprint("Please add item code to proceed"); + }else{ + fetch_images( frm ) + } + + }, refresh: (frm) => { frm.add_custom_button(__("Prices"), function() { frappe.set_route("List", "Item Price", {"item_code": frm.doc.item_code}); @@ -35,3 +100,84 @@ frappe.ui.form.on('Website Item', { frappe.utils.set_meta_tag(frm.doc.route); } }); +function fetch_images(frm){ + frappe.call({ + freeze: true, + freeze_message: "Fetching Images", + method: 'webshop.webshop.doctype.website_item.custom_website_item.get_item_images_for_web_item_from_script', + args: { + 'main_item_code': frm.doc.item_code, + }, + callback: function(r) { + response=r.message; + frm.set_value("website_images","",0,1); + + response.forEach(element => { + var row = frm.add_child('website_images',{ + image:element.image, + file_type:element.file_type, + file_url:element.file_url, + thumbnail_url:element.file_url, + file_size:element.file_size, + }); + }); + } + }); +} +function update_sale_price(frm){ + let sale_price = 0; + if( frm.doc.custom_on_sale ){ + if( frm.doc.custom_set_discount_value <0 ){ + frappe.msgprint("Negative numbers are not allowed") + frm.set_value("custom_set_discount_value", 0 ); + return; + } + if( frm.doc.custom_select_discount_type_ == "Discount Percentage" ){ + if( frm.doc.custom_set_discount_value > 100 ){ + frappe.msgprint("Discount percentage cannot be more than 100%") + frm.set_value("custom_set_discount_value", 0 ); + return; + } + sale_price = frm.doc.custom_set_discount_value/100; + sale_price = frm.doc.custom_price - (frm.doc.custom_price * sale_price); + }else{ + if( frm.doc.custom_set_discount_value > frm.doc.custom_price ){ + frappe.msgprint("Sale price cannot be more than the product price") + frm.set_value("custom_set_discount_value", 0 ); + return; + } + sale_price = frm.doc.custom_price - frm.doc.custom_set_discount_value; + } + let discounted_value=Math.round((sale_price + Number.EPSILON) * 100) / 100; + if( discounted_value<1 || discounted_value== null || isNaN(discounted_value) ){ + discounted_value=0; + } + discounted_value.toFixed(2) + frm.set_value("custom_sale_price", discounted_value ); + $(".input-with-feedback[data-fieldname='custom_sales_price']").val(discounted_value); + // frm.set_value("custom_sales_price", discounted_value ); + //frm.set_value("custom_sales_price", discounted_value ); + } +} + function reverse_update_sale_price(frm){ + + if( frm.doc.custom_sales_price > frm.doc.custom_price ){ + frappe.msgprint("Discount cannot be more than the product price") + frm.set_value("custom_set_discount_value", 0 ); + return; + } + + let sale_price = 0; + if( frm.doc.custom_on_sale ){ + discounted_value = frm.doc.custom_price - frm.doc.custom_sales_price; + sale_price = frm.doc.custom_sales_price; + if( frm.doc.custom_select_discount_type_ == "Discount Percentage" ){ + frm.set_value("custom_select_discount_type_", "Discount Amount" ); + } + frm.set_value("custom_set_discount_value", discounted_value ); + // frm.set_value("custom_sales_price", sale_price ); + } + $(".input-with-feedback[data-fieldname='custom_sales_price']").val($(".input-with-feedback[data-fieldname='custom_sales_price']").val()); + return; + } + diff --git a/webshop/webshop/doctype/website_item/website_item.json b/webshop/webshop/doctype/website_item/website_item.json index 6e23a13e92..89bf9c0e13 100644 --- a/webshop/webshop/doctype/website_item/website_item.json +++ b/webshop/webshop/doctype/website_item/website_item.json @@ -24,6 +24,7 @@ "brand", "display_section", "website_image", + "website_images", "website_image_alt", "column_break_13", "slideshow", @@ -341,6 +342,12 @@ "fieldname": "on_backorder", "fieldtype": "Check", "label": "On Backorder" + }, + { + "fieldname": "website_images", + "fieldtype": "Attach Multiple Images", + "label": "Website images", + "options": "Image List" } ], "has_web_view": 1, @@ -348,7 +355,7 @@ "index_web_pages_for_search": 1, "links": [], "make_attachments_public": 1, - "modified": "2022-09-30 04:01:52.090732", + "modified": "2024-07-04 07:06:05.856466", "modified_by": "Administrator", "module": "Webshop", "name": "Website Item", diff --git a/webshop/webshop/doctype/website_item/website_item.py b/webshop/webshop/doctype/website_item/website_item.py index aa7e3de347..32a269efd1 100644 --- a/webshop/webshop/doctype/website_item/website_item.py +++ b/webshop/webshop/doctype/website_item/website_item.py @@ -31,9 +31,8 @@ from webshop.webshop.variant_selector.item_variants_cache import ( ItemVariantsCacheManager, ) - - -class WebsiteItem(WebsiteGenerator): +from webshop.webshop.doctype.website_item.custom_website_item import CustomWebSiteItem +class WebsiteItem(WebsiteGenerator,CustomWebSiteItem): website = frappe._dict( page_title_field="web_item_name", condition_field="published", @@ -80,6 +79,7 @@ def validate(self): def on_update(self): invalidate_cache_for_web_item(self) + self.update_template_item() def on_trash(self): @@ -527,10 +527,30 @@ def make_website_item(doc, save=True): "variant_of", "description", ] + + for field in fields_to_map: website_item.update({field: doc.get(field)}) + website_item.short_description=doc.get("custom_short_description") + website_item.web_long_description=doc.get("description") + website_item.custom_return__refund_title=doc.get("custom_return__refund_title") + website_item.custom_long_description=doc.get("custom_return__refund_description") + website_item.custom_shipping_title=doc.get("custom_shipping_title") + website_item.custom_shipping_description=doc.get("custom_shipping_description") + # img_doc= frappe.get_doc("File","") + # const_img={ + # "image": img_doc, + # "file_type": img_doc.file_type, + # "file_url": img_doc.file_url, + # "thumbnail_url": img_doc.thumbnail_url, + # "file_size": img_doc.file_size, + # } + # # website_item.custom_images=const_img + # frappe.msgprint(str(const_img)) # Needed for publishing/mapping via Form UI only + + if not frappe.flags.in_migrate and ( doc.get("image") and not website_item.website_image ): @@ -540,7 +560,7 @@ def make_website_item(doc, save=True): return website_item website_item.save() - + # Add to search cache insert_item_to_index(website_item) diff --git a/webshop/webshop/doctype/website_item/website_item_list.js b/webshop/webshop/doctype/website_item/website_item_list.js index b9dd9214a3..f8800be37e 100644 --- a/webshop/webshop/doctype/website_item/website_item_list.js +++ b/webshop/webshop/doctype/website_item/website_item_list.js @@ -16,5 +16,10 @@ frappe.listview_settings['Website Item'] = { } else { return [__("Not Published"), "grey", "published,=,0"]; } - } + }, + + // onload(listview) { + // $(".primary-action[data-label='Add Website Item']").css("display","none"); + // }, + }; \ No newline at end of file diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 4e400fac8b..e64571f265 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -167,8 +167,10 @@ def delete_address(address_name): frappe.db.set_value("Address", address_name, "disabled", 1) quotations = frappe.get_all("Quotation", filters={ + "status": "Draft", "shipping_address_name": address_name }) + for quotation in quotations: frappe.get_doc("Quotation", quotation.name).update({ "shipping_address_name": None, @@ -231,6 +233,8 @@ def place_order(): # make sales invoice from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice sales_invoice = make_sales_invoice(sales_order.name, ignore_permissions=True) + print("sales_order.base_discount_amount", sales_order.base_discount_amount) + print("base_discount_amoun", sales_invoice.base_discount_amount) sales_invoice.custom_sales_channel = "Website" sales_invoice.update_stock = 0 if cint(cart_settings.allow_items_not_in_stock) else 1 for item in sales_invoice.items: @@ -238,7 +242,7 @@ def place_order(): # sales_invoice.set_target_warehouse = None sales_invoice.save(ignore_permissions=True) sales_invoice.submit() - print("sales_invoice", sales_invoice.name) + # print("sales_invoice", sales_invoice.name) return sales_invoice.name diff --git a/webshop/webshop/shopping_cart/product_info.py b/webshop/webshop/shopping_cart/product_info.py index 55b6846d28..433632261a 100644 --- a/webshop/webshop/shopping_cart/product_info.py +++ b/webshop/webshop/shopping_cart/product_info.py @@ -62,7 +62,24 @@ def get_product_info_for_website(item_code, skip_quotation_creation=False): else: stock_status = get_web_item_qty_in_stock(item_code, "website_warehouse") - fields = [ "name", "item_code", "web_item_name", "web_long_description", "short_description", "thumbnail", "item_group", "stock_uom", "slideshow", "website_specifications", "has_variants"] + fields = [ + "name", + "item_code", + "web_item_name", + "web_long_description", + "short_description", + "thumbnail", + "item_group", + "stock_uom", + "slideshow", + "website_images", + "website_specifications", + "has_variants", + "custom_return__refund_title", + "custom_long_description", + "custom_shipping_title", + "custom_shipping_description" + ] values = frappe.get_cached_value("Website Item", {"item_code": item_code}, fields) product = dict(zip(fields, values)) From 34988a08e81b92a3dbce67ef655fa4e13dd97a60 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Wed, 14 Aug 2024 19:11:06 +0500 Subject: [PATCH 30/43] fix: add missing properties --- webshop/webshop/custom/shipping_rule.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webshop/webshop/custom/shipping_rule.json b/webshop/webshop/custom/shipping_rule.json index 427cb943d3..bbab3354bb 100644 --- a/webshop/webshop/custom/shipping_rule.json +++ b/webshop/webshop/custom/shipping_rule.json @@ -63,5 +63,9 @@ "width": null } ], + "custom_perms": [], + "doctype": "Shipping Rule", + "links": [], + "property_setters": [], "sync_on_migrate": 1 } \ No newline at end of file From df28f3002f59b99ed2a5a85da09a79b828349bb5 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Wed, 14 Aug 2024 19:44:13 +0500 Subject: [PATCH 31/43] feat: set default language to English in webshop settings --- webshop/webshop/doctype/webshop_settings/webshop_settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.json b/webshop/webshop/doctype/webshop_settings/webshop_settings.json index 5ef992c4f2..ab8864beba 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.json +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.json @@ -413,6 +413,7 @@ }, { "fieldname": "default_language", + "default": "en", "fieldtype": "Link", "label": "Default Language", "options": "Language", From 7ee097403a3f75196d7662601b3a3e25a10d7db0 Mon Sep 17 00:00:00 2001 From: Muhammad Umer Farooq <35496058+umer2001@users.noreply.github.com> Date: Wed, 9 Oct 2024 04:59:08 +0000 Subject: [PATCH 32/43] fix: unexpected argument customer_group to _make_sales_order --- webshop/webshop/shopping_cart/cart.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index e64571f265..9e28bceeff 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -194,11 +194,9 @@ def place_order(): if not (quotation.shipping_address_name or quotation.customer_address): frappe.throw(_("Set Shipping Address or Billing Address")) - customer_group = cart_settings.default_customer_group - sales_order = frappe.get_doc( _make_sales_order( - quotation.name, customer_group=customer_group, ignore_permissions=True + quotation.name, ignore_permissions=True ) ) sales_order.payment_schedule = [] From fe7153a2a56ca916cb361c779f3897fe3146b0f4 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 10 Oct 2024 13:29:39 +0700 Subject: [PATCH 33/43] fix: webshopItem object has no attribute ''custom_sale_price" --- .../website_item/custom_website_item.py | 54 +++++-------------- .../doctype/website_item/website_item.py | 13 ++--- 2 files changed, 21 insertions(+), 46 deletions(-) diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index 027e40d5ba..66f334ac2f 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -1,4 +1,3 @@ -import json from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -6,30 +5,11 @@ import frappe from frappe import _ -from frappe.utils import cint, cstr, flt, random_string -from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow -from frappe.website.website_generator import WebsiteGenerator -from webshop.webshop.doctype.item_review.item_review import get_item_reviews -from webshop.webshop.redisearch_utils import ( - delete_item_from_index, - insert_item_to_index, - update_index_for_item, -) -from webshop.webshop.shopping_cart.cart import _set_price_list -from webshop.webshop.doctype.override_doctype.item_group import ( - get_parent_item_groups, - invalidate_cache_for, -) -from erpnext.stock.doctype.item.item import Item -from erpnext.utilities.product import get_price from webshop.webshop.shopping_cart.cart import get_party -from webshop.webshop.variant_selector.item_variants_cache import ( - ItemVariantsCacheManager, -) import erpnext -class CustomWebSiteItem( ): +class CustomWebSiteItem(): def before_validate(self): self.website_image = self.website_images[0].file_url if self.website_images else None @@ -70,25 +50,19 @@ def custom_website_pricing_virtual(self): ''' def before_save(self): - if self.is_new(): - if self.item_code: - item_doc = frappe.get_doc('Item', self.item_code) - self.custom_price = item_doc.standard_rate - self.custom_on_sale = item_doc.custom_on_sale - self.custom_select_discount_type_ = item_doc.custom_discount_type - self.custom_set_discount_value = item_doc.custom_discount_value - self.custom_sales_price = item_doc.custom_sale_price - self.custom_sale_price = item_doc.custom_sales_price_1 - self.update_price() - self.update_pricing_rule() - - fields = self.get_changed_fields() - if fields and len(fields) >= 2: - if self.custom_price: - self.update_price() - self.update_pricing_rule() - else: - pass + old_doc = self.get_doc_before_save() + if not old_doc: + return + changed_fields, initilaized_fields = self.get_changed_fields() + if (self.custom_discount_type or self.custom_discount_value) and self.default_pricing_rule == None: + self.add_pricing_rule() + elif "custom_on_sale" in changed_fields or "custom_discount_type" in changed_fields or "custom_discount_value" in changed_fields: + self.update_pricing_rule() + + if "standard_rate" in initilaized_fields: + self.add_price(self.name, self.standard_rate) + elif "standard_rate" in changed_fields: + self.update_price() def update_pricing_rule(self): diff --git a/webshop/webshop/doctype/website_item/website_item.py b/webshop/webshop/doctype/website_item/website_item.py index 32a269efd1..abc12285e7 100644 --- a/webshop/webshop/doctype/website_item/website_item.py +++ b/webshop/webshop/doctype/website_item/website_item.py @@ -532,12 +532,13 @@ def make_website_item(doc, save=True): for field in fields_to_map: website_item.update({field: doc.get(field)}) - website_item.short_description=doc.get("custom_short_description") - website_item.web_long_description=doc.get("description") - website_item.custom_return__refund_title=doc.get("custom_return__refund_title") - website_item.custom_long_description=doc.get("custom_return__refund_description") - website_item.custom_shipping_title=doc.get("custom_shipping_title") - website_item.custom_shipping_description=doc.get("custom_shipping_description") + website_item.short_description= doc.get("custom_short_description") + website_item.web_long_description= doc.get("description") + website_item.custom_return__refund_title= doc.get("custom_return__refund_title") + website_item.custom_long_description= doc.get("custom_return__refund_description") + website_item.custom_shipping_title= doc.get("custom_shipping_title") + website_item.custom_shipping_description= doc.get("custom_shipping_description") + website_item.custom_sale_price = doc.get("custom_sale_price") # img_doc= frappe.get_doc("File","") # const_img={ # "image": img_doc, From f0a6b5bcc2f159d1a676beca0844cc58dddbf56d Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 10 Oct 2024 13:51:25 +0700 Subject: [PATCH 34/43] fix: 'WebsiteItem' object has no attribute 'custom_discount_type' --- webshop/webshop/custom/website_item.json | 5920 ++++++++--------- .../website_item/custom_website_item.py | 20 +- .../doctype/website_item/website_item.js | 194 +- 3 files changed, 3067 insertions(+), 3067 deletions(-) diff --git a/webshop/webshop/custom/website_item.json b/webshop/webshop/custom/website_item.json index a0c66a18e3..bbaef8f501 100644 --- a/webshop/webshop/custom/website_item.json +++ b/webshop/webshop/custom/website_item.json @@ -1,2962 +1,2962 @@ { - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-10 11:21:46.309102", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_eziym", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 27, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "item_group", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-10 11:21:46.309102", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_eziym", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-09 09:56:53.647342", - "default": "eval:doc.custom_sales_price", - "depends_on": "eval:doc.custom_on_sale==1", - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": "item_code.custom_sale_price_not_virtual", - "fetch_if_empty": 1, - "fieldname": "custom_sale_price", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 61, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_margin", - "is_system_generated": 0, - "is_virtual": 1, - "label": "Sale Price", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-09 09:56:53.647342", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sale_price", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-09 00:05:37.539497", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_images_saved_or_not", - "fieldtype": "Check", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 6, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "variant_of", - "is_system_generated": 0, - "is_virtual": 0, - "label": "images saved or not", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-09 00:05:37.539497", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_images_saved_or_not", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-08 16:18:21.038726", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_get_images_from_main_item", - "fieldtype": "Button", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 16, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_images_section_top", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Get Images from Main Item", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-08 16:18:21.038726", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_get_images_from_main_item", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-04 13:16:11.302786", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_logo_section_in_pricing", - "fieldtype": "HTML", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 58, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_column_break_8rnbk", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-04 13:16:11.302786", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_logo_section_in_pricing", - "no_copy": 0, - "non_negative": 0, - "options": "", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-04 12:59:47.113557", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_images_section_top", - "fieldtype": "HTML", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 15, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_images_list", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-04 12:59:47.113557", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_images_section_top", - "no_copy": 0, - "non_negative": 0, - "options": "", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-04 02:16:16.875651", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_tgeci", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 35, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "section_break_17", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-04 02:16:16.875651", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_tgeci", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 15:14:12.492209", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_images_list", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 14, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "slideshow", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 15:14:12.492209", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_images_list", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:45.195914", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_shipping_description", - "fieldtype": "Text", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 82, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_shipping_title", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Description", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:45.195914", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_shipping_description", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:44.701346", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_shipping_title", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 81, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_shipping_info", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Shipping Title", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:44.701346", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_shipping_title", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:44.272494", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_shipping_info", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 80, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_long_description", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Shipping Info
", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:44.272494", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_shipping_info", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:43.842028", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_long_description", - "fieldtype": "Text", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 79, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_return__refund_title", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Long Description", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:43.842028", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_long_description", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:43.375530", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_return__refund_title", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 78, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_return__refund_policy", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Return & Refund Title", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:43.375530", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_return__refund_title", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:42.849188", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_return__refund_policy", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 77, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "web_long_description", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Return & Refund Policy
", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:42.849188", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_return__refund_policy", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:37:48.313034", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_get_information_from_main_item", - "fieldtype": "Button", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 73, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_web_information", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Get Information from Main Item", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:48.313034", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_get_information_from_main_item", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:37:47.432740", - "default": null, - "depends_on": null, - "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_web_information", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 72, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_additional_info", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Web Information", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:47.432740", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_web_information", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:37:46.477892", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_additional_info", - "fieldtype": "Tab Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 71, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "website_warehouse", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Additional Info", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:46.477892", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_additional_info", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:19:39.373397", - "default": null, - "depends_on": null, - "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_store_inventory", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 69, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_inventory", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Website Store Inventory", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:39.373397", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_store_inventory", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:19:38.906599", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_inventory", - "fieldtype": "Tab Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 68, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_sales_price", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Inventory", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:38.906599", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_inventory", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:19:38.156404", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_0n8ml", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 31, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "stock_information_section", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:38.156404", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_0n8ml", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:40.633488", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_sales_price", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 67, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_column_break_ct4ct", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Sale Price", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:40.633488", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sales_price", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:40.211057", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_ct4ct", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 66, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_set_discount_value", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:40.211057", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_ct4ct", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:39.798356", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_set_discount_value", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 65, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_disc_value", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Set Discount Value", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:39.798356", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_set_discount_value", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:39.391211", - "default": null, - "depends_on": "custom_on_sale", - "description": "Set your discount value based on your selected discount type.", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_disc_value", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 64, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_select_discount_type_", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
2. Set Value
", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:39.391211", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_disc_value", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:38.900861", - "default": "Discount Percentage", - "depends_on": null, - "description": "", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_select_discount_type_", - "fieldtype": "Select", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 63, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_discount_type_section", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Select Discount Type ", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:38.900861", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_select_discount_type_", - "no_copy": 0, - "non_negative": 0, - "options": "Discount Percentage\nDiscount Amount", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:38.449268", - "default": null, - "depends_on": "custom_on_sale", - "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_discount_type_section", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 62, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_sale_price", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
1. Select Type
", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:38.449268", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_discount_type_section", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:41:10.474275", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_on_sale", - "fieldtype": "Check", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 56, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_price", - "is_system_generated": 0, - "is_virtual": 0, - "label": "On Sale", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:41:10.474275", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_on_sale", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:36.307102", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_margin", - "fieldtype": "Currency", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 60, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_cost_of_goods", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Margin", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:36.307102", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_margin", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:35.415987", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_cost_of_goods", - "fieldtype": "Currency", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 59, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_logo_section_in_pricing", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Cost of goods", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:35.415987", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_cost_of_goods", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:34.976493", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_8rnbk", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 57, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_on_sale", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.976493", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_8rnbk", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:34.516620", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_price", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 55, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_website_pricing_summary", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Price", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.516620", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_price", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:34.116365", - "default": null, - "depends_on": null, - "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_pricing_summary", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 54, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_pricing", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Website Pricing Summary", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.116365", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_pricing_summary", - "no_copy": 0, - "non_negative": 0, - "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:31:26.955361", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_pricing", - "fieldtype": "Tab Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 53, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "website_content", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Pricing", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:31:26.955361", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_pricing", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:27:29.545204", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_section_break_1ewip", - "fieldtype": "Section Break", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 1, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": null, - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:27:29.545204", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_section_break_1ewip", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:20:55.440897", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_web_category", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 24, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_website_pricing_virtual", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Website Category
", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:20:55.440897", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_web_category", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 15:04:23.017573", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_pricing_virtual", - "fieldtype": "Read Only", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 23, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_website_pricing", - "is_system_generated": 0, - "is_virtual": 1, - "label": "", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 15:04:23.017573", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_pricing_virtual", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 15:04:22.636948", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_pricing", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 22, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "published", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Website Pricing
", - "length": 0, - "mandatory_depends_on": null, - "modified": "2024-07-02 15:04:22.636948", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_pricing", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Website Item", - "links": [], - "property_setters": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-17 17:18:28.033766", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_price", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-17 17:18:28.033766", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_price-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-12 15:59:28.885001", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_sale_price", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.941204", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sale_price-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:56:14.571155", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_on_sale", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.845037", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_on_sale-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.637960", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "web_item_name", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.757132", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-web_item_name-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-12 16:00:47.619089", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_sales_price", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.657463", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sales_price-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.680982", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "item_group", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-12 15:59:28.675738", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-item_group-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 14:00:30.610684", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "thumbnail", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-11 14:01:04.825601", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-thumbnail-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.737469", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_select_discount_type_", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-11 14:00:30.306365", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_select_discount_type_-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.709695", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "route", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-11 12:07:06.062420", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-route-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-10 15:01:52.200319", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocType", - "field_name": null, - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-10 15:01:52.200319", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-main-field_order", - "owner": "Administrator", - "property": "field_order", - "property_type": "Data", - "row_name": null, - "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"custom_images_saved_or_not\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_select_discount_type_\", \"custom_disc_value\", \"custom_set_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-10 11:39:48.830967", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "item_name", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-10 11:39:48.830967", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-item_name-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-08 14:16:30.202343", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "website_images", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-08 14:16:30.202343", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-website_images-in_preview", - "owner": "Administrator", - "property": "in_preview", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 18:32:20.286896", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "description", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-04 18:32:20.286896", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-description-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 13:08:11.896267", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "published", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-04 13:08:11.896267", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-published-label", - "owner": "Administrator", - "property": "label", - "property_type": "Data", - "row_name": null, - "value": "Show in online store" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 12:58:08.328023", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "display_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-04 12:58:08.328023", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-display_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 12:51:29.934230", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "slideshow", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-04 12:51:29.934230", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-slideshow-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 12:51:29.759972", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "website_image_alt", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-04 12:51:29.759972", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-website_image_alt-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:41:14.596249", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "description", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:41:14.596249", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-description-label", - "owner": "Administrator", - "property": "label", - "property_type": "Data", - "row_name": null, - "value": "Long Description" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:41:14.382412", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "short_description", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:41:14.382412", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-short_description-label", - "owner": "Administrator", - "property": "label", - "property_type": "Data", - "row_name": null, - "value": "Short Description" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:52.230639", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "advanced_display_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:52.230639", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-advanced_display_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:52.023233", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "section_break_6", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:52.023233", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-section_break_6-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.842150", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "offers_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.842150", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-offers_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.642710", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "recommended_items_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.642710", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-recommended_items_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.435972", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "display_additional_information_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.435972", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-display_additional_information_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.224275", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "section_break_17", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.224275", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-section_break_17-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.003988", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "stock_information_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.003988", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-stock_information_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:19:37.907817", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "website_warehouse", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:19:37.907817", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-website_warehouse-description", - "owner": "Administrator", - "property": "description", - "property_type": "Text", - "row_name": null, - "value": "Entering the first Stock of this product to track the inventory" - } - ], - "sync_on_migrate": 1 + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-10 11:21:46.309102", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_eziym", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 27, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "item_group", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-10 11:21:46.309102", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_eziym", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-09 09:56:53.647342", + "default": "eval:doc.custom_sales_price", + "depends_on": "eval:doc.custom_on_sale==1", + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": "item_code.custom_sale_price_not_virtual", + "fetch_if_empty": 1, + "fieldname": "custom_sale_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 61, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_margin", + "is_system_generated": 0, + "is_virtual": 1, + "label": "Sale Price", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-09 09:56:53.647342", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sale_price", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-09 00:05:37.539497", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_saved_or_not", + "fieldtype": "Check", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 6, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "variant_of", + "is_system_generated": 0, + "is_virtual": 0, + "label": "images saved or not", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-09 00:05:37.539497", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_saved_or_not", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-08 16:18:21.038726", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_get_images_from_main_item", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 16, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_images_section_top", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Get Images from Main Item", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-08 16:18:21.038726", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_get_images_from_main_item", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 13:16:11.302786", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_logo_section_in_pricing", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 58, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_8rnbk", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-04 13:16:11.302786", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_logo_section_in_pricing", + "no_copy": 0, + "non_negative": 0, + "options": "", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 12:59:47.113557", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_section_top", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 15, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_images_list", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-04 12:59:47.113557", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_section_top", + "no_copy": 0, + "non_negative": 0, + "options": "", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 02:16:16.875651", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_tgeci", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 35, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "section_break_17", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-04 02:16:16.875651", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_tgeci", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 15:14:12.492209", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_list", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 14, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "slideshow", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 15:14:12.492209", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_list", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:45.195914", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_description", + "fieldtype": "Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 82, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_shipping_title", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Description", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:45.195914", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_description", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:44.701346", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_title", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 81, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_shipping_info", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Shipping Title", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:44.701346", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_title", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:44.272494", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_info", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 80, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_long_description", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Shipping Info
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:44.272494", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_info", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:43.842028", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_long_description", + "fieldtype": "Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 79, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_return__refund_title", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Long Description", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:43.842028", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_long_description", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:43.375530", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_return__refund_title", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 78, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_return__refund_policy", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Return & Refund Title", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:43.375530", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_return__refund_title", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:42.849188", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_return__refund_policy", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 77, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "web_long_description", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Return & Refund Policy
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:42.849188", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_return__refund_policy", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:48.313034", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_get_information_from_main_item", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 73, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_web_information", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Get Information from Main Item", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:48.313034", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_get_information_from_main_item", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:47.432740", + "default": null, + "depends_on": null, + "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_web_information", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 72, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_additional_info", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Web Information", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:47.432740", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_web_information", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:46.477892", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_additional_info", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 71, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "website_warehouse", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Additional Info", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:46.477892", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_additional_info", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:39.373397", + "default": null, + "depends_on": null, + "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_store_inventory", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 69, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_inventory", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Store Inventory", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:39.373397", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_store_inventory", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:38.906599", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_inventory", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 68, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sales_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Inventory", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:38.906599", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_inventory", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:38.156404", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_0n8ml", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 31, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "stock_information_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:38.156404", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_0n8ml", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:40.633488", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 67, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_ct4ct", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sale Price", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:40.633488", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sales_price", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:40.211057", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_ct4ct", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 66, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_discount_value", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:40.211057", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_ct4ct", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:39.798356", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_value", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 65, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_disc_value", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Set Discount Value", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:39.798356", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_discount_value", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:39.391211", + "default": null, + "depends_on": "custom_on_sale", + "description": "Set your discount value based on your selected discount type.", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_disc_value", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 64, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_discount_type", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
2. Set Value
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:39.391211", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_disc_value", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:38.900861", + "default": "Discount Percentage", + "depends_on": null, + "description": "", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_type", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 63, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_discount_type_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Select Discount Type ", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:38.900861", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_discount_type", + "no_copy": 0, + "non_negative": 0, + "options": "Discount Percentage\nDiscount Amount", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:38.449268", + "default": null, + "depends_on": "custom_on_sale", + "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_type_section", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 62, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sale_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
1. Select Type
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:38.449268", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_discount_type_section", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:41:10.474275", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_on_sale", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 56, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "On Sale", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:41:10.474275", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_on_sale", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:36.307102", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_margin", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 60, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_cost_of_goods", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Margin", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:36.307102", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_margin", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:35.415987", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_cost_of_goods", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 59, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_logo_section_in_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Cost of goods", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:35.415987", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_cost_of_goods", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.976493", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_8rnbk", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 57, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_on_sale", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.976493", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_8rnbk", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.516620", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 55, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing_summary", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Price", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.516620", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_price", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.116365", + "default": null, + "depends_on": null, + "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_summary", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 54, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Pricing Summary", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.116365", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_summary", + "no_copy": 0, + "non_negative": 0, + "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:31:26.955361", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_pricing", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 53, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "website_content", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Pricing", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:31:26.955361", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_pricing", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:27:29.545204", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_1ewip", + "fieldtype": "Section Break", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 1, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": null, + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:27:29.545204", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_section_break_1ewip", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:20:55.440897", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_web_category", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 24, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing_virtual", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Website Category
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:20:55.440897", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_web_category", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 15:04:23.017573", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_virtual", + "fieldtype": "Read Only", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 23, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing", + "is_system_generated": 0, + "is_virtual": 1, + "label": "", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 15:04:23.017573", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_virtual", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 15:04:22.636948", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 22, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "published", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Website Pricing
", + "length": 0, + "mandatory_depends_on": null, + "modified": "2024-07-02 15:04:22.636948", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Website Item", + "links": [], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-17 17:18:28.033766", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:28.033766", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-12 15:59:28.885001", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_sale_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.941204", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sale_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:56:14.571155", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_on_sale", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.845037", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_on_sale-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.637960", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "web_item_name", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.757132", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-web_item_name-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-12 16:00:47.619089", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_sales_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-17 17:18:27.657463", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sales_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.680982", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_group", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-12 15:59:28.675738", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-item_group-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 14:00:30.610684", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "thumbnail", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-11 14:01:04.825601", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-thumbnail-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.737469", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_discount_type", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-11 14:00:30.306365", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_discount_type-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.709695", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "route", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-07-11 12:07:06.062420", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-route-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-10 15:01:52.200319", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-10 15:01:52.200319", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"custom_images_saved_or_not\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_discount_type\", \"custom_disc_value\", \"custom_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-10 11:39:48.830967", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_name", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-10 11:39:48.830967", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-item_name-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-08 14:16:30.202343", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_images", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-08 14:16:30.202343", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_images-in_preview", + "owner": "Administrator", + "property": "in_preview", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 18:32:20.286896", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 18:32:20.286896", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-description-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 13:08:11.896267", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "published", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 13:08:11.896267", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-published-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Show in online store" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:58:08.328023", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "display_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 12:58:08.328023", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-display_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.934230", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "slideshow", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 12:51:29.934230", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-slideshow-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.759972", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_image_alt", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-04 12:51:29.759972", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_image_alt-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:41:14.596249", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:41:14.596249", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Long Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:41:14.382412", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "short_description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:41:14.382412", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-short_description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Short Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:52.230639", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "advanced_display_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:52.230639", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-advanced_display_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:52.023233", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_6", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:52.023233", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-section_break_6-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.842150", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "offers_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.842150", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-offers_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.642710", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "recommended_items_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.642710", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-recommended_items_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.435972", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "display_additional_information_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.435972", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-display_additional_information_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.224275", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_17", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.224275", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-section_break_17-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.003988", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "stock_information_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:21:51.003988", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-stock_information_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:19:37.907817", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_warehouse", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-07-02 17:19:37.907817", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_warehouse-description", + "owner": "Administrator", + "property": "description", + "property_type": "Text", + "row_name": null, + "value": "Entering the first Stock of this product to track the inventory" + } + ], + "sync_on_migrate": 1 } \ No newline at end of file diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index 66f334ac2f..589c4738d2 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -19,8 +19,8 @@ def custom_website_pricing_virtual(self): currency = frappe.defaults.get_global_default('currency') if self.custom_on_sale: if self.custom_on_sale: - discount_in_percentage = self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else self.custom_set_discount_value / self.custom_price * 100 if self.custom_price else 0 - discount_in_value = (self.custom_set_discount_value / 100) * self.custom_price if self.custom_select_discount_type_ == 'Discount Percentage' else self.custom_set_discount_value + discount_in_percentage = self.custom_discount_value if self.custom_discount_type == 'Discount Percentage' else self.custom_discount_value / self.custom_price * 100 if self.custom_price else 0 + discount_in_value = (self.custom_discount_value / 100) * self.custom_price if self.custom_discount_type == 'Discount Percentage' else self.custom_discount_value custom_sale_price = self.custom_sales_price = (self.custom_price or 0) - (discount_in_value or 0) else: discount_in_percentage = 0 @@ -73,10 +73,10 @@ def update_pricing_rule(self): pricing_rule = frappe.get_doc('Pricing Rule', existing_rules) pricing_rule.update({ 'disable': 0 if self.custom_on_sale else 1, - 'rate_or_discount': self.custom_select_discount_type_, - 'rate': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Rate' else 0, - 'discount_amount': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Amount' else 0, - 'discount_percentage': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else 0 + 'rate_or_discount': self.custom_discount_type, + 'rate': self.custom_discount_value if self.custom_discount_type == 'Rate' else 0, + 'discount_amount': self.custom_discount_value if self.custom_discount_type == 'Discount Amount' else 0, + 'discount_percentage': self.custom_discount_value if self.custom_discount_type == 'Discount Percentage' else 0 }) # Save the document pricing_rule.save() @@ -95,10 +95,10 @@ def add_pricing_rule(self): 'title': self.item_code, 'pricing_rule_name': self.item_code, 'currency': erpnext.get_default_currency(), - 'rate_or_discount': self.custom_select_discount_type_, - 'rate': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Rate' else 0, - 'discount_amount': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Amount' else 0, - 'discount_percentage': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else 0, + 'rate_or_discount': self.custom_discount_type, + 'rate': self.custom_discount_value if self.custom_discount_type == 'Rate' else 0, + 'discount_amount': self.custom_discount_value if self.custom_discount_type == 'Discount Amount' else 0, + 'discount_percentage': self.custom_discount_value if self.custom_discount_type == 'Discount Percentage' else 0, 'items': [{ 'item_code': self.item_code }] diff --git a/webshop/webshop/doctype/website_item/website_item.js b/webshop/webshop/doctype/website_item/website_item.js index b5eb5bdd33..da54febc74 100644 --- a/webshop/webshop/doctype/website_item/website_item.js +++ b/webshop/webshop/doctype/website_item/website_item.js @@ -3,88 +3,88 @@ frappe.ui.form.on('Website Item', { onload: (frm) => { - let images_button=$(".btn-attach[data-fieldname='website_images']"); + let images_button = $(".btn-attach[data-fieldname='website_images']"); images_button.html("Upload Images"); - images_button.css("visibility","hidden"); + images_button.css("visibility", "hidden"); frm.set_df_property("description", "read_only", 0); // should never check Private frm.fields_dict["website_image"].df.is_private = 0; - if( !frm.doc.custom_images_saved_or_not && frm.doc.item_code!= null ){ - fetch_images( frm ); - frm.set_value("custom_images_saved_or_not",true,0,1) + if (!frm.doc.custom_images_saved_or_not && frm.doc.item_code != null) { + fetch_images(frm); + frm.set_value("custom_images_saved_or_not", true, 0, 1) frappe.toast("Website Item is Created"); frm.save() } - if( frm.doc.custom_on_sale && frm.doc.custom_sales_price>0 ) - frm.set_value("custom_sale_price", frm.doc.custom_sales_price, 0 , 1 ); + if (frm.doc.custom_on_sale && frm.doc.custom_sales_price > 0) + frm.set_value("custom_sale_price", frm.doc.custom_sales_price, 0, 1); }, - onload_post_render: (frm)=>{ - setTimeout(function(frm) { + onload_post_render: (frm) => { + setTimeout(function (frm) { console.log("loaded") - let images_button=$(".btn-attach[data-fieldname='website_images']"); - images_button.css("visibility","visible"); + let images_button = $(".btn-attach[data-fieldname='website_images']"); + images_button.css("visibility", "visible"); $("div[data-fieldname='website_images']").find(".row").after(images_button); }, 1200); }, - custom_price: function(frm) { - update_sale_price(frm) + custom_price: function (frm) { + update_sale_price(frm) }, - custom_select_discount_type_: function(frm) { - update_sale_price(frm) + custom_discount_type: function (frm) { + update_sale_price(frm) }, - custom_sales_price: function(frm) { - reverse_update_sale_price(frm) + custom_sales_price: function (frm) { + reverse_update_sale_price(frm) }, - custom_set_discount_value: function(frm) { - update_sale_price(frm) + custom_discount_value: function (frm) { + update_sale_price(frm) }, custom_get_information_from_main_item(frm) { - if( frm.doc.item_code== null ){ + if (frm.doc.item_code == null) { frappe.msgprint("Please add item code to proceed"); } frappe.call({ freeze: true, freeze_message: "Loading item data...", - method: 'webshop.webshop.doctype.website_item.custom_website_item.get_item_data_for_web_item', - args: { - 'reference': frm.doc.name, - 'item_name': frm.doc.item_code, - }, - callback: function(r) { - response=r.message; - frm.set_value("short_description",response.custom_short_description); - frm.set_value("web_long_description",response.description); - frm.set_value("custom_return__refund_title",response.custom_return__refund_title); - frm.set_value("custom_long_description",response.custom_return__refund_description); - frm.set_value("custom_shipping_title",response.custom_shipping_title); - frm.set_value("custom_shipping_description",response.custom_shipping_description); - } - }); + method: 'webshop.webshop.doctype.website_item.custom_website_item.get_item_data_for_web_item', + args: { + 'reference': frm.doc.name, + 'item_name': frm.doc.item_code, + }, + callback: function (r) { + response = r.message; + frm.set_value("short_description", response.custom_short_description); + frm.set_value("web_long_description", response.description); + frm.set_value("custom_return__refund_title", response.custom_return__refund_title); + frm.set_value("custom_long_description", response.custom_return__refund_description); + frm.set_value("custom_shipping_title", response.custom_shipping_title); + frm.set_value("custom_shipping_description", response.custom_shipping_description); + } + }); }, - custom_get_images_from_main_item(frm){ - if( frm.doc.item_code== null ){ + custom_get_images_from_main_item(frm) { + if (frm.doc.item_code == null) { frappe.msgprint("Please add item code to proceed"); - }else{ - fetch_images( frm ) + } else { + fetch_images(frm) } - - }, + + }, refresh: (frm) => { - frm.add_custom_button(__("Prices"), function() { - frappe.set_route("List", "Item Price", {"item_code": frm.doc.item_code}); + frm.add_custom_button(__("Prices"), function () { + frappe.set_route("List", "Item Price", { "item_code": frm.doc.item_code }); }, __("View")); - frm.add_custom_button(__("Stock"), function() { + frm.add_custom_button(__("Stock"), function () { frappe.route_options = { "item_code": frm.doc.item_code }; frappe.set_route("query-report", "Stock Balance"); }, __("View")); - frm.add_custom_button(__("Webshop Settings"), function() { + frm.add_custom_button(__("Webshop Settings"), function () { frappe.set_route("Form", "Webshop Settings"); }, __("View")); }, @@ -100,84 +100,84 @@ frappe.ui.form.on('Website Item', { frappe.utils.set_meta_tag(frm.doc.route); } }); -function fetch_images(frm){ +function fetch_images(frm) { frappe.call({ freeze: true, - freeze_message: "Fetching Images", + freeze_message: "Fetching Images", method: 'webshop.webshop.doctype.website_item.custom_website_item.get_item_images_for_web_item_from_script', - args: { - 'main_item_code': frm.doc.item_code, - }, - callback: function(r) { - response=r.message; - frm.set_value("website_images","",0,1); - - response.forEach(element => { - var row = frm.add_child('website_images',{ - image:element.image, - file_type:element.file_type, - file_url:element.file_url, - thumbnail_url:element.file_url, - file_size:element.file_size, - }); + args: { + 'main_item_code': frm.doc.item_code, + }, + callback: function (r) { + response = r.message; + frm.set_value("website_images", "", 0, 1); + + response.forEach(element => { + var row = frm.add_child('website_images', { + image: element.image, + file_type: element.file_type, + file_url: element.file_url, + thumbnail_url: element.file_url, + file_size: element.file_size, }); - } - }); + }); + } + }); } -function update_sale_price(frm){ +function update_sale_price(frm) { let sale_price = 0; - if( frm.doc.custom_on_sale ){ - if( frm.doc.custom_set_discount_value <0 ){ + if (frm.doc.custom_on_sale) { + if (frm.doc.custom_discount_value < 0) { frappe.msgprint("Negative numbers are not allowed") - frm.set_value("custom_set_discount_value", 0 ); + frm.set_value("custom_discount_value", 0); return; } - if( frm.doc.custom_select_discount_type_ == "Discount Percentage" ){ - if( frm.doc.custom_set_discount_value > 100 ){ + if (frm.doc.custom_discount_type == "Discount Percentage") { + if (frm.doc.custom_discount_value > 100) { frappe.msgprint("Discount percentage cannot be more than 100%") - frm.set_value("custom_set_discount_value", 0 ); + frm.set_value("custom_discount_value", 0); return; } - sale_price = frm.doc.custom_set_discount_value/100; + sale_price = frm.doc.custom_discount_value / 100; sale_price = frm.doc.custom_price - (frm.doc.custom_price * sale_price); - }else{ - if( frm.doc.custom_set_discount_value > frm.doc.custom_price ){ + } else { + if (frm.doc.custom_discount_value > frm.doc.custom_price) { frappe.msgprint("Sale price cannot be more than the product price") - frm.set_value("custom_set_discount_value", 0 ); + frm.set_value("custom_discount_value", 0); return; } - sale_price = frm.doc.custom_price - frm.doc.custom_set_discount_value; + sale_price = frm.doc.custom_price - frm.doc.custom_discount_value; } - let discounted_value=Math.round((sale_price + Number.EPSILON) * 100) / 100; - if( discounted_value<1 || discounted_value== null || isNaN(discounted_value) ){ - discounted_value=0; + let discounted_value = Math.round((sale_price + Number.EPSILON) * 100) / 100; + if (discounted_value < 1 || discounted_value == null || isNaN(discounted_value)) { + discounted_value = 0; } discounted_value.toFixed(2) - frm.set_value("custom_sale_price", discounted_value ); + frm.set_value("custom_sale_price", discounted_value); $(".input-with-feedback[data-fieldname='custom_sales_price']").val(discounted_value); // frm.set_value("custom_sales_price", discounted_value ); //frm.set_value("custom_sales_price", discounted_value ); } } - function reverse_update_sale_price(frm){ +function reverse_update_sale_price(frm) { - if( frm.doc.custom_sales_price > frm.doc.custom_price ){ - frappe.msgprint("Discount cannot be more than the product price") - frm.set_value("custom_set_discount_value", 0 ); - return; - } + if (frm.doc.custom_sales_price > frm.doc.custom_price) { + frappe.msgprint("Discount cannot be more than the product price") + frm.set_value("custom_discount_value", 0); + return; + } - let sale_price = 0; - if( frm.doc.custom_on_sale ){ - discounted_value = frm.doc.custom_price - frm.doc.custom_sales_price; - sale_price = frm.doc.custom_sales_price; - if( frm.doc.custom_select_discount_type_ == "Discount Percentage" ){ - frm.set_value("custom_select_discount_type_", "Discount Amount" ); - } - frm.set_value("custom_set_discount_value", discounted_value ); - // frm.set_value("custom_sales_price", sale_price ); + let sale_price = 0; + if (frm.doc.custom_on_sale) { + discounted_value = frm.doc.custom_price - frm.doc.custom_sales_price; + sale_price = frm.doc.custom_sales_price; + if (frm.doc.custom_discount_type == "Discount Percentage") { + frm.set_value("custom_discount_type", "Discount Amount"); } - $(".input-with-feedback[data-fieldname='custom_sales_price']").val($(".input-with-feedback[data-fieldname='custom_sales_price']").val()); - return; + frm.set_value("custom_discount_value", discounted_value); + // frm.set_value("custom_sales_price", sale_price ); } + $(".input-with-feedback[data-fieldname='custom_sales_price']").val($(".input-with-feedback[data-fieldname='custom_sales_price']").val()); + return; +} From 164679201c3217896e9ccf11c812bbfd5d4b389e Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 10 Oct 2024 15:29:39 +0700 Subject: [PATCH 35/43] fix: Fix attribute errors in custom_website_item.py --- .../website_item/custom_website_item.py | 45 ++++++++++++++++++- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index 589c4738d2..459aff78ad 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -5,11 +5,33 @@ import frappe from frappe import _ +from frappe.model.document import Document from webshop.webshop.shopping_cart.cart import get_party import erpnext -class CustomWebSiteItem(): +def find(pred, iterable): + for element in iterable: + if pred(element): + return element + return None + +class CustomWebSiteItem(Document): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + self.default_pricing_rule = self.get_default_pricing_rule() + # print("default_pricing_rule => ", self.default_pricing_rule) + if self.default_pricing_rule: + old_on_sale, old_discount_type, old_discount_value = frappe.db.get_value('Item', self.item_code, ['custom_on_sale', 'custom_discount_type', 'custom_discount_value']) + self.custom_on_sale = (0 if self.default_pricing_rule.disable else 1) if self.custom_on_sale == old_on_sale else self.custom_on_sale + self.custom_discount_type = self.default_pricing_rule.rate_or_discount if self.custom_discount_type == old_discount_type else self.custom_discount_type + self.custom_discount_value = (self.default_pricing_rule.rate or self.default_pricing_rule.discount_amount or self.default_pricing_rule.discount_percentage) if self.custom_discount_value == old_discount_value else self.custom_discount_value + + self.item_price = self.get_default_item_price() + if(self.item_price and self.item_price.price_list_rate): + old_rate = frappe.db.get_value('Item', self.item_code, 'standard_rate') + self.standard_rate = self.item_price.price_list_rate if self.standard_rate == old_rate else self.standard_rate def before_validate(self): self.website_image = self.website_images[0].file_url if self.website_images else None @@ -126,7 +148,26 @@ def update_price(self, price_list=None): } ) item_price.insert() - self.item_price = item_price + self.item_price = item_price + + def get_default_pricing_rule(self): + price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) + pr_list = frappe.get_all('Pricing Rule', filters={'title': self.item_code, 'apply_on': "Item Code",'for_price_list': price_list}, fields=['name']) + return frappe.get_doc('Pricing Rule', pr_list[0].name) if pr_list else None + + def get_default_item_price(self): + default_price_list = find(lambda default: default.default_price_list != None, self.item_defaults) + item_price = frappe.get_all( + 'Item Price', + filters={ + 'item_code': self.item_code, + "currency": erpnext.get_default_currency(), + 'selling': 1, + 'price_list': default_price_list if default_price_list else _("Website Selling") + }, + fields=['name', 'price_list_rate'] + ) + return item_price[0] if item_price else None def get_changed_fields(self): changed_fields = [] From 71063447e69d701adb3456c625982e4d55826c8b Mon Sep 17 00:00:00 2001 From: umer2001 Date: Thu, 10 Oct 2024 16:27:56 +0700 Subject: [PATCH 36/43] refactor: Remove unused 'find' function in custom_website_item.py --- .../webshop/doctype/website_item/custom_website_item.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index 459aff78ad..5672a4525d 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -10,12 +10,6 @@ from webshop.webshop.shopping_cart.cart import get_party import erpnext -def find(pred, iterable): - for element in iterable: - if pred(element): - return element - return None - class CustomWebSiteItem(Document): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -156,7 +150,7 @@ def get_default_pricing_rule(self): return frappe.get_doc('Pricing Rule', pr_list[0].name) if pr_list else None def get_default_item_price(self): - default_price_list = find(lambda default: default.default_price_list != None, self.item_defaults) + default_price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) item_price = frappe.get_all( 'Item Price', filters={ From 9730cc5cbb60fcebeb1f0bbd9bd42cc04be584f8 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Mon, 28 Oct 2024 13:45:03 +0700 Subject: [PATCH 37/43] fix: make_website_item function in custom_website_item.py --- webshop/hooks.py | 5 +- webshop/webshop/custom/shipping_rule.json | 5 +- webshop/webshop/custom/website_item.json | 1140 ++++++++++------- .../website_item/custom_website_item.py | 241 +++- .../doctype/website_item/website_item.js | 56 +- .../doctype/website_item/website_item.py | 14 +- webshop/webshop/shopping_cart/cart.py | 10 +- 7 files changed, 876 insertions(+), 595 deletions(-) diff --git a/webshop/hooks.py b/webshop/hooks.py index e1ea304a9e..58cf038b8f 100644 --- a/webshop/hooks.py +++ b/webshop/hooks.py @@ -38,8 +38,9 @@ "Homepage": "public/js/override/homepage.js", } - - +override_whitelisted_methods = { + "webshop.webshop.doctype.website_item.website_item.make_website_item": "webshop.webshop.doctype.website_item.custom_website_item.make_website_item" +} doc_events = { "Item": { diff --git a/webshop/webshop/custom/shipping_rule.json b/webshop/webshop/custom/shipping_rule.json index bbab3354bb..93bcf91590 100644 --- a/webshop/webshop/custom/shipping_rule.json +++ b/webshop/webshop/custom/shipping_rule.json @@ -1,4 +1,5 @@ { + "doctype": "Shipping Rule", "custom_fields": [ { "_assign": null, @@ -63,9 +64,5 @@ "width": null } ], - "custom_perms": [], - "doctype": "Shipping Rule", - "links": [], - "property_setters": [], "sync_on_migrate": 1 } \ No newline at end of file diff --git a/webshop/webshop/custom/website_item.json b/webshop/webshop/custom/website_item.json index bbaef8f501..353a10ca17 100644 --- a/webshop/webshop/custom/website_item.json +++ b/webshop/webshop/custom/website_item.json @@ -11,7 +11,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-10 11:21:46.309102", + "creation": "2024-08-30 11:47:30.465119", "default": null, "depends_on": null, "description": null, @@ -19,32 +19,34 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_eziym", - "fieldtype": "Column Break", + "fieldname": "custom__item_product_variants", + "fieldtype": "Table", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 27, + "idx": 24, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "item_group", + "insert_after": "custom_manage_variants", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Item Product variants", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-10 11:21:46.309102", + "modified": "2024-08-30 11:47:30.465119", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_column_break_eziym", + "name": "Website Item-custom__item_product_variants", "no_copy": 0, "non_negative": 0, - "options": null, + "not_in_filter": 0, + "options": "Item Product variants", "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -74,39 +76,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-09 09:56:53.647342", - "default": "eval:doc.custom_sales_price", - "depends_on": "eval:doc.custom_on_sale==1", + "creation": "2024-07-02 17:37:46.477892", + "default": null, + "depends_on": null, "description": null, "docstatus": 0, "dt": "Website Item", - "fetch_from": "item_code.custom_sale_price_not_virtual", - "fetch_if_empty": 1, - "fieldname": "custom_sale_price", - "fieldtype": "Currency", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_additional_info", + "fieldtype": "Tab Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 61, + "idx": 72, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 1, + "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_margin", + "insert_after": "website_warehouse", "is_system_generated": 0, - "is_virtual": 1, - "label": "Sale Price", + "is_virtual": 0, + "label": "Additional Info", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-09 09:56:53.647342", + "modified": "2024-07-02 17:37:46.477892", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_sale_price", + "name": "Website Item-custom_additional_info", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -115,7 +119,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 1, + "read_only": 0, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -137,7 +141,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-09 00:05:37.539497", + "creation": "2024-07-02 17:19:38.156404", "default": null, "depends_on": null, "description": null, @@ -145,31 +149,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_images_saved_or_not", - "fieldtype": "Check", - "hidden": 1, + "fieldname": "custom_column_break_0n8ml", + "fieldtype": "Column Break", + "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 6, + "idx": 32, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "variant_of", + "insert_after": "stock_information_section", "is_system_generated": 0, "is_virtual": 0, - "label": "images saved or not", + "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-09 00:05:37.539497", + "modified": "2024-07-02 17:19:38.156404", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_images_saved_or_not", + "name": "Website Item-custom_column_break_0n8ml", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -200,7 +206,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-08 16:18:21.038726", + "creation": "2024-07-02 16:39:34.976493", "default": null, "depends_on": null, "description": null, @@ -208,31 +214,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_get_images_from_main_item", - "fieldtype": "Button", + "fieldname": "custom_column_break_8rnbk", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 16, + "idx": 58, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_images_section_top", + "insert_after": "custom_on_sale", "is_system_generated": 0, "is_virtual": 0, - "label": "Get Images from Main Item", + "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-08 16:18:21.038726", + "modified": "2024-07-02 16:39:34.976493", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_get_images_from_main_item", + "name": "Website Item-custom_column_break_8rnbk", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -263,7 +271,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-04 13:16:11.302786", + "creation": "2024-07-02 16:50:40.211057", "default": null, "depends_on": null, "description": null, @@ -271,32 +279,34 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_logo_section_in_pricing", - "fieldtype": "HTML", + "fieldname": "custom_column_break_ct4ct", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 58, + "idx": 67, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_8rnbk", + "insert_after": "custom_set_discount_value", "is_system_generated": 0, "is_virtual": 0, "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-04 13:16:11.302786", + "modified": "2024-07-02 16:50:40.211057", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_logo_section_in_pricing", + "name": "Website Item-custom_column_break_ct4ct", "no_copy": 0, "non_negative": 0, - "options": "", + "not_in_filter": 0, + "options": null, "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -326,7 +336,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-04 12:59:47.113557", + "creation": "2024-07-10 11:21:46.309102", "default": null, "depends_on": null, "description": null, @@ -334,32 +344,34 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_images_section_top", - "fieldtype": "HTML", + "fieldname": "custom_column_break_eziym", + "fieldtype": "Column Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 15, + "idx": 28, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_images_list", + "insert_after": "item_group", "is_system_generated": 0, "is_virtual": 0, "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-04 12:59:47.113557", + "modified": "2024-07-10 11:21:46.309102", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_images_section_top", + "name": "Website Item-custom_column_break_eziym", "no_copy": 0, "non_negative": 0, - "options": "", + "not_in_filter": 0, + "options": null, "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -403,7 +415,7 @@ "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 35, + "idx": 36, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, @@ -415,6 +427,7 @@ "is_virtual": 0, "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, "modified": "2024-07-04 02:16:16.875651", "modified_by": "Administrator", @@ -422,6 +435,7 @@ "name": "Website Item-custom_column_break_tgeci", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -452,7 +466,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 15:14:12.492209", + "creation": "2024-07-02 16:39:35.415987", "default": null, "depends_on": null, "description": null, @@ -460,31 +474,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_images_list", - "fieldtype": "Section Break", - "hidden": 0, + "fieldname": "custom_cost_of_goods", + "fieldtype": "Currency", + "hidden": 1, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 14, + "idx": 60, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "slideshow", + "insert_after": "custom_logo_section_in_pricing", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Cost of goods", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 15:14:12.492209", + "modified": "2024-07-02 16:39:35.415987", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_images_list", + "name": "Website Item-custom_cost_of_goods", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -515,39 +531,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 10:30:45.195914", + "creation": "2024-07-02 16:50:39.391211", "default": null, - "depends_on": null, - "description": null, + "depends_on": "custom_on_sale", + "description": "Set your discount value based on your selected discount type.", "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_shipping_description", - "fieldtype": "Text", + "fieldname": "custom_disc_value", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 82, + "idx": 65, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_shipping_title", + "insert_after": "custom_select_discount_type_", "is_system_generated": 0, "is_virtual": 0, - "label": "Description", + "label": "
2. Set Value
", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:45.195914", + "modified": "2024-07-02 16:50:39.391211", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_shipping_description", + "name": "Website Item-custom_disc_value", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -563,7 +581,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -578,39 +596,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 10:30:44.701346", + "creation": "2024-07-02 16:50:38.449268", "default": null, - "depends_on": null, - "description": null, + "depends_on": "custom_on_sale", + "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_shipping_title", - "fieldtype": "Data", + "fieldname": "custom_discount_type_section", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 81, + "idx": 63, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_shipping_info", + "insert_after": "custom_sale_price", "is_system_generated": 0, "is_virtual": 0, - "label": "Shipping Title", + "label": "
1. Select Type
", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:44.701346", + "modified": "2024-07-02 16:50:38.449268", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_shipping_title", + "name": "Website Item-custom_discount_type_section", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -641,7 +661,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 10:30:44.272494", + "creation": "2024-07-08 16:18:21.038726", "default": null, "depends_on": null, "description": null, @@ -649,31 +669,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_shipping_info", - "fieldtype": "Section Break", + "fieldname": "custom_get_images_from_main_item", + "fieldtype": "Button", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 80, + "idx": 15, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_long_description", + "insert_after": "custom_images_section_top", "is_system_generated": 0, "is_virtual": 0, - "label": "
Shipping Info
", + "label": "Get Images from Main Item", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:44.272494", + "modified": "2024-07-08 16:18:21.038726", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_shipping_info", + "name": "Website Item-custom_get_images_from_main_item", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -704,7 +726,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 10:30:43.842028", + "creation": "2024-07-02 17:37:48.313034", "default": null, "depends_on": null, "description": null, @@ -712,31 +734,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_long_description", - "fieldtype": "Text", + "fieldname": "custom_get_information_from_main_item", + "fieldtype": "Button", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 79, + "idx": 74, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_return__refund_title", + "insert_after": "custom_web_information", "is_system_generated": 0, "is_virtual": 0, - "label": "Long Description", + "label": "Get Information from Main Item", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:43.842028", + "modified": "2024-07-02 17:37:48.313034", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_long_description", + "name": "Website Item-custom_get_information_from_main_item", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -752,7 +776,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 1, + "translatable": 0, "unique": 0, "width": null }, @@ -767,7 +791,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 10:30:43.375530", + "creation": "2024-07-03 15:14:12.492209", "default": null, "depends_on": null, "description": null, @@ -775,31 +799,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_return__refund_title", - "fieldtype": "Data", + "fieldname": "custom_images_list", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 78, + "idx": 13, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_return__refund_policy", + "insert_after": "slideshow", "is_system_generated": 0, "is_virtual": 0, - "label": "Return & Refund Title", + "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:43.375530", + "modified": "2024-07-03 15:14:12.492209", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_return__refund_title", + "name": "Website Item-custom_images_list", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -830,7 +856,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-03 10:30:42.849188", + "creation": "2024-07-04 12:59:47.113557", "default": null, "depends_on": null, "description": null, @@ -838,32 +864,34 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_return__refund_policy", - "fieldtype": "Section Break", + "fieldname": "custom_images_section_top", + "fieldtype": "HTML", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 77, + "idx": 14, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "web_long_description", + "insert_after": "custom_images_list", "is_system_generated": 0, "is_virtual": 0, - "label": "
Return & Refund Policy
", + "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:42.849188", + "modified": "2024-07-04 12:59:47.113557", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_return__refund_policy", + "name": "Website Item-custom_images_section_top", "no_copy": 0, "non_negative": 0, - "options": null, + "not_in_filter": 0, + "options": "", "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -893,7 +921,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 17:37:48.313034", + "creation": "2024-07-02 17:19:38.906599", "default": null, "depends_on": null, "description": null, @@ -901,31 +929,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_get_information_from_main_item", - "fieldtype": "Button", + "fieldname": "custom_inventory", + "fieldtype": "Tab Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 73, + "idx": 69, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_web_information", + "insert_after": "custom_sales_price", "is_system_generated": 0, "is_virtual": 0, - "label": "Get Information from Main Item", + "label": "Inventory", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:48.313034", + "modified": "2024-07-02 17:19:38.906599", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_get_information_from_main_item", + "name": "Website Item-custom_inventory", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -956,40 +986,42 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 17:37:47.432740", + "creation": "2024-07-04 13:16:11.302786", "default": null, "depends_on": null, - "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", + "description": null, "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_web_information", - "fieldtype": "Section Break", + "fieldname": "custom_logo_section_in_pricing", + "fieldtype": "HTML", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 72, + "idx": 59, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_additional_info", + "insert_after": "custom_column_break_8rnbk", "is_system_generated": 0, "is_virtual": 0, - "label": "Web Information", + "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:47.432740", + "modified": "2024-07-04 13:16:11.302786", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_web_information", + "name": "Website Item-custom_logo_section_in_pricing", "no_copy": 0, "non_negative": 0, - "options": null, + "not_in_filter": 0, + "options": "", "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -1019,7 +1051,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 17:37:46.477892", + "creation": "2024-07-03 10:30:43.842028", "default": null, "depends_on": null, "description": null, @@ -1027,31 +1059,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_additional_info", - "fieldtype": "Tab Break", - "hidden": 0, + "fieldname": "custom_long_description", + "fieldtype": "Text", + "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 71, + "idx": 80, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "website_warehouse", + "insert_after": "custom_return__refund_title", "is_system_generated": 0, "is_virtual": 0, - "label": "Additional Info", + "label": "Long Description", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:46.477892", + "modified": "2024-07-03 10:30:43.842028", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_additional_info", + "name": "Website Item-custom_long_description", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1067,7 +1101,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -1082,39 +1116,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 17:19:39.373397", + "creation": "2024-08-30 11:47:30.019944", "default": null, - "depends_on": null, - "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", + "depends_on": "eval:doc.has_variants", + "description": null, "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_website_store_inventory", + "fieldname": "custom_manage_variants", "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 69, + "idx": 23, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_inventory", + "insert_after": "custom_website_pricing_virtual", "is_system_generated": 0, "is_virtual": 0, - "label": "Website Store Inventory", + "label": "Manage variants", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:39.373397", + "modified": "2024-08-30 11:47:30.019944", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_website_store_inventory", + "name": "Website Item-custom_manage_variants", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1145,7 +1181,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 17:19:38.906599", + "creation": "2024-07-02 16:39:36.307102", "default": null, "depends_on": null, "description": null, @@ -1153,31 +1189,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_inventory", - "fieldtype": "Tab Break", - "hidden": 0, + "fieldname": "custom_margin", + "fieldtype": "Currency", + "hidden": 1, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 68, + "idx": 61, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_sales_price", + "insert_after": "custom_cost_of_goods", "is_system_generated": 0, "is_virtual": 0, - "label": "Inventory", + "label": "Margin", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:38.906599", + "modified": "2024-07-02 16:39:36.307102", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_inventory", + "name": "Website Item-custom_margin", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1208,7 +1246,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 17:19:38.156404", + "creation": "2024-07-02 16:41:10.474275", "default": null, "depends_on": null, "description": null, @@ -1216,31 +1254,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_0n8ml", - "fieldtype": "Column Break", + "fieldname": "custom_on_sale", + "fieldtype": "Check", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 31, + "idx": 57, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 0, + "in_list_view": 1, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "stock_information_section", + "insert_after": "custom_price", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "On Sale", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:38.156404", + "modified": "2024-07-02 16:41:10.474275", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_column_break_0n8ml", + "name": "Website Item-custom_on_sale", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1271,7 +1311,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:50:40.633488", + "creation": "2024-07-02 16:39:34.516620", "default": null, "depends_on": null, "description": null, @@ -1279,31 +1319,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_sales_price", + "fieldname": "custom_price", "fieldtype": "Currency", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 67, + "idx": 56, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 0, + "in_list_view": 1, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_column_break_ct4ct", + "insert_after": "custom_website_pricing_summary", "is_system_generated": 0, "is_virtual": 0, - "label": "Sale Price", + "label": "Price", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:40.633488", + "modified": "2024-07-02 16:39:34.516620", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_sales_price", + "name": "Website Item-custom_price", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1334,7 +1376,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:50:40.211057", + "creation": "2024-07-02 16:31:26.955361", "default": null, "depends_on": null, "description": null, @@ -1342,31 +1384,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_ct4ct", - "fieldtype": "Column Break", + "fieldname": "custom_pricing", + "fieldtype": "Tab Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 66, + "idx": 54, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_discount_value", + "insert_after": "website_content", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Pricing", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:40.211057", + "modified": "2024-07-02 16:31:26.955361", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_column_break_ct4ct", + "name": "Website Item-custom_pricing", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1397,7 +1441,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:50:39.798356", + "creation": "2024-07-03 10:30:42.849188", "default": null, "depends_on": null, "description": null, @@ -1405,31 +1449,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_discount_value", - "fieldtype": "Currency", + "fieldname": "custom_return__refund_policy", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 65, + "idx": 78, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_disc_value", + "insert_after": "web_long_description", "is_system_generated": 0, "is_virtual": 0, - "label": "Set Discount Value", + "label": "
Return & Refund Policy
", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:39.798356", + "modified": "2024-07-03 10:30:42.849188", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_discount_value", + "name": "Website Item-custom_return__refund_policy", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1460,39 +1506,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:50:39.391211", + "creation": "2024-07-03 10:30:43.375530", "default": null, - "depends_on": "custom_on_sale", - "description": "Set your discount value based on your selected discount type.", + "depends_on": null, + "description": null, "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_disc_value", - "fieldtype": "Section Break", + "fieldname": "custom_return__refund_title", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 64, + "idx": 79, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_discount_type", + "insert_after": "custom_return__refund_policy", "is_system_generated": 0, "is_virtual": 0, - "label": "
2. Set Value
", + "label": "Return & Refund Title", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:39.391211", + "modified": "2024-07-03 10:30:43.375530", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_disc_value", + "name": "Website Item-custom_return__refund_title", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1523,40 +1571,42 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:50:38.900861", - "default": "Discount Percentage", - "depends_on": null, - "description": "", + "creation": "2024-07-09 09:56:53.647342", + "default": "eval:doc.custom_sales_price", + "depends_on": "eval:doc.custom_on_sale==1", + "description": null, "docstatus": 0, "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_discount_type", - "fieldtype": "Select", + "fetch_from": "item_code.custom_sale_price_not_virtual", + "fetch_if_empty": 1, + "fieldname": "custom_sale_price", + "fieldtype": "Currency", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 63, + "idx": 62, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 0, + "in_list_view": 1, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_discount_type_section", + "insert_after": "custom_margin", "is_system_generated": 0, - "is_virtual": 0, - "label": "Select Discount Type ", + "is_virtual": 1, + "label": "Sale Price", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:38.900861", + "modified": "2024-07-09 09:56:53.647342", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_discount_type", + "name": "Website Item-custom_sale_price", "no_copy": 0, "non_negative": 0, - "options": "Discount Percentage\nDiscount Amount", + "not_in_filter": 0, + "options": null, "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -1564,7 +1614,7 @@ "print_hide": 0, "print_hide_if_no_value": 0, "print_width": null, - "read_only": 0, + "read_only": 1, "read_only_depends_on": null, "report_hide": 0, "reqd": 0, @@ -1586,39 +1636,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:50:38.449268", + "creation": "2024-07-02 16:50:40.633488", "default": null, - "depends_on": "custom_on_sale", - "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", + "depends_on": null, + "description": null, "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_discount_type_section", - "fieldtype": "Section Break", + "fieldname": "custom_sales_price", + "fieldtype": "Currency", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 62, + "idx": 68, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_sale_price", + "insert_after": "custom_column_break_ct4ct", "is_system_generated": 0, "is_virtual": 0, - "label": "
1. Select Type
", + "label": "Sale Price", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:38.449268", + "modified": "2024-07-02 16:50:40.633488", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_discount_type_section", + "name": "Website Item-custom_sales_price", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1649,7 +1701,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:41:10.474275", + "creation": "2024-07-02 16:27:29.545204", "default": null, "depends_on": null, "description": null, @@ -1657,31 +1709,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_on_sale", - "fieldtype": "Check", - "hidden": 0, + "fieldname": "custom_section_break_1ewip", + "fieldtype": "Section Break", + "hidden": 1, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 56, + "idx": 1, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 1, + "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_price", + "insert_after": null, "is_system_generated": 0, "is_virtual": 0, - "label": "On Sale", + "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:41:10.474275", + "modified": "2024-07-02 16:27:29.545204", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_on_sale", + "name": "Website Item-custom_section_break_1ewip", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1712,40 +1766,42 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:39:36.307102", - "default": null, + "creation": "2024-07-02 16:50:38.900861", + "default": "Discount Percentage", "depends_on": null, - "description": null, + "description": "", "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_margin", - "fieldtype": "Currency", - "hidden": 1, + "fieldname": "custom_select_discount_type_", + "fieldtype": "Select", + "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 60, + "idx": 64, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_cost_of_goods", + "insert_after": "custom_discount_type_section", "is_system_generated": 0, "is_virtual": 0, - "label": "Margin", + "label": "Select Discount Type ", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:36.307102", + "modified": "2024-07-02 16:50:38.900861", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_margin", + "name": "Website Item-custom_select_discount_type_", "no_copy": 0, "non_negative": 0, - "options": null, + "not_in_filter": 0, + "options": "Discount Percentage\nDiscount Amount", "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -1775,7 +1831,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:39:35.415987", + "creation": "2024-07-02 16:50:39.798356", "default": null, "depends_on": null, "description": null, @@ -1783,31 +1839,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_cost_of_goods", + "fieldname": "custom_set_discount_value", "fieldtype": "Currency", - "hidden": 1, + "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 59, + "idx": 66, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_logo_section_in_pricing", + "insert_after": "custom_disc_value", "is_system_generated": 0, "is_virtual": 0, - "label": "Cost of goods", + "label": "Set Discount Value", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:35.415987", + "modified": "2024-07-02 16:50:39.798356", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_cost_of_goods", + "name": "Website Item-custom_set_discount_value", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1838,7 +1896,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:39:34.976493", + "creation": "2024-07-03 10:30:45.195914", "default": null, "depends_on": null, "description": null, @@ -1846,31 +1904,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_column_break_8rnbk", - "fieldtype": "Column Break", + "fieldname": "custom_shipping_description", + "fieldtype": "Text", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 57, + "idx": 83, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_on_sale", + "insert_after": "custom_shipping_title", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Description", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.976493", + "modified": "2024-07-03 10:30:45.195914", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_column_break_8rnbk", + "name": "Website Item-custom_shipping_description", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1886,7 +1946,7 @@ "search_index": 0, "show_dashboard": 0, "sort_options": 0, - "translatable": 0, + "translatable": 1, "unique": 0, "width": null }, @@ -1901,7 +1961,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:39:34.516620", + "creation": "2024-07-03 10:30:44.272494", "default": null, "depends_on": null, "description": null, @@ -1909,31 +1969,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_price", - "fieldtype": "Currency", + "fieldname": "custom_shipping_info", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 55, + "idx": 81, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, - "in_list_view": 1, + "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_website_pricing_summary", + "insert_after": "custom_long_description", "is_system_generated": 0, "is_virtual": 0, - "label": "Price", + "label": "
Shipping Info
", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.516620", + "modified": "2024-07-03 10:30:44.272494", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_price", + "name": "Website Item-custom_shipping_info", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -1964,40 +2026,42 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:39:34.116365", + "creation": "2024-07-03 10:30:44.701346", "default": null, "depends_on": null, - "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", + "description": null, "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_website_pricing_summary", - "fieldtype": "Section Break", + "fieldname": "custom_shipping_title", + "fieldtype": "Data", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 54, + "idx": 82, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_pricing", + "insert_after": "custom_shipping_info", "is_system_generated": 0, "is_virtual": 0, - "label": "Website Pricing Summary", + "label": "Shipping Title", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.116365", + "modified": "2024-07-03 10:30:44.701346", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_website_pricing_summary", + "name": "Website Item-custom_shipping_title", "no_copy": 0, "non_negative": 0, - "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", + "not_in_filter": 0, + "options": null, "owner": "Administrator", "permlevel": 0, "placeholder": null, @@ -2027,7 +2091,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:31:26.955361", + "creation": "2024-07-02 16:20:55.440897", "default": null, "depends_on": null, "description": null, @@ -2035,31 +2099,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_pricing", - "fieldtype": "Tab Break", + "fieldname": "custom_web_category", + "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 53, + "idx": 25, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "website_content", + "insert_after": "custom__item_product_variants", "is_system_generated": 0, "is_virtual": 0, - "label": "Pricing", + "label": "
Website Category
", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:31:26.955361", + "modified": "2024-07-02 16:20:55.440897", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_pricing", + "name": "Website Item-custom_web_category", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -2090,39 +2156,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:27:29.545204", + "creation": "2024-07-02 17:37:47.432740", "default": null, "depends_on": null, - "description": null, + "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_section_break_1ewip", + "fieldname": "custom_web_information", "fieldtype": "Section Break", - "hidden": 1, + "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 1, + "idx": 73, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": null, + "insert_after": "custom_additional_info", "is_system_generated": 0, "is_virtual": 0, - "label": "", + "label": "Web Information", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:27:29.545204", + "modified": "2024-07-02 17:37:47.432740", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_section_break_1ewip", + "name": "Website Item-custom_web_information", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -2153,7 +2221,7 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 16:20:55.440897", + "creation": "2024-07-02 15:04:22.636948", "default": null, "depends_on": null, "description": null, @@ -2161,31 +2229,33 @@ "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_web_category", + "fieldname": "custom_website_pricing", "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 24, + "idx": 21, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "custom_website_pricing_virtual", + "insert_after": "published", "is_system_generated": 0, "is_virtual": 0, - "label": "
Website Category
", + "label": "
Website Pricing
", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 16:20:55.440897", + "modified": "2024-07-02 15:04:22.636948", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_web_category", + "name": "Website Item-custom_website_pricing", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -2205,6 +2275,71 @@ "unique": 0, "width": null }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.116365", + "default": null, + "depends_on": null, + "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_summary", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 55, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Pricing Summary", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.116365", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_summary", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "_assign": null, "_comments": null, @@ -2230,7 +2365,7 @@ "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 23, + "idx": 22, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, @@ -2242,6 +2377,7 @@ "is_virtual": 1, "label": "", "length": 0, + "link_filters": null, "mandatory_depends_on": null, "modified": "2024-07-02 15:04:23.017573", "modified_by": "Administrator", @@ -2249,6 +2385,7 @@ "name": "Website Item-custom_website_pricing_virtual", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -2279,39 +2416,41 @@ "collapsible": 0, "collapsible_depends_on": null, "columns": 0, - "creation": "2024-07-02 15:04:22.636948", + "creation": "2024-07-02 17:19:39.373397", "default": null, "depends_on": null, - "description": null, + "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", "docstatus": 0, "dt": "Website Item", "fetch_from": null, "fetch_if_empty": 0, - "fieldname": "custom_website_pricing", + "fieldname": "custom_website_store_inventory", "fieldtype": "Section Break", "hidden": 0, "hide_border": 0, "hide_days": 0, "hide_seconds": 0, - "idx": 22, + "idx": 70, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_global_search": 0, "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "published", + "insert_after": "custom_inventory", "is_system_generated": 0, "is_virtual": 0, - "label": "
Website Pricing
", + "label": "Website Store Inventory", "length": 0, + "link_filters": null, "mandatory_depends_on": null, - "modified": "2024-07-02 15:04:22.636948", + "modified": "2024-07-02 17:19:39.373397", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_website_pricing", + "name": "Website Item-custom_website_store_inventory", "no_copy": 0, "non_negative": 0, + "not_in_filter": 0, "options": null, "owner": "Administrator", "permlevel": 0, @@ -2341,20 +2480,20 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-17 17:18:28.033766", + "creation": "2024-07-02 17:21:52.230639", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "custom_price", + "field_name": "advanced_display_section", "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-17 17:18:28.033766", + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.207831", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_price-in_list_view", + "name": "Website Item-advanced_display_section-hidden", "owner": "Administrator", - "property": "in_list_view", + "property": "hidden", "property_type": "Check", "row_name": null, "value": "1" @@ -2364,18 +2503,18 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-12 15:59:28.885001", + "creation": "2024-07-11 12:56:14.571155", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "custom_sale_price", + "field_name": "custom_on_sale", "idx": 0, "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.941204", + "modified": "2024-08-15 11:59:29.777759", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_sale_price-in_list_view", + "name": "Website Item-custom_on_sale-in_list_view", "owner": "Administrator", "property": "in_list_view", "property_type": "Check", @@ -2387,18 +2526,18 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-11 12:56:14.571155", + "creation": "2024-07-17 17:18:28.033766", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "custom_on_sale", + "field_name": "custom_price", "idx": 0, "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.845037", + "modified": "2024-08-15 11:59:29.720063", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_on_sale-in_list_view", + "name": "Website Item-custom_price-in_list_view", "owner": "Administrator", "property": "in_list_view", "property_type": "Check", @@ -2410,18 +2549,18 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-11 12:06:44.637960", + "creation": "2024-07-12 15:59:28.885001", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "web_item_name", + "field_name": "custom_sale_price", "idx": 0, "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.757132", + "modified": "2024-08-15 11:59:29.748514", "modified_by": "Administrator", "module": null, - "name": "Website Item-web_item_name-in_list_view", + "name": "Website Item-custom_sale_price-in_list_view", "owner": "Administrator", "property": "in_list_view", "property_type": "Check", @@ -2441,7 +2580,7 @@ "field_name": "custom_sales_price", "idx": 0, "is_system_generated": 1, - "modified": "2024-07-17 17:18:27.657463", + "modified": "2024-08-15 11:59:29.835900", "modified_by": "Administrator", "module": null, "name": "Website Item-custom_sales_price-in_list_view", @@ -2456,18 +2595,18 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-11 12:06:44.680982", + "creation": "2024-07-11 12:06:44.737469", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "item_group", + "field_name": "custom_select_discount_type_", "idx": 0, "is_system_generated": 1, - "modified": "2024-07-12 15:59:28.675738", + "modified": "2024-08-15 11:59:29.905212", "modified_by": "Administrator", "module": null, - "name": "Website Item-item_group-in_list_view", + "name": "Website Item-custom_select_discount_type_-in_list_view", "owner": "Administrator", "property": "in_list_view", "property_type": "Check", @@ -2479,156 +2618,156 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-11 14:00:30.610684", + "creation": "2024-07-04 18:32:20.286896", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "thumbnail", + "field_name": "description", "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-11 14:01:04.825601", + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.023610", "modified_by": "Administrator", "module": null, - "name": "Website Item-thumbnail-in_list_view", + "name": "Website Item-description-hidden", "owner": "Administrator", - "property": "in_list_view", + "property": "hidden", "property_type": "Check", "row_name": null, - "value": "0" + "value": "1" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-11 12:06:44.737469", + "creation": "2024-07-02 17:41:14.596249", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "custom_discount_type", + "field_name": "description", "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-11 14:00:30.306365", + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.157902", "modified_by": "Administrator", "module": null, - "name": "Website Item-custom_discount_type-in_list_view", + "name": "Website Item-description-label", "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", + "property": "label", + "property_type": "Data", "row_name": null, - "value": "0" + "value": "Long Description" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-11 12:06:44.709695", + "creation": "2024-07-02 17:21:51.435972", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "route", + "field_name": "display_additional_information_section", "idx": 0, - "is_system_generated": 1, - "modified": "2024-07-11 12:07:06.062420", + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.309237", "modified_by": "Administrator", "module": null, - "name": "Website Item-route-in_list_view", + "name": "Website Item-display_additional_information_section-hidden", "owner": "Administrator", - "property": "in_list_view", + "property": "hidden", "property_type": "Check", "row_name": null, - "value": "0" + "value": "1" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-10 15:01:52.200319", + "creation": "2024-07-04 12:58:08.328023", "default_value": null, "doc_type": "Website Item", "docstatus": 0, - "doctype_or_field": "DocType", - "field_name": null, + "doctype_or_field": "DocField", + "field_name": "display_section", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-10 15:01:52.200319", + "modified": "2024-08-15 11:59:30.081941", "modified_by": "Administrator", "module": null, - "name": "Website Item-main-field_order", + "name": "Website Item-display_section-hidden", "owner": "Administrator", - "property": "field_order", - "property_type": "Data", + "property": "hidden", + "property_type": "Check", "row_name": null, - "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"custom_images_saved_or_not\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_discount_type\", \"custom_disc_value\", \"custom_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" + "value": "1" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-10 11:39:48.830967", + "creation": "2024-08-30 11:09:30.556549", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "item_name", + "field_name": "has_variants", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-10 11:39:48.830967", + "modified": "2024-08-30 11:09:30.556549", "modified_by": "Administrator", "module": null, - "name": "Website Item-item_name-hidden", + "name": "Website Item-has_variants-depends_on", "owner": "Administrator", - "property": "hidden", - "property_type": "Check", + "property": "depends_on", + "property_type": "Data", "row_name": null, - "value": "1" + "value": "eval:!doc.variant_of" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-08 14:16:30.202343", + "creation": "2024-07-11 12:06:44.680982", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "website_images", + "field_name": "item_group", "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-08 14:16:30.202343", + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.861120", "modified_by": "Administrator", "module": null, - "name": "Website Item-website_images-in_preview", + "name": "Website Item-item_group-in_list_view", "owner": "Administrator", - "property": "in_preview", + "property": "in_list_view", "property_type": "Check", "row_name": null, - "value": "1" + "value": "0" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-04 18:32:20.286896", + "creation": "2024-07-10 11:39:48.830967", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "description", + "field_name": "item_name", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-04 18:32:20.286896", + "modified": "2024-08-15 11:59:29.974248", "modified_by": "Administrator", "module": null, - "name": "Website Item-description-hidden", + "name": "Website Item-item_name-hidden", "owner": "Administrator", "property": "hidden", "property_type": "Check", @@ -2640,87 +2779,87 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-04 13:08:11.896267", + "creation": "2024-10-21 13:51:22.871029", "default_value": null, "doc_type": "Website Item", "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "published", + "doctype_or_field": "DocType", + "field_name": null, "idx": 0, "is_system_generated": 0, - "modified": "2024-07-04 13:08:11.896267", + "modified": "2024-10-21 13:51:22.871029", "modified_by": "Administrator", "module": null, - "name": "Website Item-published-label", + "name": "Website Item-main-field_order", "owner": "Administrator", - "property": "label", + "property": "field_order", "property_type": "Data", "row_name": null, - "value": "Show in online store" + "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_manage_variants\", \"custom__item_product_variants\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_select_discount_type_\", \"custom_disc_value\", \"custom_set_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-04 12:58:08.328023", + "creation": "2024-08-14 14:49:39.739758", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "display_section", + "field_name": "naming_series", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-04 12:58:08.328023", + "modified": "2024-08-14 14:49:39.739758", "modified_by": "Administrator", "module": null, - "name": "Website Item-display_section-hidden", + "name": "Website Item-naming_series-default", "owner": "Administrator", - "property": "hidden", - "property_type": "Check", + "property": "default", + "property_type": "Text", "row_name": null, - "value": "1" + "value": "WEB-ITM-.####" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-04 12:51:29.934230", + "creation": "2024-08-14 14:49:39.716605", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "slideshow", + "field_name": "naming_series", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-04 12:51:29.934230", + "modified": "2024-08-14 14:49:39.716605", "modified_by": "Administrator", "module": null, - "name": "Website Item-slideshow-hidden", + "name": "Website Item-naming_series-options", "owner": "Administrator", - "property": "hidden", - "property_type": "Check", + "property": "options", + "property_type": "Text", "row_name": null, - "value": "1" + "value": "WEB-ITM-.####" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-04 12:51:29.759972", + "creation": "2024-07-02 17:21:51.842150", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "website_image_alt", + "field_name": "offers_section", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-04 12:51:29.759972", + "modified": "2024-08-15 11:59:30.258242", "modified_by": "Administrator", "module": null, - "name": "Website Item-website_image_alt-hidden", + "name": "Website Item-offers_section-hidden", "owner": "Administrator", "property": "hidden", "property_type": "Check", @@ -2732,64 +2871,87 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:41:14.596249", + "creation": "2024-07-04 13:08:11.896267", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "description", + "field_name": "published", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:41:14.596249", + "modified": "2024-08-15 11:59:30.055435", "modified_by": "Administrator", "module": null, - "name": "Website Item-description-label", + "name": "Website Item-published-label", "owner": "Administrator", "property": "label", "property_type": "Data", "row_name": null, - "value": "Long Description" + "value": "Show in online store" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:41:14.382412", + "creation": "2024-07-02 17:21:51.642710", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "short_description", + "field_name": "recommended_items_section", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:41:14.382412", + "modified": "2024-08-15 11:59:30.282430", "modified_by": "Administrator", "module": null, - "name": "Website Item-short_description-label", + "name": "Website Item-recommended_items_section-hidden", "owner": "Administrator", - "property": "label", - "property_type": "Data", + "property": "hidden", + "property_type": "Check", "row_name": null, - "value": "Short Description" + "value": "1" }, { "_assign": null, "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:21:52.230639", + "creation": "2024-07-11 12:06:44.709695", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "advanced_display_section", + "field_name": "route", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.927091", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-route-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.224275", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_17", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:21:52.230639", + "modified": "2024-08-15 11:59:30.335707", "modified_by": "Administrator", "module": null, - "name": "Website Item-advanced_display_section-hidden", + "name": "Website Item-section_break_17-hidden", "owner": "Administrator", "property": "hidden", "property_type": "Check", @@ -2809,7 +2971,7 @@ "field_name": "section_break_6", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:21:52.023233", + "modified": "2024-08-15 11:59:30.233738", "modified_by": "Administrator", "module": null, "name": "Website Item-section_break_6-hidden", @@ -2824,18 +2986,41 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:21:51.842150", + "creation": "2024-07-02 17:41:14.382412", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "offers_section", + "field_name": "short_description", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.842150", + "modified": "2024-08-15 11:59:30.183479", "modified_by": "Administrator", "module": null, - "name": "Website Item-offers_section-hidden", + "name": "Website Item-short_description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Short Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.934230", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "slideshow", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.108432", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-slideshow-hidden", "owner": "Administrator", "property": "hidden", "property_type": "Check", @@ -2847,18 +3032,18 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:21:51.642710", + "creation": "2024-07-02 17:21:51.003988", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "recommended_items_section", + "field_name": "stock_information_section", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.642710", + "modified": "2024-08-15 11:59:30.358735", "modified_by": "Administrator", "module": null, - "name": "Website Item-recommended_items_section-hidden", + "name": "Website Item-stock_information_section-hidden", "owner": "Administrator", "property": "hidden", "property_type": "Check", @@ -2870,20 +3055,43 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:21:51.435972", + "creation": "2024-07-11 14:00:30.610684", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "display_additional_information_section", + "field_name": "thumbnail", "idx": 0, - "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.435972", + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.884244", "modified_by": "Administrator", "module": null, - "name": "Website Item-display_additional_information_section-hidden", + "name": "Website Item-thumbnail-in_list_view", "owner": "Administrator", - "property": "hidden", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.637960", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "web_item_name", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.806689", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-web_item_name-in_list_view", + "owner": "Administrator", + "property": "in_list_view", "property_type": "Check", "row_name": null, "value": "1" @@ -2893,18 +3101,18 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:21:51.224275", + "creation": "2024-07-04 12:51:29.759972", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "section_break_17", + "field_name": "website_image_alt", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.224275", + "modified": "2024-08-15 11:59:30.132188", "modified_by": "Administrator", "module": null, - "name": "Website Item-section_break_17-hidden", + "name": "Website Item-website_image_alt-hidden", "owner": "Administrator", "property": "hidden", "property_type": "Check", @@ -2916,20 +3124,20 @@ "_comments": null, "_liked_by": null, "_user_tags": null, - "creation": "2024-07-02 17:21:51.003988", + "creation": "2024-07-08 14:16:30.202343", "default_value": null, "doc_type": "Website Item", "docstatus": 0, "doctype_or_field": "DocField", - "field_name": "stock_information_section", + "field_name": "website_images", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:21:51.003988", + "modified": "2024-08-15 11:59:29.997666", "modified_by": "Administrator", "module": null, - "name": "Website Item-stock_information_section-hidden", + "name": "Website Item-website_images-in_preview", "owner": "Administrator", - "property": "hidden", + "property": "in_preview", "property_type": "Check", "row_name": null, "value": "1" @@ -2947,7 +3155,7 @@ "field_name": "website_warehouse", "idx": 0, "is_system_generated": 0, - "modified": "2024-07-02 17:19:37.907817", + "modified": "2024-08-15 11:59:30.381803", "modified_by": "Administrator", "module": null, "name": "Website Item-website_warehouse-description", diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index 5672a4525d..0285d7b14f 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -1,3 +1,4 @@ +import json from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -5,44 +6,46 @@ import frappe from frappe import _ -from frappe.model.document import Document +from frappe.utils import cint, cstr, flt, random_string +from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow +from frappe.website.website_generator import WebsiteGenerator +from webshop.webshop.doctype.item_review.item_review import get_item_reviews +from webshop.webshop.redisearch_utils import ( + delete_item_from_index, + insert_item_to_index, + update_index_for_item, +) +from webshop.webshop.shopping_cart.cart import _set_price_list +from webshop.webshop.doctype.override_doctype.item_group import ( + get_parent_item_groups, + invalidate_cache_for, +) +from erpnext.stock.doctype.item.item import Item +from erpnext.utilities.product import get_price from webshop.webshop.shopping_cart.cart import get_party +from webshop.webshop.variant_selector.item_variants_cache import ( + ItemVariantsCacheManager, +) import erpnext +from erpnext.controllers.item_variant import get_variant -class CustomWebSiteItem(Document): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - - self.default_pricing_rule = self.get_default_pricing_rule() - # print("default_pricing_rule => ", self.default_pricing_rule) - if self.default_pricing_rule: - old_on_sale, old_discount_type, old_discount_value = frappe.db.get_value('Item', self.item_code, ['custom_on_sale', 'custom_discount_type', 'custom_discount_value']) - self.custom_on_sale = (0 if self.default_pricing_rule.disable else 1) if self.custom_on_sale == old_on_sale else self.custom_on_sale - self.custom_discount_type = self.default_pricing_rule.rate_or_discount if self.custom_discount_type == old_discount_type else self.custom_discount_type - self.custom_discount_value = (self.default_pricing_rule.rate or self.default_pricing_rule.discount_amount or self.default_pricing_rule.discount_percentage) if self.custom_discount_value == old_discount_value else self.custom_discount_value - - self.item_price = self.get_default_item_price() - if(self.item_price and self.item_price.price_list_rate): - old_rate = frappe.db.get_value('Item', self.item_code, 'standard_rate') - self.standard_rate = self.item_price.price_list_rate if self.standard_rate == old_rate else self.standard_rate - - def before_validate(self): - self.website_image = self.website_images[0].file_url if self.website_images else None + +class CustomWebSiteItem( ): @property def custom_website_pricing_virtual(self): currency = frappe.defaults.get_global_default('currency') if self.custom_on_sale: if self.custom_on_sale: - discount_in_percentage = self.custom_discount_value if self.custom_discount_type == 'Discount Percentage' else self.custom_discount_value / self.custom_price * 100 if self.custom_price else 0 - discount_in_value = (self.custom_discount_value / 100) * self.custom_price if self.custom_discount_type == 'Discount Percentage' else self.custom_discount_value + discount_in_percentage = self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else self.custom_set_discount_value / self.custom_price * 100 if self.custom_price else 0 + discount_in_value = (self.custom_set_discount_value / 100) * self.custom_price if self.custom_select_discount_type_ == 'Discount Percentage' else self.custom_set_discount_value custom_sale_price = self.custom_sales_price = (self.custom_price or 0) - (discount_in_value or 0) else: discount_in_percentage = 0 discount_in_value = 0 custom_sale_price = 0 - custom_price = self.custom_price + custom_price = self.custom_price custom_sale_price = float(custom_sale_price) if isinstance(custom_sale_price, str) else custom_sale_price @@ -66,19 +69,25 @@ def custom_website_pricing_virtual(self): ''' def before_save(self): - old_doc = self.get_doc_before_save() - if not old_doc: - return - changed_fields, initilaized_fields = self.get_changed_fields() - if (self.custom_discount_type or self.custom_discount_value) and self.default_pricing_rule == None: - self.add_pricing_rule() - elif "custom_on_sale" in changed_fields or "custom_discount_type" in changed_fields or "custom_discount_value" in changed_fields: - self.update_pricing_rule() - - if "standard_rate" in initilaized_fields: - self.add_price(self.name, self.standard_rate) - elif "standard_rate" in changed_fields: - self.update_price() + if self.is_new(): + if self.item_code: + item_doc = frappe.get_doc('Item', self.item_code) + self.custom_price = item_doc.standard_rate + self.custom_on_sale = item_doc.custom_on_sale + self.custom_select_discount_type_ = item_doc.custom_discount_type + self.custom_set_discount_value = item_doc.custom_discount_value + self.custom_sales_price = item_doc.custom_sale_price + self.custom_sale_price = item_doc.custom_sales_price_1 + self.update_price() + self.update_pricing_rule() + + fields = self.get_changed_fields() + if fields and len(fields) >= 2: + if self.custom_price: + self.update_price() + self.update_pricing_rule() + else: + pass def update_pricing_rule(self): @@ -89,10 +98,10 @@ def update_pricing_rule(self): pricing_rule = frappe.get_doc('Pricing Rule', existing_rules) pricing_rule.update({ 'disable': 0 if self.custom_on_sale else 1, - 'rate_or_discount': self.custom_discount_type, - 'rate': self.custom_discount_value if self.custom_discount_type == 'Rate' else 0, - 'discount_amount': self.custom_discount_value if self.custom_discount_type == 'Discount Amount' else 0, - 'discount_percentage': self.custom_discount_value if self.custom_discount_type == 'Discount Percentage' else 0 + 'rate_or_discount': self.custom_select_discount_type_, + 'rate': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Rate' else 0, + 'discount_amount': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Amount' else 0, + 'discount_percentage': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else 0 }) # Save the document pricing_rule.save() @@ -111,10 +120,10 @@ def add_pricing_rule(self): 'title': self.item_code, 'pricing_rule_name': self.item_code, 'currency': erpnext.get_default_currency(), - 'rate_or_discount': self.custom_discount_type, - 'rate': self.custom_discount_value if self.custom_discount_type == 'Rate' else 0, - 'discount_amount': self.custom_discount_value if self.custom_discount_type == 'Discount Amount' else 0, - 'discount_percentage': self.custom_discount_value if self.custom_discount_type == 'Discount Percentage' else 0, + 'rate_or_discount': self.custom_select_discount_type_, + 'rate': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Rate' else 0, + 'discount_amount': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Amount' else 0, + 'discount_percentage': self.custom_set_discount_value if self.custom_select_discount_type_ == 'Discount Percentage' else 0, 'items': [{ 'item_code': self.item_code }] @@ -142,26 +151,7 @@ def update_price(self, price_list=None): } ) item_price.insert() - self.item_price = item_price - - def get_default_pricing_rule(self): - price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) - pr_list = frappe.get_all('Pricing Rule', filters={'title': self.item_code, 'apply_on': "Item Code",'for_price_list': price_list}, fields=['name']) - return frappe.get_doc('Pricing Rule', pr_list[0].name) if pr_list else None - - def get_default_item_price(self): - default_price_list = frappe.db.get_single_value("Webshop Settings", "price_list") or frappe.db.get_value("Price List", _("Website Selling")) - item_price = frappe.get_all( - 'Item Price', - filters={ - 'item_code': self.item_code, - "currency": erpnext.get_default_currency(), - 'selling': 1, - 'price_list': default_price_list if default_price_list else _("Website Selling") - }, - fields=['name', 'price_list_rate'] - ) - return item_price[0] if item_price else None + self.item_price = item_price def get_changed_fields(self): changed_fields = [] @@ -197,9 +187,120 @@ def get_item_data_for_web_item(reference,item_name): frappe.response['message'] = "None" @frappe.whitelist() -def get_item_images_for_web_item_from_script(main_item_code): - main_item = frappe.get_doc("Item",main_item_code) - if( main_item is not None ): - frappe.response['message'] = main_item.custom_images - else: - frappe.response['message'] = "None" \ No newline at end of file +def get_images_from_item(item_code, website_item): + item = frappe.get_doc("Item", item_code) + if( item is not None ): + if website_item: + website_item = frappe.get_doc("Website Item", website_item) + if website_item: + website_item.website_images = [] + for custom_image in item.get("custom_images"): + image = frappe.copy_doc(frappe.get_doc("File", custom_image.get("image"))).update({ + "attached_to_doctype": "Website Item", + "attached_to_name": website_item.name, + "attached_to_field": "website_images", + }).insert() + website_item.append("website_images", { + "file_url": image.file_url, + "image": image.name, + }) + website_item.save() + + + +@frappe.whitelist() +def make_website_item(doc, save=True): + print("custom => make_website_item") + """ + Make Website Item from Item. Used via Form UI or patch. + """ + if not doc: + return + if isinstance(doc, str): + doc = json.loads(doc) + if frappe.db.exists("Website Item", {"item_code": doc.get("item_code")}): + message = _("Website Item already exists against {0}").format( + frappe.bold(doc.get("item_code")) + ) + frappe.throw(message, title=_("Already Published")) + website_item = frappe.new_doc("Website Item") + website_item.autoname() + website_item.web_item_name = doc.get("item_name") + fields_to_map = [ + "item_code", + "item_name", + "item_group", + "stock_uom", + "brand", + "has_variants", + "variant_of", + "description", + "custom_return__refund_title", + "custom_shipping_title", + "custom_shipping_description" + ] + for field in fields_to_map: + website_item.update({field: doc.get(field)}) + website_item.short_description=doc.get("custom_short_description") + website_item.web_long_description=doc.get("description") + website_item.custom_long_description=doc.get("custom_return__refund_description") + + if not frappe.flags.in_migrate and ( + doc.get("image") and not website_item.website_image + ): + website_item.website_image = doc.get("image") + + for custom_image in doc.get("custom_images", []): + image = frappe.copy_doc(frappe.get_doc("File", custom_image.get("image"))).update({ + "attached_to_doctype": "Website Item", + "attached_to_name": website_item.name, + "attached_to_field": "website_images", + }).insert() + website_item.append("website_images", { + "file_url": image.file_url, + "image": image.name, + }) + + if not save: + return website_item + + website_item.insert(set_name=website_item.name) + + if doc.get("has_variants"): + variants_list = [] + variants = doc.get("custom__item_product_variants") + if variants: + for variant in variants: + variants_list.append({ + "variant": variant["variant"], + "data_hwpc": variant["data_hwpc"], + "status": variant["status"] + }) + website_item.set("custom__item_product_variants", variants_list) + frappe.enqueue( + "webshop.webshop.doctype.website_item.custom_website_item.make_website_variants", + item_code=doc.get("item_code"), + now=frappe.flags.in_test, + ) + website_item.save() + + insert_item_to_index(website_item) + return [website_item.name, website_item.web_item_name] + + +def make_website_variants(item_code): + variants = frappe.get_all("Item", filters={"variant_of": item_code}, fields=["name", "item_name"]) + for variant in variants: + doc = frappe.get_doc("Item", variant.name) + make_website_item(doc) + # if item_code: + # insert_item_pricing(item_code, variant_price=doc.standard_rate) + +# def insert_item_pricing(item_code, price_list='Standard Selling', variant_price=0.0): +# existing_prices = frappe.get_all('Item Price', filters={'item_code': item_code}, fields=['name', 'price_list_rate']) +# if existing_prices: +# frappe.db.set_value('Item Price', existing_prices[0].name, 'price_list_rate', variant_price) +# frappe.db.set_value('Website Item', item_code, 'standard_rate', variant_price) +# else: +# CustomItem.add_price(item_code, variant_price) +# frappe.db.set_value('Website Item', item_code, 'standard_rate', variant_price) \ No newline at end of file diff --git a/webshop/webshop/doctype/website_item/website_item.js b/webshop/webshop/doctype/website_item/website_item.js index da54febc74..e77d1530a6 100644 --- a/webshop/webshop/doctype/website_item/website_item.js +++ b/webshop/webshop/doctype/website_item/website_item.js @@ -11,12 +11,6 @@ frappe.ui.form.on('Website Item', { // should never check Private frm.fields_dict["website_image"].df.is_private = 0; - if (!frm.doc.custom_images_saved_or_not && frm.doc.item_code != null) { - fetch_images(frm); - frm.set_value("custom_images_saved_or_not", true, 0, 1) - frappe.toast("Website Item is Created"); - frm.save() - } if (frm.doc.custom_on_sale && frm.doc.custom_sales_price > 0) frm.set_value("custom_sale_price", frm.doc.custom_sales_price, 0, 1); }, @@ -31,13 +25,13 @@ frappe.ui.form.on('Website Item', { custom_price: function (frm) { update_sale_price(frm) }, - custom_discount_type: function (frm) { + custom_select_discount_type_: function (frm) { update_sale_price(frm) }, custom_sales_price: function (frm) { reverse_update_sale_price(frm) }, - custom_discount_value: function (frm) { + custom_set_discount_value: function (frm) { update_sale_price(frm) }, custom_get_information_from_main_item(frm) { @@ -69,8 +63,6 @@ frappe.ui.form.on('Website Item', { } else { fetch_images(frm) } - - }, refresh: (frm) => { frm.add_custom_button(__("Prices"), function () { @@ -104,49 +96,39 @@ function fetch_images(frm) { frappe.call({ freeze: true, freeze_message: "Fetching Images", - method: 'webshop.webshop.doctype.website_item.custom_website_item.get_item_images_for_web_item_from_script', + method: 'webshop.webshop.doctype.website_item.custom_website_item.get_images_from_item', args: { - 'main_item_code': frm.doc.item_code, + 'item_code': frm.doc.item_code, + 'website_item': frm.doc.name, }, callback: function (r) { - response = r.message; - frm.set_value("website_images", "", 0, 1); - - response.forEach(element => { - var row = frm.add_child('website_images', { - image: element.image, - file_type: element.file_type, - file_url: element.file_url, - thumbnail_url: element.file_url, - file_size: element.file_size, - }); - }); + frm.reload_doc(); } }); } function update_sale_price(frm) { let sale_price = 0; if (frm.doc.custom_on_sale) { - if (frm.doc.custom_discount_value < 0) { + if (frm.doc.custom_set_discount_value < 0) { frappe.msgprint("Negative numbers are not allowed") - frm.set_value("custom_discount_value", 0); + frm.set_value("custom_set_discount_value", 0); return; } - if (frm.doc.custom_discount_type == "Discount Percentage") { - if (frm.doc.custom_discount_value > 100) { + if (frm.doc.custom_select_discount_type_ == "Discount Percentage") { + if (frm.doc.custom_set_discount_value > 100) { frappe.msgprint("Discount percentage cannot be more than 100%") - frm.set_value("custom_discount_value", 0); + frm.set_value("custom_set_discount_value", 0); return; } - sale_price = frm.doc.custom_discount_value / 100; + sale_price = frm.doc.custom_set_discount_value / 100; sale_price = frm.doc.custom_price - (frm.doc.custom_price * sale_price); } else { - if (frm.doc.custom_discount_value > frm.doc.custom_price) { + if (frm.doc.custom_set_discount_value > frm.doc.custom_price) { frappe.msgprint("Sale price cannot be more than the product price") - frm.set_value("custom_discount_value", 0); + frm.set_value("custom_set_discount_value", 0); return; } - sale_price = frm.doc.custom_price - frm.doc.custom_discount_value; + sale_price = frm.doc.custom_price - frm.doc.custom_set_discount_value; } let discounted_value = Math.round((sale_price + Number.EPSILON) * 100) / 100; if (discounted_value < 1 || discounted_value == null || isNaN(discounted_value)) { @@ -163,7 +145,7 @@ function reverse_update_sale_price(frm) { if (frm.doc.custom_sales_price > frm.doc.custom_price) { frappe.msgprint("Discount cannot be more than the product price") - frm.set_value("custom_discount_value", 0); + frm.set_value("custom_set_discount_value", 0); return; } @@ -171,10 +153,10 @@ function reverse_update_sale_price(frm) { if (frm.doc.custom_on_sale) { discounted_value = frm.doc.custom_price - frm.doc.custom_sales_price; sale_price = frm.doc.custom_sales_price; - if (frm.doc.custom_discount_type == "Discount Percentage") { - frm.set_value("custom_discount_type", "Discount Amount"); + if (frm.doc.custom_select_discount_type_ == "Discount Percentage") { + frm.set_value("custom_select_discount_type_", "Discount Amount"); } - frm.set_value("custom_discount_value", discounted_value); + frm.set_value("custom_set_discount_value", discounted_value); // frm.set_value("custom_sales_price", sale_price ); } $(".input-with-feedback[data-fieldname='custom_sales_price']").val($(".input-with-feedback[data-fieldname='custom_sales_price']").val()); diff --git a/webshop/webshop/doctype/website_item/website_item.py b/webshop/webshop/doctype/website_item/website_item.py index abc12285e7..5d32e4d11f 100644 --- a/webshop/webshop/doctype/website_item/website_item.py +++ b/webshop/webshop/doctype/website_item/website_item.py @@ -526,19 +526,19 @@ def make_website_item(doc, save=True): "has_variants", "variant_of", "description", + "custom_return__refund_title", + "custom_shipping_title", + "custom_shipping_description", ] for field in fields_to_map: website_item.update({field: doc.get(field)}) - website_item.short_description= doc.get("custom_short_description") - website_item.web_long_description= doc.get("description") - website_item.custom_return__refund_title= doc.get("custom_return__refund_title") - website_item.custom_long_description= doc.get("custom_return__refund_description") - website_item.custom_shipping_title= doc.get("custom_shipping_title") - website_item.custom_shipping_description= doc.get("custom_shipping_description") - website_item.custom_sale_price = doc.get("custom_sale_price") + website_item.short_description=doc.get("custom_short_description") + website_item.web_long_description=doc.get("description") + website_item.custom_long_description=doc.get("custom_return__refund_description") + # img_doc= frappe.get_doc("File","") # const_img={ # "image": img_doc, diff --git a/webshop/webshop/shopping_cart/cart.py b/webshop/webshop/shopping_cart/cart.py index 24ce2504ea..9e28bceeff 100644 --- a/webshop/webshop/shopping_cart/cart.py +++ b/webshop/webshop/shopping_cart/cart.py @@ -670,15 +670,7 @@ def get_party(user=None): debtors_account = get_debtors_account(cart_settings) if party: - doc = frappe.get_doc(party_doctype, party) - if doc.doctype in ["Customer", "Supplier"]: - if not frappe.db.exists("Portal User", {"parent": doc.name, "user": user}): - doc.append("portal_users", {"user": user}) - doc.flags.ignore_permissions = True - doc.flags.ignore_mandatory = True - doc.save() - - return doc + return frappe.get_doc(party_doctype, party) else: if not cart_settings.enabled: From 5a8b340a03bec73c6590c582ab14eff9c5473702 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Mon, 28 Oct 2024 14:05:12 +0700 Subject: [PATCH 38/43] fix: Add missing property_setters in shipping_rule.json --- webshop/webshop/custom/shipping_rule.json | 1 + 1 file changed, 1 insertion(+) diff --git a/webshop/webshop/custom/shipping_rule.json b/webshop/webshop/custom/shipping_rule.json index 93bcf91590..062e9b04c4 100644 --- a/webshop/webshop/custom/shipping_rule.json +++ b/webshop/webshop/custom/shipping_rule.json @@ -64,5 +64,6 @@ "width": null } ], + "property_setters": [], "sync_on_migrate": 1 } \ No newline at end of file From a95ff5628a5cb08c42018660b4eb4b0cbfe0e1d8 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 29 Oct 2024 01:28:12 +0500 Subject: [PATCH 39/43] fix price map issue --- webshop/webshop/doctype/website_item/custom_website_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index 0285d7b14f..a41372f6ad 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -76,7 +76,7 @@ def before_save(self): self.custom_on_sale = item_doc.custom_on_sale self.custom_select_discount_type_ = item_doc.custom_discount_type self.custom_set_discount_value = item_doc.custom_discount_value - self.custom_sales_price = item_doc.custom_sale_price + self.custom_sales_price = item_doc.custom_sale_price_not_virtual self.custom_sale_price = item_doc.custom_sales_price_1 self.update_price() self.update_pricing_rule() From 0f02704097408980c901e0f554e951f18dc7c114 Mon Sep 17 00:00:00 2001 From: Nabeel Goraya Date: Tue, 29 Oct 2024 01:41:41 +0500 Subject: [PATCH 40/43] Update custom_website_item.py --- webshop/webshop/doctype/website_item/custom_website_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index a41372f6ad..bde159a930 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -77,7 +77,7 @@ def before_save(self): self.custom_select_discount_type_ = item_doc.custom_discount_type self.custom_set_discount_value = item_doc.custom_discount_value self.custom_sales_price = item_doc.custom_sale_price_not_virtual - self.custom_sale_price = item_doc.custom_sales_price_1 + self.custom_sale_price = item_doc.custom_sale_price_not_virtual self.update_price() self.update_pricing_rule() From 7b99e58f51edbf5796717c49fe802a7eec0264f3 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Wed, 20 Nov 2024 15:44:13 +0700 Subject: [PATCH 41/43] add: support for param initial_tab --- .../webshop/doctype/webshop_settings/webshop_settings.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.js b/webshop/webshop/doctype/webshop_settings/webshop_settings.js index 2d5558b3f1..d88abe54d9 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.js +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.js @@ -3,6 +3,13 @@ frappe.ui.form.on("Webshop Settings", { onload: function(frm) { + const tab = frappe.route_options?.initial_tab; + if (tab) { + frm.layout.select_tab(tab); + // remove the tab from url + window.history.replaceState(null, null, window.location.href.replace(window.location.search, "")); + } + if(frm.doc.__onload && frm.doc.__onload.quotation_series) { frm.fields_dict.quotation_series.df.options = frm.doc.__onload.quotation_series; frm.refresh_field("quotation_series"); From e7a4461bec92b79209670bdf183645cf9c482b5d Mon Sep 17 00:00:00 2001 From: umer2001 Date: Tue, 26 Nov 2024 14:07:46 +0700 Subject: [PATCH 42/43] fix: inconsistent tab behaviour --- .../doctype/webshop_settings/webshop_settings.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/webshop/webshop/doctype/webshop_settings/webshop_settings.js b/webshop/webshop/doctype/webshop_settings/webshop_settings.js index d88abe54d9..2d71a6f7f2 100644 --- a/webshop/webshop/doctype/webshop_settings/webshop_settings.js +++ b/webshop/webshop/doctype/webshop_settings/webshop_settings.js @@ -3,13 +3,6 @@ frappe.ui.form.on("Webshop Settings", { onload: function(frm) { - const tab = frappe.route_options?.initial_tab; - if (tab) { - frm.layout.select_tab(tab); - // remove the tab from url - window.history.replaceState(null, null, window.location.href.replace(window.location.search, "")); - } - if(frm.doc.__onload && frm.doc.__onload.quotation_series) { frm.fields_dict.quotation_series.df.options = frm.doc.__onload.quotation_series; frm.refresh_field("quotation_series"); @@ -20,6 +13,12 @@ frappe.ui.form.on("Webshop Settings", { }); }, refresh: function(frm) { + const tab = frappe.route_options?.initial_tab; + if (tab) { + frm.layout.select_tab(tab); + // remove the tab from url + window.history.replaceState(null, null, window.location.href.replace(window.location.search, "")); + } if (frm.doc.enabled) { frm.get_field('store_page_docs').$wrapper.removeClass('hide-control').html( `
${__("Follow these steps to create a landing page for your store")}: From e9b6543140c1527a6b3c52db5c57937cccb69593 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Mon, 2 Dec 2024 20:49:16 +0000 Subject: [PATCH 43/43] fix: streamline before_save logic and improve custom image handling --- webshop/webshop/custom/website_item.json | 6320 ++++++++--------- .../website_item/custom_website_item.py | 24 +- 2 files changed, 3175 insertions(+), 3169 deletions(-) diff --git a/webshop/webshop/custom/website_item.json b/webshop/webshop/custom/website_item.json index 353a10ca17..ba3ae2d6a5 100644 --- a/webshop/webshop/custom/website_item.json +++ b/webshop/webshop/custom/website_item.json @@ -1,3170 +1,3170 @@ { "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-08-30 11:47:30.465119", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom__item_product_variants", - "fieldtype": "Table", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 24, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_manage_variants", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Item Product variants", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-08-30 11:47:30.465119", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom__item_product_variants", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": "Item Product variants", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:37:46.477892", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_additional_info", - "fieldtype": "Tab Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 72, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "website_warehouse", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Additional Info", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:46.477892", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_additional_info", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:19:38.156404", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_0n8ml", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 32, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "stock_information_section", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:38.156404", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_0n8ml", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:34.976493", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_8rnbk", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 58, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_on_sale", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.976493", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_8rnbk", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:40.211057", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_ct4ct", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 67, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_set_discount_value", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:40.211057", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_ct4ct", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-10 11:21:46.309102", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_eziym", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 28, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "item_group", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-10 11:21:46.309102", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_eziym", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-04 02:16:16.875651", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_column_break_tgeci", - "fieldtype": "Column Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 36, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "section_break_17", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-04 02:16:16.875651", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_column_break_tgeci", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:35.415987", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_cost_of_goods", - "fieldtype": "Currency", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 60, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_logo_section_in_pricing", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Cost of goods", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:35.415987", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_cost_of_goods", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:39.391211", - "default": null, - "depends_on": "custom_on_sale", - "description": "Set your discount value based on your selected discount type.", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_disc_value", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 65, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_select_discount_type_", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
2. Set Value
", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:39.391211", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_disc_value", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:38.449268", - "default": null, - "depends_on": "custom_on_sale", - "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_discount_type_section", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 63, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_sale_price", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
1. Select Type
", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:38.449268", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_discount_type_section", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-08 16:18:21.038726", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_get_images_from_main_item", - "fieldtype": "Button", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 15, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_images_section_top", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Get Images from Main Item", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-08 16:18:21.038726", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_get_images_from_main_item", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:37:48.313034", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_get_information_from_main_item", - "fieldtype": "Button", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 74, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_web_information", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Get Information from Main Item", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:48.313034", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_get_information_from_main_item", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 15:14:12.492209", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_images_list", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 13, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "slideshow", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 15:14:12.492209", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_images_list", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-04 12:59:47.113557", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_images_section_top", - "fieldtype": "HTML", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 14, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_images_list", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-04 12:59:47.113557", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_images_section_top", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": "", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:19:38.906599", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_inventory", - "fieldtype": "Tab Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 69, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_sales_price", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Inventory", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:38.906599", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_inventory", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-04 13:16:11.302786", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_logo_section_in_pricing", - "fieldtype": "HTML", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 59, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_column_break_8rnbk", - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-04 13:16:11.302786", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_logo_section_in_pricing", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": "", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:43.842028", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_long_description", - "fieldtype": "Text", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 80, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_return__refund_title", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Long Description", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:43.842028", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_long_description", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-08-30 11:47:30.019944", - "default": null, - "depends_on": "eval:doc.has_variants", - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_manage_variants", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 23, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_website_pricing_virtual", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Manage variants", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-08-30 11:47:30.019944", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_manage_variants", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:36.307102", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_margin", - "fieldtype": "Currency", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 61, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_cost_of_goods", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Margin", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:36.307102", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_margin", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:41:10.474275", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_on_sale", - "fieldtype": "Check", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 57, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_price", - "is_system_generated": 0, - "is_virtual": 0, - "label": "On Sale", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:41:10.474275", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_on_sale", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:34.516620", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_price", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 56, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_website_pricing_summary", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Price", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.516620", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_price", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:31:26.955361", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_pricing", - "fieldtype": "Tab Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 54, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "website_content", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Pricing", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:31:26.955361", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_pricing", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:42.849188", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_return__refund_policy", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 78, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "web_long_description", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Return & Refund Policy
", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:42.849188", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_return__refund_policy", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:43.375530", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_return__refund_title", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 79, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_return__refund_policy", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Return & Refund Title", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:43.375530", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_return__refund_title", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-09 09:56:53.647342", - "default": "eval:doc.custom_sales_price", - "depends_on": "eval:doc.custom_on_sale==1", - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": "item_code.custom_sale_price_not_virtual", - "fetch_if_empty": 1, - "fieldname": "custom_sale_price", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 62, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_margin", - "is_system_generated": 0, - "is_virtual": 1, - "label": "Sale Price", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-09 09:56:53.647342", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sale_price", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:40.633488", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_sales_price", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 68, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_column_break_ct4ct", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Sale Price", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:40.633488", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sales_price", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:27:29.545204", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_section_break_1ewip", - "fieldtype": "Section Break", - "hidden": 1, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 1, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": null, - "is_system_generated": 0, - "is_virtual": 0, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:27:29.545204", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_section_break_1ewip", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:38.900861", - "default": "Discount Percentage", - "depends_on": null, - "description": "", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_select_discount_type_", - "fieldtype": "Select", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 64, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_discount_type_section", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Select Discount Type ", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:38.900861", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_select_discount_type_", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": "Discount Percentage\nDiscount Amount", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:50:39.798356", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_set_discount_value", - "fieldtype": "Currency", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 66, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_disc_value", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Set Discount Value", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:50:39.798356", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_set_discount_value", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:45.195914", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_shipping_description", - "fieldtype": "Text", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 83, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_shipping_title", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Description", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:45.195914", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_shipping_description", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:44.272494", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_shipping_info", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 81, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_long_description", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Shipping Info
", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:44.272494", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_shipping_info", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-03 10:30:44.701346", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_shipping_title", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 82, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_shipping_info", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Shipping Title", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-03 10:30:44.701346", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_shipping_title", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:20:55.440897", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_web_category", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 25, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom__item_product_variants", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Website Category
", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:20:55.440897", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_web_category", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:37:47.432740", - "default": null, - "depends_on": null, - "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_web_information", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 73, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_additional_info", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Web Information", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:37:47.432740", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_web_information", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 15:04:22.636948", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_pricing", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 21, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "published", - "is_system_generated": 0, - "is_virtual": 0, - "label": "
Website Pricing
", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 15:04:22.636948", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_pricing", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 16:39:34.116365", - "default": null, - "depends_on": null, - "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_pricing_summary", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 55, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_pricing", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Website Pricing Summary", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 16:39:34.116365", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_pricing_summary", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 15:04:23.017573", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_pricing_virtual", - "fieldtype": "Read Only", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 22, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_website_pricing", - "is_system_generated": 0, - "is_virtual": 1, - "label": "", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 15:04:23.017573", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_pricing_virtual", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2024-07-02 17:19:39.373397", - "default": null, - "depends_on": null, - "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", - "docstatus": 0, - "dt": "Website Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_website_store_inventory", - "fieldtype": "Section Break", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 70, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_inventory", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Website Store Inventory", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-07-02 17:19:39.373397", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_website_store_inventory", - "no_copy": 0, - "non_negative": 0, - "not_in_filter": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - } + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-08-30 11:47:30.465119", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom__item_product_variants", + "fieldtype": "Table", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 24, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_manage_variants", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Item Product variants", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-30 11:47:30.465119", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom__item_product_variants", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": "Item Product variants", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:46.477892", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_additional_info", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 72, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "website_warehouse", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Additional Info", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:46.477892", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_additional_info", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:38.156404", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_0n8ml", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 32, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "stock_information_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:38.156404", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_0n8ml", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.976493", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_8rnbk", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 58, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_on_sale", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.976493", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_8rnbk", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:40.211057", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_ct4ct", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 67, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_set_discount_value", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:40.211057", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_ct4ct", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-10 11:21:46.309102", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_eziym", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 28, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "item_group", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-10 11:21:46.309102", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_eziym", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 02:16:16.875651", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_column_break_tgeci", + "fieldtype": "Column Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 36, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "section_break_17", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-04 02:16:16.875651", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_column_break_tgeci", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:35.415987", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_cost_of_goods", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 60, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_logo_section_in_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Cost of goods", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:35.415987", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_cost_of_goods", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:39.391211", + "default": null, + "depends_on": "custom_on_sale", + "description": "Set your discount value based on your selected discount type.", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_disc_value", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 65, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_select_discount_type_", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
2. Set Value
", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:39.391211", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_disc_value", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:38.449268", + "default": null, + "depends_on": "custom_on_sale", + "description": "Select type of discount you want to use, you can use\u2028By Percentages or
By Total Amount of your product", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_discount_type_section", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 63, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sale_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
1. Select Type
", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:38.449268", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_discount_type_section", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-08 16:18:21.038726", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_get_images_from_main_item", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 15, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_images_section_top", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Get Images from Main Item", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-08 16:18:21.038726", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_get_images_from_main_item", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:48.313034", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_get_information_from_main_item", + "fieldtype": "Button", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 74, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_web_information", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Get Information from Main Item", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:48.313034", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_get_information_from_main_item", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 15:14:12.492209", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_list", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 13, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "slideshow", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 15:14:12.492209", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_list", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 12:59:47.113557", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_images_section_top", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 14, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_images_list", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-04 12:59:47.113557", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_images_section_top", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": "", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:38.906599", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_inventory", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 69, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_sales_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Inventory", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:38.906599", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_inventory", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-04 13:16:11.302786", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_logo_section_in_pricing", + "fieldtype": "HTML", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 59, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_8rnbk", + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-04 13:16:11.302786", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_logo_section_in_pricing", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": "", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:43.842028", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_long_description", + "fieldtype": "Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 80, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_return__refund_title", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Long Description", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:43.842028", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_long_description", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-08-30 11:47:30.019944", + "default": null, + "depends_on": "eval:doc.has_variants", + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_manage_variants", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 23, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing_virtual", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Manage variants", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-08-30 11:47:30.019944", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_manage_variants", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:36.307102", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_margin", + "fieldtype": "Currency", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 61, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_cost_of_goods", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Margin", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:36.307102", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_margin", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:41:10.474275", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_on_sale", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 57, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_price", + "is_system_generated": 0, + "is_virtual": 0, + "label": "On Sale", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:41:10.474275", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_on_sale", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.516620", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 56, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing_summary", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Price", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.516620", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_price", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:31:26.955361", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_pricing", + "fieldtype": "Tab Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 54, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "website_content", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Pricing", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:31:26.955361", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_pricing", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:42.849188", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_return__refund_policy", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 78, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "web_long_description", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Return & Refund Policy
", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:42.849188", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_return__refund_policy", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:43.375530", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_return__refund_title", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 79, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_return__refund_policy", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Return & Refund Title", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:43.375530", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_return__refund_title", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-09 09:56:53.647342", + "default": "eval:doc.custom_sales_price", + "depends_on": "eval:doc.custom_on_sale==1", + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": "item_code.custom_sale_price_not_virtual", + "fetch_if_empty": 1, + "fieldname": "custom_sale_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 62, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_margin", + "is_system_generated": 0, + "is_virtual": 1, + "label": "Sale Price", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-09 09:56:53.647342", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sale_price", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:40.633488", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_sales_price", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 68, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_column_break_ct4ct", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Sale Price", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:40.633488", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sales_price", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:27:29.545204", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_section_break_1ewip", + "fieldtype": "Section Break", + "hidden": 1, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 1, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": null, + "is_system_generated": 0, + "is_virtual": 0, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:27:29.545204", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_section_break_1ewip", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:38.900861", + "default": "Discount Percentage", + "depends_on": null, + "description": "", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_select_discount_type_", + "fieldtype": "Select", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 64, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_discount_type_section", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Select Discount Type ", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:38.900861", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_select_discount_type_", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": "Discount Percentage\nDiscount Amount", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:50:39.798356", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_set_discount_value", + "fieldtype": "Currency", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 66, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_disc_value", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Set Discount Value", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:50:39.798356", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_set_discount_value", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:45.195914", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_description", + "fieldtype": "Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 83, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_shipping_title", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Description", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:45.195914", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_description", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:44.272494", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_info", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 81, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_long_description", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Shipping Info
", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:44.272494", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_info", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-03 10:30:44.701346", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_shipping_title", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 82, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_shipping_info", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Shipping Title", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-03 10:30:44.701346", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_shipping_title", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:20:55.440897", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_web_category", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 25, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom__item_product_variants", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Website Category
", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:20:55.440897", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_web_category", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:37:47.432740", + "default": null, + "depends_on": null, + "description": "Here you'll detail your product with short and long descriptions, and set your refund policy and shipping information.", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_web_information", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 73, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_additional_info", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Web Information", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:37:47.432740", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_web_information", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 15:04:22.636948", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 21, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "published", + "is_system_generated": 0, + "is_virtual": 0, + "label": "
Website Pricing
", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 15:04:22.636948", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 16:39:34.116365", + "default": null, + "depends_on": null, + "description": "
Set specific website pricing list here, you can have different pricing
in your website which is different than the master item
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_summary", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 55, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_pricing", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Pricing Summary", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 16:39:34.116365", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_summary", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": "Set specific pricing list here, you can have different pricing
in your website which is different than the master item", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 15:04:23.017573", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_pricing_virtual", + "fieldtype": "Read Only", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 22, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_website_pricing", + "is_system_generated": 0, + "is_virtual": 1, + "label": "", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 15:04:23.017573", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_pricing_virtual", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2024-07-02 17:19:39.373397", + "default": null, + "depends_on": null, + "description": "
Control your stock levels here. Update quantities and track inventory across
all channels to keep your business running smoothly
\n
\n
", + "docstatus": 0, + "dt": "Website Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_website_store_inventory", + "fieldtype": "Section Break", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 70, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "custom_inventory", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Website Store Inventory", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-07-02 17:19:39.373397", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_website_store_inventory", + "no_copy": 0, + "non_negative": 0, + "not_in_filter": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } ], "custom_perms": [], "doctype": "Website Item", "links": [], "property_setters": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:52.230639", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "advanced_display_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.207831", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-advanced_display_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:56:14.571155", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_on_sale", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.777759", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_on_sale-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-17 17:18:28.033766", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_price", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.720063", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_price-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-12 15:59:28.885001", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_sale_price", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.748514", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sale_price-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-12 16:00:47.619089", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_sales_price", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.835900", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_sales_price-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.737469", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "custom_select_discount_type_", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.905212", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-custom_select_discount_type_-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 18:32:20.286896", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "description", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.023610", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-description-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:41:14.596249", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "description", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.157902", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-description-label", - "owner": "Administrator", - "property": "label", - "property_type": "Data", - "row_name": null, - "value": "Long Description" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.435972", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "display_additional_information_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.309237", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-display_additional_information_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 12:58:08.328023", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "display_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.081941", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-display_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-08-30 11:09:30.556549", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "has_variants", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-30 11:09:30.556549", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-has_variants-depends_on", - "owner": "Administrator", - "property": "depends_on", - "property_type": "Data", - "row_name": null, - "value": "eval:!doc.variant_of" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.680982", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "item_group", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.861120", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-item_group-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-10 11:39:48.830967", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "item_name", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:29.974248", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-item_name-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-10-21 13:51:22.871029", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocType", - "field_name": null, - "idx": 0, - "is_system_generated": 0, - "modified": "2024-10-21 13:51:22.871029", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-main-field_order", - "owner": "Administrator", - "property": "field_order", - "property_type": "Data", - "row_name": null, - "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_manage_variants\", \"custom__item_product_variants\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_select_discount_type_\", \"custom_disc_value\", \"custom_set_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-08-14 14:49:39.739758", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "naming_series", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-14 14:49:39.739758", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-naming_series-default", - "owner": "Administrator", - "property": "default", - "property_type": "Text", - "row_name": null, - "value": "WEB-ITM-.####" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-08-14 14:49:39.716605", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "naming_series", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-14 14:49:39.716605", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-naming_series-options", - "owner": "Administrator", - "property": "options", - "property_type": "Text", - "row_name": null, - "value": "WEB-ITM-.####" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.842150", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "offers_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.258242", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-offers_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 13:08:11.896267", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "published", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.055435", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-published-label", - "owner": "Administrator", - "property": "label", - "property_type": "Data", - "row_name": null, - "value": "Show in online store" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.642710", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "recommended_items_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.282430", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-recommended_items_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.709695", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "route", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.927091", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-route-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.224275", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "section_break_17", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.335707", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-section_break_17-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:52.023233", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "section_break_6", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.233738", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-section_break_6-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:41:14.382412", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "short_description", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.183479", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-short_description-label", - "owner": "Administrator", - "property": "label", - "property_type": "Data", - "row_name": null, - "value": "Short Description" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 12:51:29.934230", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "slideshow", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.108432", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-slideshow-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:21:51.003988", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "stock_information_section", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.358735", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-stock_information_section-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 14:00:30.610684", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "thumbnail", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.884244", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-thumbnail-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "0" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-11 12:06:44.637960", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "web_item_name", - "idx": 0, - "is_system_generated": 1, - "modified": "2024-08-15 11:59:29.806689", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-web_item_name-in_list_view", - "owner": "Administrator", - "property": "in_list_view", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-04 12:51:29.759972", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "website_image_alt", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.132188", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-website_image_alt-hidden", - "owner": "Administrator", - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-08 14:16:30.202343", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "website_images", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:29.997666", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-website_images-in_preview", - "owner": "Administrator", - "property": "in_preview", - "property_type": "Check", - "row_name": null, - "value": "1" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2024-07-02 17:19:37.907817", - "default_value": null, - "doc_type": "Website Item", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "website_warehouse", - "idx": 0, - "is_system_generated": 0, - "modified": "2024-08-15 11:59:30.381803", - "modified_by": "Administrator", - "module": null, - "name": "Website Item-website_warehouse-description", - "owner": "Administrator", - "property": "description", - "property_type": "Text", - "row_name": null, - "value": "Entering the first Stock of this product to track the inventory" - } + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:52.230639", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "advanced_display_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.207831", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-advanced_display_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:56:14.571155", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_on_sale", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.777759", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_on_sale-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-17 17:18:28.033766", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.720063", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-12 15:59:28.885001", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_sale_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.748514", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sale_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-12 16:00:47.619089", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_sales_price", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.835900", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_sales_price-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.737469", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "custom_select_discount_type_", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.905212", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-custom_select_discount_type_-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 18:32:20.286896", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.023610", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-description-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:41:14.596249", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.157902", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Long Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.435972", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "display_additional_information_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.309237", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-display_additional_information_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:58:08.328023", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "display_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.081941", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-display_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-08-30 11:09:30.556549", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "has_variants", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-30 11:09:30.556549", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-has_variants-depends_on", + "owner": "Administrator", + "property": "depends_on", + "property_type": "Data", + "row_name": null, + "value": "eval:!doc.variant_of" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.680982", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_group", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.861120", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-item_group-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-10 11:39:48.830967", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "item_name", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:29.974248", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-item_name-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-10-21 13:51:22.871029", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2024-10-21 13:51:22.871029", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"custom_section_break_1ewip\", \"naming_series\", \"route\", \"has_variants\", \"variant_of\", \"column_break_3\", \"stock_uom\", \"column_break_11\", \"display_section\", \"website_image_alt\", \"column_break_13\", \"slideshow\", \"custom_images_list\", \"custom_images_section_top\", \"custom_get_images_from_main_item\", \"thumbnail\", \"website_image\", \"website_images\", \"web_item_name\", \"published\", \"custom_website_pricing\", \"custom_website_pricing_virtual\", \"custom_manage_variants\", \"custom__item_product_variants\", \"custom_web_category\", \"item_code\", \"item_group\", \"custom_column_break_eziym\", \"brand\", \"item_name\", \"stock_information_section\", \"custom_column_break_0n8ml\", \"column_break_24\", \"on_backorder\", \"section_break_17\", \"custom_column_break_tgeci\", \"column_break_27\", \"website_specifications\", \"copy_from_item_group\", \"display_additional_information_section\", \"show_tabbed_section\", \"tabs\", \"recommended_items_section\", \"recommended_items\", \"offers_section\", \"offers\", \"section_break_6\", \"ranking\", \"set_meta_tags\", \"column_break_22\", \"website_item_groups\", \"advanced_display_section\", \"website_content\", \"custom_pricing\", \"custom_website_pricing_summary\", \"custom_price\", \"custom_on_sale\", \"custom_column_break_8rnbk\", \"custom_logo_section_in_pricing\", \"custom_cost_of_goods\", \"custom_margin\", \"custom_sale_price\", \"custom_discount_type_section\", \"custom_select_discount_type_\", \"custom_disc_value\", \"custom_set_discount_value\", \"custom_column_break_ct4ct\", \"custom_sales_price\", \"custom_inventory\", \"custom_website_store_inventory\", \"website_warehouse\", \"custom_additional_info\", \"custom_web_information\", \"custom_get_information_from_main_item\", \"short_description\", \"description\", \"web_long_description\", \"custom_return__refund_policy\", \"custom_return__refund_title\", \"custom_long_description\", \"custom_shipping_info\", \"custom_shipping_title\", \"custom_shipping_description\"]" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-08-14 14:49:39.739758", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "naming_series", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-14 14:49:39.739758", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-naming_series-default", + "owner": "Administrator", + "property": "default", + "property_type": "Text", + "row_name": null, + "value": "WEB-ITM-.####" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-08-14 14:49:39.716605", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "naming_series", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-14 14:49:39.716605", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-naming_series-options", + "owner": "Administrator", + "property": "options", + "property_type": "Text", + "row_name": null, + "value": "WEB-ITM-.####" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.842150", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "offers_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.258242", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-offers_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 13:08:11.896267", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "published", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.055435", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-published-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Show in online store" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.642710", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "recommended_items_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.282430", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-recommended_items_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.709695", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "route", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.927091", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-route-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.224275", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_17", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.335707", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-section_break_17-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:52.023233", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "section_break_6", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.233738", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-section_break_6-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:41:14.382412", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "short_description", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.183479", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-short_description-label", + "owner": "Administrator", + "property": "label", + "property_type": "Data", + "row_name": null, + "value": "Short Description" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.934230", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "slideshow", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.108432", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-slideshow-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:21:51.003988", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "stock_information_section", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.358735", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-stock_information_section-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 14:00:30.610684", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "thumbnail", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.884244", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-thumbnail-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "0" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-11 12:06:44.637960", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "web_item_name", + "idx": 0, + "is_system_generated": 1, + "modified": "2024-08-15 11:59:29.806689", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-web_item_name-in_list_view", + "owner": "Administrator", + "property": "in_list_view", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-04 12:51:29.759972", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_image_alt", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.132188", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_image_alt-hidden", + "owner": "Administrator", + "property": "hidden", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-08 14:16:30.202343", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_images", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:29.997666", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_images-in_preview", + "owner": "Administrator", + "property": "in_preview", + "property_type": "Check", + "row_name": null, + "value": "1" + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2024-07-02 17:19:37.907817", + "default_value": null, + "doc_type": "Website Item", + "docstatus": 0, + "doctype_or_field": "DocField", + "field_name": "website_warehouse", + "idx": 0, + "is_system_generated": 0, + "modified": "2024-08-15 11:59:30.381803", + "modified_by": "Administrator", + "module": null, + "name": "Website Item-website_warehouse-description", + "owner": "Administrator", + "property": "description", + "property_type": "Text", + "row_name": null, + "value": "Entering the first Stock of this product to track the inventory" + } ], "sync_on_migrate": 1 } \ No newline at end of file diff --git a/webshop/webshop/doctype/website_item/custom_website_item.py b/webshop/webshop/doctype/website_item/custom_website_item.py index bde159a930..9db2d8fdfb 100644 --- a/webshop/webshop/doctype/website_item/custom_website_item.py +++ b/webshop/webshop/doctype/website_item/custom_website_item.py @@ -7,6 +7,7 @@ import frappe from frappe import _ from frappe.utils import cint, cstr, flt, random_string +from frappe.core.doctype.file.utils import get_local_image, get_web_image from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow from frappe.website.website_generator import WebsiteGenerator @@ -70,16 +71,16 @@ def custom_website_pricing_virtual(self): def before_save(self): if self.is_new(): - if self.item_code: - item_doc = frappe.get_doc('Item', self.item_code) - self.custom_price = item_doc.standard_rate + item_doc = frappe.get_doc('Item', self.item_code) + self.custom_price = item_doc.standard_rate + if item_doc.custom_on_sale: self.custom_on_sale = item_doc.custom_on_sale self.custom_select_discount_type_ = item_doc.custom_discount_type self.custom_set_discount_value = item_doc.custom_discount_value self.custom_sales_price = item_doc.custom_sale_price_not_virtual - self.custom_sale_price = item_doc.custom_sale_price_not_virtual - self.update_price() - self.update_pricing_rule() + self.custom_sale_price = item_doc.custom_sales_price_1 + self.update_price() + self.update_pricing_rule() fields = self.get_changed_fields() if fields and len(fields) >= 2: @@ -195,7 +196,10 @@ def get_images_from_item(item_code, website_item): if website_item: website_item.website_images = [] for custom_image in item.get("custom_images"): - image = frappe.copy_doc(frappe.get_doc("File", custom_image.get("image"))).update({ + custom_image_doc = frappe.get_doc("File", custom_image.get("image")) + file_name, ext = custom_image_doc.file_name.split(".") + custom_image_doc.file_name = f"{file_name[:134]}.{ext}" + image = frappe.copy_doc(custom_image_doc).update({ "attached_to_doctype": "Website Item", "attached_to_name": website_item.name, "attached_to_field": "website_images", @@ -249,9 +253,11 @@ def make_website_item(doc, save=True): doc.get("image") and not website_item.website_image ): website_item.website_image = doc.get("image") - for custom_image in doc.get("custom_images", []): - image = frappe.copy_doc(frappe.get_doc("File", custom_image.get("image"))).update({ + custom_image_doc = frappe.get_doc("File", custom_image.get("image")) + file_name, ext = custom_image_doc.file_name.split(".") + custom_image_doc.file_name = f"{file_name[:134]}.{ext}" + image = frappe.copy_doc(custom_image_doc).update({ "attached_to_doctype": "Website Item", "attached_to_name": website_item.name, "attached_to_field": "website_images",