A
A
Adel Khalitov2018-05-12 15:58:47
MODX
Adel Khalitov, 2018-05-12 15:58:47

How to implement sending to cart 2 items minishop2 modx?

Conclusion

<form method="post" class="ms2_form">
    <div class="row ms2_product">
        
        <div class="col-md-3 offset-md-3">
            <button class="btn btn-default pull-right" type="submit" name="ms2_action" value="cart/add">Сделать заказ</button>
        </div>

    </div>
</form>

tpl.item_recl:
<div class="col-md-6 col-lg-3">
  <input type="hidden" name="id" value="{$id}">
  <input type="number" name="count" value="1">
  <input type="hidden" name="options" value="[]">
</div>

I'm trying to display 2 products this way. Comes out without a hitch.
When you click on the "Make an order" button, only the last item with the current quantity flies to the basket. How can I send the first item?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question