Developer forum

Forum » Ecommerce - Standard features » Order discount in one step checkout

Order discount in one step checkout

Aki Ruuskanen
Reply

We have a customer with the old solutionset. We use the one step checkout template. 

I'm trying to use the vouchercode field for a order discount. The discount works if the order gets submitted. 

The problem is that I would like to have a button to add for the discount without the order getting created. 

I can see that there already is a hidden field like below:

<input type="hidden" name="CartV2.GotoStep1" id="CartV2.GotoStep1" value="true">

I thought that that would mean that you end up in step one and no order is created. I have tried with value="update" also. But the order is created. 

How can I have a button that adds the discount in a one step checkout without creating the order?

 

Regards / Aki

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Aki

On wrap (http://wrap.dynamicweb-cms.com/cart) we do this simply by submitting the order form:

var form = document.getElementById('ordersubmit');
form.submit();

BR Nicolai

 

You must be logged in to post in the forum