Developer forum

Forum » Development » How to: change number of products in step 2 of shoppingcart

How to: change number of products in step 2 of shoppingcart


Reply
Hi,

A costumer of us wants to have a single page on the website for placing an order. We figured out it would be best to choose step 2 as the only visible webpage for the order process (after that step, the customer is redirected to the payment gateway).
The website therefor exists out of three pages: a welcomepage, an orderpage and a 'thank you' page. The button on the welcomepage automaticaly adds a product to the shoppingbasket. The customer has to enter his or hers personal information on step 2, this is also the place where we want to add an input box for inserting the number of products wanted. The button at the foot of the page then redirects to the payment gateway.

The problem: we tried to do a lot with submitting the value from the input box for quantity, but never got it working to display the new number of products. We even tried to submit the values to step 1, and afterwards (on the page for step 1) directly redirect the user back to step 2. Nothing worked.

To see this all sort of working, check audikalender.klanten.designit.nl

Thanks!

Replies

 
Reply
Hi

Your right, that the correct step for entering customer information is step 2. However, updating quantity on orderlines happens in step 1.

The Dynamicweb cart is, as you probably know, divided into 6 steps. Changing this behavior will require custom code.

You could make a notification subscriber to listen for 'CustomerInfoHarvested' and then change the orderline quantity to the number entered by the user in step 2.

Hope this helps.

 - Lasse

 

You must be logged in to post in the forum