Jump to content

Need remove zeros form pricing?


chikarkas36

Recommended Posts

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

 

i try this but ist no working when i change the code just numbers and price turn blank help me pleaase?

 

{if $pricing.rawpricing.monthly eq "0.00"}1 Month (Month to Month){else}{$pricing.monthly}{/if}  

Link to comment
Share on other sites

  • 4 months later...

HI Try replacing your code for the price field with this....

 

<select name="billingcycle" onchange="submit()">
           {if $pricing.monthly}<option value="monthly"{if $billingcycle eq "monthly"} selected="selected"{/if}>{if $pricing.rawpricing.monthly != "0.00"}{$pricing.monthly}</option>{else}Monthly</option>{/if}{/if}
           {if $pricing.quarterly}<option value="quarterly"{if $billingcycle eq "quarterly"} selected="selected"{/if}>{if $pricing.rawpricing.quarterly != "0.00"}{$pricing.quarterly}</option>{else}Quarterly</option>{/if}{/if}
           {if $pricing.semiannually}<option value="semiannually"{if $billingcycle eq "semiannually"} selected="selected"{/if}>{if $pricing.rawpricing.semiannually != "0.00"}{$pricing.semiannually}</option>{else}Semi-Annually</option>{/if}{/if}
           {if $pricing.annually}<option value="annually"{if $billingcycle eq "annually"} selected="selected"{/if}>{if $pricing.rawpricing.annually != "0.00"}{$pricing.annually}</option>{else}Annually</option>{/if}{/if}
           {if $pricing.biennially}<option value="biennially"{if $billingcycle eq "biennially"} selected="selected"{/if}>{if $pricing.rawpricing.biennially != "0.00"}{$pricing.biennially}</option>{else}Beinnially</option>{/if}{/if}
           </select>

 

This is based on the Web 2.0 format, but can easily be applied to any of the other layouts.

Link to comment
Share on other sites

  • 4 months later...

any chance someone could further define where the "pricing field" is located in other areas of the script aside from the the Tcadmin module? Thanks

 

we are trying to allow the users to pick billing without having $0.00 in the billing cycle as seen here:

 

d1ld9lftd1t24b0zb5w.png

 

thanks in advance for any help

Edited by Evcthosting
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