Hi,
I'm working on a solution with eCom where I need to create an "instant order" form - so on the page I have a button adding the product to the cart via ajax. When the ajax is done I show the checkout form on the productpage. The productpage (a page with list of products in specific group) has the URL /product, but ofcouse the URL changes when viewing different product groups. So for product-group-1 and product-group-2 the URL would be /product/product-group-1 and /product/product-group-2.
When checking out the user is redirected to /product?CompletedOrderId=ORDERXXX&CompletedOrderSecret=XXXXX
Is there anyway I can override this and submit to the exact URL with the correct group instead of just the page called product? So when checking out on the product-group-1 page I would like to redirect to /product/product-group-1?CompletedOrderId=ORDERXXX&CompletedOrderSecret=XXXXX