OMbhh Posted June 8, 2018 Share Posted June 8, 2018 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 0 Quote Link to comment Share on other sites More sharing options...
anderbytes Posted July 3, 2018 Share Posted July 3, 2018 Have you tried JQuery yet? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 4, 2018 Share Posted July 4, 2018 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? 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.