From ad4ce14486e0eadc6b8cfa7af35324e7fa1dd13b Mon Sep 17 00:00:00 2001 From: piyyu Date: Fri, 26 Dec 2025 00:11:09 +0530 Subject: [PATCH 1/2] Fix import multiple products button route --- app/views/admin/products_v3/_no_products.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/products_v3/_no_products.html.haml b/app/views/admin/products_v3/_no_products.html.haml index fb81197908..efb86d0b50 100644 --- a/app/views/admin/products_v3/_no_products.html.haml +++ b/app/views/admin/products_v3/_no_products.html.haml @@ -7,5 +7,6 @@ #no-products-actions %a{ href: "/admin/products/new", class: "button icon-plus", icon: "icon-plus" } = t(:new_product) - %a{ href: "/admin/products/import", class: "button icon-upload secondary", icon: "icon-upload" } + %a{ href: admin_product_import_path, class: "button icon-upload secondary", icon: "icon-upload" } = t(".import_products") + From 0f59333cd982e25984178863d53c1417e49c4a13 Mon Sep 17 00:00:00 2001 From: piyyu Date: Fri, 26 Dec 2025 02:10:46 +0530 Subject: [PATCH 2/2] Fix import multiple products button route --- spec/system/admin/products_v3/actions_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/products_v3/actions_spec.rb b/spec/system/admin/products_v3/actions_spec.rb index 6ce798332a..8b09bf6b7b 100644 --- a/spec/system/admin/products_v3/actions_spec.rb +++ b/spec/system/admin/products_v3/actions_spec.rb @@ -27,7 +27,7 @@ RSpec.describe 'As an enterprise user, I can manage my products' do # displays buttons to add products with the correct links expect(page).to have_link(class: "button", text: "New Product", href: "/admin/products/new") expect(page).to have_link(class: "button", text: "Import multiple products", - href: "/admin/products/import") + href: admin_product_import_path) end end