diff --git a/ecommerce_integrations/shopify/doctype/shopify_setting/shopify_setting.js b/ecommerce_integrations/shopify/doctype/shopify_setting/shopify_setting.js index 68127c63..e80cf302 100644 --- a/ecommerce_integrations/shopify/doctype/shopify_setting/shopify_setting.js +++ b/ecommerce_integrations/shopify/doctype/shopify_setting/shopify_setting.js @@ -31,6 +31,9 @@ frappe.ui.form.on("Shopify Setting", { frm.add_custom_button(__('Import Products'), function () { frappe.set_route('shopify-import-products'); }); + frm.add_custom_button(__("View Logs"), () => { + frappe.set_route("List", "Ecommerce Integration Log", {"integration": "Shopify"}); + }); } }); diff --git a/ecommerce_integrations/unicommerce/doctype/unicommerce_settings/unicommerce_settings.js b/ecommerce_integrations/unicommerce/doctype/unicommerce_settings/unicommerce_settings.js index ec9d2d83..4f4344c3 100644 --- a/ecommerce_integrations/unicommerce/doctype/unicommerce_settings/unicommerce_settings.js +++ b/ecommerce_integrations/unicommerce/doctype/unicommerce_settings/unicommerce_settings.js @@ -8,7 +8,7 @@ frappe.ui.form.on("Unicommerce Settings", { } frm.add_custom_button(__("View Logs"), () => { - frappe.set_route("List", "Ecommerce Integration Log", "List"); + frappe.set_route("List", "Ecommerce Integration Log", {"integration": "Unicommerce"}); }); let sync_buttons = ["Items", "Orders", "Inventory"];