Sha256: 8d309bce10d6e1b8e6699eb44d73d3e7325352862deea74a2aadad17129b2a36

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

<%
  order = order_form.object

  is_order_empty = (
    order.adjustments.nonzero.exists? ||
    order.line_item_adjustments.nonzero.exists? ||
    order.shipment_adjustments.nonzero.exists? ||
    order.shipments.any?
  )
%>

<section class="cart-items">
  <%= render(
    partial: 'spree/components/cart/cart_item',
    collection: order.line_items,
    as: :line_item,
    locals: { order_form: order_form }
  ) %>

  <% if is_order_empty %>
    <%= render 'spree/components/cart/cart_adjustments' %>
  <% end %>
</section>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/views/spree/components/cart/_cart_items.html.erb