order form

jarkkoj

Avatar: jarkkoj

2012-04-23 15:40

In the order form I would need a default payment&shipment method. I have managed to create a single payment method, but it is not default, meaning that a customer still hast to choose this one method from a drop down menu. Is there a way to disable the drop down menu so that the order form would automatically accept the default method?

» Quick.Cart v5.x

jarkko juselius

beholder

Avatar: beholder

2012-04-23 21:02

This is very easy to do. In file templates/default/orders_step-2.tpl you can disable showing of the order form's whole shippingAndPayments fieldset by adding a CSS property display:none; to it. Like this:
<fieldset id="shippingAndPayments" style="display:none;">

Then you should change this line in core/orders.php:
'<option value="'.$iShipping.';'.$iPayment.';'.$fShippingPaymentPrice.'">'.
to following:
'<option selected value="'.$iShipping.';'.$iPayment.';'.$fShippingPaymentPrice.'">'.

And I think that's it. If this works, click green thumb up.
If not, do let me know, perhaps I overlooked something.

http://cicmanec.sk/easyplugins/

jarkkoj

Avatar: jarkkoj

2012-04-24 11:54

ok, thanks beholder.

jarkkoj

Back to top
about us | contact