Craft Commerce: After add to cart, redirect to specific line item I'm building a craftcommerce based site, where each item added to the cart must be individually customised through a wizard interface.

When the item first gets added to the cart, I'd like to immediately redirect to a page where we can customise the item further

Something like the redirect shown below:

&lt;input type="hidden" name="action" value="commerce/cart/updateCart"&gt;
&lt;input type="hidden" name="redirect" value="commerce/item?item={id}"&gt;
&lt;input type="hidden" name="qty" value="1"&gt;
&lt;input type="hidden" name="purchasableId" value="{{ purchasable.purchasableId }}"&gt;
&lt;input type="submit" value="{{ "Buy"|t }}" class="btn btn-default"/&gt;


This is possible with user form submission for instance, where the newly created user id is accessible via the method described above.

Any ideas on how I would go about doing this?
I created a simple plugin to redirect using the onAddToCart method

  craft()-&gt;on('commerce_cart.onAddToCart', function($event){

      $lineItem = $event-&gt;params['lineItem'];

      craft()-&gt;request-&gt;redirect("/commerce/item/?item=" . $lineItem-&gt;id);

  });