Commit d35914c3 authored by Attila Santo-Rieder's avatar Attila Santo-Rieder
Browse files

Issue #3277723 by attisan: Consider `locked` order items when rendering cart

parent 5439d8c3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4,11 +4,13 @@
        <tr>
            <td class="cart-block--offcanvas-cart-table__title"><%- orderItem.title %></td>
            <td class="cart-block--offcanvas-cart-table__quantity">
                <input type="number" data-key="<% print(key) %>" min="1" value="<% print(parseInt(orderItem.quantity)) %>" style="width: 35px" />
                <input type="<% if (!(orderItem.locked || false)) { print('number') } else { print('hidden') } %>" data-key="<% print(key) %>" min="1" value="<% print(parseInt(orderItem.quantity)) %>" style="width: 35px" />
            </td>
            <td class="cart-block--offcanvas-cart-table__price"><%= orderItem.total_price.formatted %></td>
            <td class="cart-block--offcanvas-cart-table__remove">
                <% if (!(orderItem.locked || false)) { %>
                    <button value="<% print(JSON.stringify([cart.order_id, orderItem.order_item_id]))  %>" class="button btn">x</button>
                <% } %>
            </td>
        </tr>
    <% }) %>