From ab811b2c837395c268eea6462b483bccff2a629d Mon Sep 17 00:00:00 2001 From: Arun Guleria Date: Tue, 24 Feb 2026 18:16:34 +0530 Subject: [PATCH 1/2] 13864-Remove dead feature to re-arrange variants --- app/views/spree/admin/variants/index.html.haml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/views/spree/admin/variants/index.html.haml b/app/views/spree/admin/variants/index.html.haml index f6ba802805..36e81c258e 100644 --- a/app/views/spree/admin/variants/index.html.haml +++ b/app/views/spree/admin/variants/index.html.haml @@ -6,23 +6,19 @@ %table.index.sortable{"data-sortable-link" => update_positions_admin_product_variants_path(@product)} %colgroup - %col{style: "width: 5%"}/ %col{style: "width: 25%"}/ - %col{style: "width: 20%"}/ - %col{style: "width: 20%"}/ - %col{style: "width: 15%"}/ - %col{style: "width: 15%"}/ + %col{style: "width: 25%"}/ + %col{style: "width: 25%"}/ + %col{style: "width: 25%"}/ %thead %tr - %th{colspan: "2"}= t('.options') - %th= t('.price') - %th= t('.sku') + %th= t('.options') + %th{ style: 'text-align: center;' }= t('.price') + %th{ style: 'text-align: center;' }= t('.sku') %th.actions %tbody - @variants.each do |variant| %tr{id: spree_dom_id(variant), class: cycle('odd', 'even'), style: "#{"color:red;" if variant.deleted? }" } - %td.no-border - %span.handle %td= variant.full_name %td.align-center= variant.display_price.to_html %td.align-center= variant.sku From b7a17548797281ad8c8226e4dc4f58b67dda7f53 Mon Sep 17 00:00:00 2001 From: Arun Guleria Date: Wed, 25 Feb 2026 16:29:20 +0530 Subject: [PATCH 2/2] 13864 - remove unnecessary routes for update positions --- app/views/spree/admin/variants/index.html.haml | 2 +- config/routes/spree.rb | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/views/spree/admin/variants/index.html.haml b/app/views/spree/admin/variants/index.html.haml index 36e81c258e..f5dcba2828 100644 --- a/app/views/spree/admin/variants/index.html.haml +++ b/app/views/spree/admin/variants/index.html.haml @@ -4,7 +4,7 @@ #new_variant -%table.index.sortable{"data-sortable-link" => update_positions_admin_product_variants_path(@product)} +%table.index %colgroup %col{style: "width: 25%"}/ %col{style: "width: 25%"}/ diff --git a/config/routes/spree.rb b/config/routes/spree.rb index 66eb12ede9..01d6d4ad3e 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -69,11 +69,7 @@ Spree::Core::Engine.routes.draw do end end - resources :variants do - collection do - post :update_positions - end - end + resources :variants end get '/variants/search', :to => "variants#search", :as => :search_variants