Jump to content

Order Form Customization


Recommended Posts

We want radio button instead of Drop-down inside the order Form for choosing Products ( monthly quarterly or Annually or bi-Annually ). Is that possible ? if yes any Addon is available

Can we change the default to Annual ?

Can we change drop-down to radio button

Link to comment
Share on other sites

  • 4 weeks later...
On 08/06/2018 at 16:18, OMbhh said:

We want radio button instead of Drop-down inside the order Form for choosing Products ( monthly quarterly or Annually or bi-Annually ). Is that possible ?

you mean the billingcycle dropdown?

9GRZzLW.png

the problem is the dropdown triggers the price recalculation, so you would have to ensure the JS continued to work... any particular reason why you want to change it to radios ? you could make the billingcycle choice at the products stage (step1) depending on the orderform being used, i've posted a couple of threads about that peviously.

personally, i'd leave it as a dropdown unless you have a good reason to change it.

On 08/06/2018 at 16:18, OMbhh said:

Can we change the default to Annual ?

you could use a hook to set it to "Annually" is the product has an annual price (technically you may not even need to check if it does, i'm just being safe!)...

<?php

# Set Billing Cycle
# Written by brian!

function hook_set_billing_cycle($vars) {
	
	$templatefile = $vars['templatefile'];
	$pricing = $vars['pricing'];
	
	if ($templatefile == "configureproduct" && !empty($pricing['annually'])) {
		return array("billingcycle" => "annually");   
	}
}
add_hook("ClientAreaPageCart",1,"hook_set_billing_cycle"); 
?>

... and i'm also assuming that you want to do this for all products...

btw, if you decide to move the billingcycle choice to the products stage and remove it from configureproduct, then i'd suggest not using this hook.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated