Developer forum

Forum » Development » Pay-method and shipping

Pay-method and shipping


Reply
How do I make my basket pre-select the first (only) paymethod and shipping-method - as it is now - I have one pay method and one shipping method - and none of them are selected, så the customer is able to place an order without selecting pay- and shipping method...

Replies

 
Reply
mfh@haug-it.dk wrote:

How do I make my basket pre-select the first (only) paymethod and shipping-method - as it is now - I have one pay method and one shipping method - and none of them are selected, så the customer is able to place an order without selecting pay- and shipping method...

Hi


 


Use this in the Method.html template - it works fine:


 


script type="text/javascript" language="JavaScript"

'function submitForm() {

 '  document.submitMethodData.submit();

'}

/script


form method="post" action="" name="submitMethodData"

input type="hidden" name="EcomCartPaymethodID" value="PAY2">

input type="hidden" name="EcomCartShippingmethodID" value="SHIP1"


/form>


script type="text/javascript" language="JavaScript"

   javascript_submitForm();

/script


 


I have removed "<" and ">" for the sake of the editor


If you want, i can drop you the template in a mail if needed.




//Lars

 
Reply

- if you want, i can drop you the template in a mail if needed.


//Lars




Please do ;O)
 
Reply
mfh@haug-it.dk wrote:

How do I make my basket pre-select the first (only) paymethod and shipping-method - as it is now - I have one pay method and one shipping method - and none of them are selected, så the customer is able to place an order without selecting pay- and shipping method...



The easy method is just to add  checked="checked" to the input field in the loop.


That will preselect the last option out of a series - and if you only have one shipping method, then that's the one.

 

You must be logged in to post in the forum