Evcthosting Posted September 28, 2010 Share Posted September 28, 2010 we are trying to allow the users to pick a billing cycle without having $0.00 in the billing cycle as seen here: thanks! 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted September 28, 2010 Share Posted September 28, 2010 Have you turned off the Monthly Pricing Breakdown in General Settings > Ordering ? 0 Quote Link to comment Share on other sites More sharing options...
Evcthosting Posted October 1, 2010 Author Share Posted October 1, 2010 yes that has been turned off. Matt did reply on our support ticket however we are still a bit confused. His reply is: You can enable a billing cycle with a price of "0.00" so you can set the price to that and then to hide the dropdown you could do that by customizing the configureproduct.tpl template file in your active order form template folder and simply change it to a hidden input box, or enclose it in a div with a "display:none;" attribute assigned to it in CSS - that will then hide it from view. we located the productconfig.tpl ( NOT configureproduct.tpl ) in order/templates/ and there is a a place in that file to set these modifications in place however doing so will set it site wide if i am correct. What we are trying to do is remove the $0.00 just in the ventrilo section so as not miss inform the customer to think it is "free". If anyone in the community can help walk us through this it would much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 1, 2010 WHMCS Support Manager Share Posted October 1, 2010 productconfig.tpl relates only to the ajax orderform, is that what you're trying to modify? 0 Quote Link to comment Share on other sites More sharing options...
Evcthosting Posted October 1, 2010 Author Share Posted October 1, 2010 (edited) John, thank you for the reply. This should be a very simple Modification. When we set the Ventrilo Module up and the client selects which billing cycle they would like to have (monthly, annually ect ). as you can see in this image, there is $0.01 ( or a monetary amount) in front of the Monthly, this is what we wanting to remove from the module. see it live here: http://cp.tgservers.com/cart.php?gid=21 i am sure when we are shown what to do this will turn out to be very simple, thanks again for the support/reply. Edited October 1, 2010 by Evcthosting typo 0 Quote Link to comment Share on other sites More sharing options...
GGWH-James Posted October 1, 2010 Share Posted October 1, 2010 (edited) I'd think, search for the following in your template and wrap them in an if statement: $product.pricing.monthly $product.pricing.quarterly $product.pricing.semiannually $product.pricing.annually $product.pricing.biennially $product.pricing.triennially I'd assume that you would want to limit by group, so if for example you did not want to show the prices for group 66: {if $gid neq "66"}$product.pricing.monthly{/if} If you want to hide them for multiple groups, you could use an in_array check to specify multiple group IDs. For example, groups 66 and 69: {if !in_array($gid,array(66,69))}$product.pricing.monthly{/if} Edited October 1, 2010 by GGWH-James 0 Quote Link to comment Share on other sites More sharing options...
Evcthosting Posted October 1, 2010 Author Share Posted October 1, 2010 Right on! thanks for the excellent input! i will check this out in the morning and report back with what we see. thank you again for the assistance.......it is very much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
Evcthosting Posted October 18, 2010 Author Share Posted October 18, 2010 sorry for the delay in responce. I wanted to add that i am using whmc 4.3.1. somethings are a bit different. This did not work for our application. i noticed that several other post were asking questions about this in some form or another, the reference to "configureproduct.tpl" is an older model of the script, i think. The ver we are using is /order/templates/productconfig.tpl here is a sample of the billing cycle section: <select name="billingcycle" onchange="cyclechange()"> {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 we are still having the same issue with this. since we are not coders and it is not an option that is standard, again, any suggestions are welcome. thanks;) i have attached a copy of our productconfig.tpl file below productconfig.txt 0 Quote Link to comment Share on other sites More sharing options...
Evcthosting Posted October 18, 2010 Author Share Posted October 18, 2010 ok we got it, the template we have is not functioning the way we wanted it to. we changed to the default template and made the changes and it did work fine....thanks again. 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.