geekhost Posted October 8, 2010 Share Posted October 8, 2010 Ok what we want to do is remove the billing cycle from the order process for only one particular product group as we use the billing cycle for all other products...so the option of removing it globally will not work. Here is what we have: Billing Cycle $0.00 CAD One Time The product group is: cart.php?gid=5 Every product in this product group is priced via configurable options. We are using WHMCS version 4.2.1 Could someone shed some light on this one? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted October 11, 2010 Administrators Share Posted October 11, 2010 In Setup > Products/Services > Edit > Pricing tab, enter -1.00 in the price row for the billing cycle you want to disable. 0 Quote Link to comment Share on other sites More sharing options...
geekhost Posted October 11, 2010 Author Share Posted October 11, 2010 Hi John that wont work because the product is priced by configurable options so doing so will only cause this: $-1.00 CAD + $-1.00 CAD Setup Fee One Time 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted October 12, 2010 Administrators Share Posted October 12, 2010 That's not the case, entering -1.00 in the pricing row will prevent clients from selecting that billing cycle. If you don't want to charge a setup fee (ie. free setup) the setup row should be left at 0.00 as usual. 0 Quote Link to comment Share on other sites More sharing options...
geekhost Posted October 13, 2010 Author Share Posted October 13, 2010 I understand what you are saying but it is not quite what I want to do...here is a screen shot. To clarify I would like to completely remove the billing cycle and only show configurable options. Keep in mind that I only want to remove this from: The product group: cart.php?gid=5 All other product groups should show this...what I am asking for is the "if" statement to hide the billing cycle option from product group 5 only. See picture: 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted October 13, 2010 Administrators Share Posted October 13, 2010 You'd want to add something along the lines of the following to configureproduct.tpl in order to hide the billing cycle dropdown for that particular product. FIND: <h3>{$LANG.orderbillingcycle}</h3> BENEATH IT ADD: {if $productinfo.name eq "Product Name"} <select type="hidden" name="billingcycle" onchange="submit()"> {if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>{$pricing.monthly}</option>{/if} {if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>{$pricing.quarterly}</option>{/if} {if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>{$pricing.semiannually}</option>{/if} {if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{$pricing.annually}</option>{/if} {if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>{$pricing.biennially}</option>{/if} {if $pricing.triennially}<option value="triennially"{if $billingcycle eq "triennially"} selected="selected"{/if}>{$pricing.triennially}</option>{/if} </select> {/if} Replace "Product Name" with the name of your product. It'll probably need some tweaking, but that should give you a starting point. 0 Quote Link to comment Share on other sites More sharing options...
geekhost Posted October 13, 2010 Author Share Posted October 13, 2010 Could not get it to do what I wanted so this is what i did so it can benefit others who don't want this showing when using configurable options. Keep in mind this is what you would do if you were following how to setup globalsign from the wiki instructions verbatim and makes the SSL purchase experience a lot less confusing to the customer... If someone can improve upon it please do: edited configureproducts.tpl and located this code: {elseif $pricing.type eq "onetime"} <input type="hidden" name="billingcycle" value="onetime" /> {$pricing.onetime} {$LANG.orderpaymenttermonetime} {else} changed to: {elseif $pricing.type eq "onetime"} <input type="hidden" name="billingcycle" value="onetime" /> {$LANG.orderpaymenttermonetime} {else} next edited products.tpl and located the code: {elseif $product.paytype eq "onetime"} {$product.pricing.onetime} {$LANG.orderpaymenttermonetime} and change it to: {elseif $product.paytype eq "onetime"} 0 Quote Link to comment Share on other sites More sharing options...
Evcthosting Posted October 18, 2010 Share Posted October 18, 2010 any idea for Version: 4.3.1? 0 Quote Link to comment Share on other sites More sharing options...
geekhost Posted October 20, 2010 Author Share Posted October 20, 2010 any idea for Version: 4.3.1? Not sure we still run one version back 4.2.1 but will be upgrading soon. Maybe John or Matt can shed some light for you. 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.