chikarkas36 Posted December 17, 2009 Share Posted December 17, 2009 hey i need to remove the zeros from pricing in tcadmin advanced module look this help please looks like this : Billing Cycle 0.00 1 Month (Month to Month) 0.00 3 Months Prepay - 10% Discount 0.00 6 Months Prepay - 15% Discount i need to look like this Billing Cycle 1 Month (Month to Month) 3 Months Prepay - 10% Discount 6 Months Prepay - 15% Discount Link to comment Share on other sites More sharing options...
Derek Posted December 17, 2009 Share Posted December 17, 2009 Sure looks simliar to ours lol. Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 17, 2009 Author Share Posted December 17, 2009 Sure looks simliar to ours lol. lol really well i goint to change this hehe can you help how to remove the zeros please i goint to change the % discounts sorry i Link to comment Share on other sites More sharing options...
Santino Cid Posted December 17, 2009 Share Posted December 17, 2009 - Find your configureproduct.tpl file in templates/orderforms/ - Find lines 32-36 Replace the followling: {$pricing.monthly} With: {if $pricing.rawpricing.monthly == "0.00"}1 Month (Month to Month){else}{$pricing.monthly}{/if} And repeat for: {$pricing.quarterly} {$pricing.semiannually} {$pricing.annually} {$pricing.biennially} Changing the names respectively. Not tested, but should work. Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 17, 2009 Author Share Posted December 17, 2009 - Find your configureproduct.tpl file in templates/orderforms/ - Find lines 32-36 Replace the followling: {$pricing.monthly} With: {if $pricing.rawpricing.monthly == "0.00"}1 Month (Month to Month){else}{$pricing.monthly}{/if} And repeat for: {$pricing.quarterly} {$pricing.semiannually} {$pricing.annually} {$pricing.biennially} Changing the names respectively. Not tested, but should work. ok i testing now thank you Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 17, 2009 Author Share Posted December 17, 2009 ok i testing now thank you ok tested and don't work Link to comment Share on other sites More sharing options...
Santino Cid Posted December 17, 2009 Share Posted December 17, 2009 Play with it a bit, tell it to just echo the raw price {$pricing.rawpricing.monthly}, without the conditional statement, and see what it gives you. Edit: Try this: {if $pricing.rawpricing.monthly eq "0.00"}1 Month (Month to Month){else}{$pricing.monthly}{/if} Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 17, 2009 Author Share Posted December 17, 2009 Play with it a bit, tell it to just echo the raw price {$pricing.rawpricing.monthly}, without the conditional statement, and see what it gives you. Edit: Try this: {if $pricing.rawpricing.monthly eq "0.00"}1 Month (Month to Month){else}{$pricing.monthly}{/if} ok let see Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 17, 2009 Author Share Posted December 17, 2009 mm ok same think when i change the code just the billing cycle get blank whit our text Link to comment Share on other sites More sharing options...
Santino Cid Posted December 17, 2009 Share Posted December 17, 2009 WHMCS might have changed the $pricing.rawpricing.monthly var. Try asking on the WHMCS forums, someone might be able to help you better there. Link to comment Share on other sites More sharing options...
proclan Posted December 17, 2009 Share Posted December 17, 2009 Sure looks simliar to ours lol. Why would it matter if it looks like yours? the options are there for everybody to use thats why we all use it. Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 17, 2009 Author Share Posted December 17, 2009 WHMCS might have changed the $pricing.rawpricing.monthly var. Try asking on the WHMCS forums, someone might be able to help you better there. ok thank you i will Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 21, 2009 Author Share Posted December 21, 2009 WHMCS might have changed the $pricing.rawpricing.monthly var. Try asking on the WHMCS forums, someone might be able to help you better there. thank you i post in whmcs forums and i still waiting for response after 5 days poor community someone help me please can pay some money for the beers Link to comment Share on other sites More sharing options...
studeggle Posted December 21, 2009 Share Posted December 21, 2009 Have you tried the files included in this post. http://clientforums.tcadmin.com/showthread.php?t=5503 Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted December 22, 2009 Share Posted December 22, 2009 thank you i post in whmcs forums and i still waiting for response after 5 days poor community someone help me please can pay some money for the beers No need for paying.. Here is Santa's gift to you it may be little early, but he has to go to a lot of houses. This is based of the updated templates... Replace <select 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} </select> with <select name="billingcycle" onchange="submit()"> {if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>Monthly</option>{/if} {if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>Quarterly</option>{/if} {if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>Semi-Annually</option>{/if} {if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>Annually</option>{/if} {if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>Biennially</option>{/if} </select> Hopefully the gift is not defective. Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 22, 2009 Author Share Posted December 22, 2009 Thank you so much Nation-Servers thanks a lot Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 24, 2009 Author Share Posted December 24, 2009 No need for paying.. Here is Santa's gift to you it may be little early, but he has to go to a lot of houses. This is based of the updated templates... Replace <select 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} </select> with <select name="billingcycle" onchange="submit()"> {if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>Monthly</option>{/if} {if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>Quarterly</option>{/if} {if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>Semi-Annually</option>{/if} {if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>Annually</option>{/if} {if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>Biennially</option>{/if} </select> Hopefully the gift is not defective. i do this in this file configureproduct.tpl but nothing happen still whit the zeros take a look here : http://www.hostileservers.com/billing/cart.php?gid=1 Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 24, 2009 Author Share Posted December 24, 2009 well after you pick a product no zeros but no discount appear Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted December 24, 2009 Share Posted December 24, 2009 My friend can't help you with the discounts, thought you only wanted the names. Link to comment Share on other sites More sharing options...
chikarkas36 Posted December 25, 2009 Author Share Posted December 25, 2009 My friend can't help you with the discounts, thought you only wanted the names. thank you i think is easy to add the discounts after that happy christmas Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.