From 05ca1e3768014c8586b84ffc17af56b6973f6a1e Mon Sep 17 00:00:00 2001 From: Miguel Michelson Date: Sun, 11 Aug 2024 23:35:17 -0400 Subject: [PATCH] shipping info --- app/controllers/tracks_controller.rb | 2 +- app/views/sales/product_show.erb | 30 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/app/controllers/tracks_controller.rb b/app/controllers/tracks_controller.rb index e656052..c95aff2 100644 --- a/app/controllers/tracks_controller.rb +++ b/app/controllers/tracks_controller.rb @@ -136,7 +136,7 @@ def track_bulk_params :enable_label, :step, audio: [], tracks_attributes: [ - :audio, :cover, :title, :tags, :description + :audio, :cover, :title, :description, :private, tags: [] ] ) end diff --git a/app/views/sales/product_show.erb b/app/views/sales/product_show.erb index e9153bf..1657efa 100644 --- a/app/views/sales/product_show.erb +++ b/app/views/sales/product_show.erb @@ -26,6 +26,36 @@ + <% if @product_item.shipping_address.present? %> +
+
Shipping Address
+
+
    + +
  • +
    + + Name: <%= @product_item.shipping_name %> + +
    +
  • + + <% @product_item.shipping_address.each do |key, value| %> + <% if value.present? %> +
  • +
    + + <%= key.titleize %>: <%= value %> + +
    +
  • + <% end %> + <% end %> +
+
+
+ <% end %> +
Payment Status