Hi everyone! I'm new and just started using Solidu...
# support
n
Hi everyone! I'm new and just started using Solidus 3.2 - how can I add simple feature to be able to reorder before placed order • button on orders view - Reorder • clicking button will add selected order items to cart and I can then reorder the same ? Anyone know what should be done to do it? Thanks
j
You can use the order contents API to loop over the items in the previous order and add them to the new one.
n
@Jared Norman thanks for your replay, Is any other way to pass some params to the cart and populate cart - products quantity and variants from old order? I can add method reorder -> get old order by code and have access to line_items but don't know how to pass data to cart ..
j
You're going to want to write your own controller action to do this. The existing order populate action won't work for you, if that's what you're asking.