From 95b1911f3842ef96859f06cd70adc253d76f986a Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 21 Mar 2022 13:30:14 +0000 Subject: [PATCH] Hides the default address checkbox for guest customers --- app/views/split_checkout/_details.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/split_checkout/_details.html.haml b/app/views/split_checkout/_details.html.haml index d7c7cdbda5..836d3bb170 100644 --- a/app/views/split_checkout/_details.html.haml +++ b/app/views/split_checkout/_details.html.haml @@ -61,8 +61,8 @@ = bill_address.label :state_id, t("split_checkout.step1.address.state_id.label") = bill_address.select :state_id, states_for_country(bill_address_country), { selected: @order.bill_address&.state_id }, { "data-dependant-select-target": "select" } - - if spree_current_user||true - %div.checkout-input + - if spree_current_user + %div.checkout-input{ "data-toggle-target": "content", style: "display: none" } = f.check_box :save_bill_address = f.label :save_bill_address, t(:checkout_default_bill_address)