<% if can_delete_line_item?(order) && !params[:action].include?('checkout') -%> <%= button_to t('line_items.line_item.delete'), { :controller => :line_items, :action => :destroy, :id => line_item, :order_id => order, :trolley_id => trolley, :confirm => t('line_items.line_item.are_you_sure') }, :method => :delete %> <% end -%> <%= link_to_purchasable_in(line_item) -%>