Jump to content

How to edit billing cycle dropdown


nhouck

Recommended Posts

I need to remove the $$ amount from the billing cycle dropdown. Our pricing is reflected in the config options, we want to remove it from the dropdown cause it makes us look like complete retards having it like so:

 

$.01 Monthly

$.01 Quarterly

$.01 Semi Annually

$.01 Yearly

 

10 slots - $20.00

12 slots - $24.00

 

etc.

Link to comment
Share on other sites

  • 8 months later...
  • 8 months later...

Just wanted to update this, it doesn't have to do it for all products, as you can have conditionals around either the entire block of pricing, or within the options themselves.

 

The easiest way (on the eyes anyway) is to put a conditional around the options, as shown below:

 

{if $productinfo.groupname == 'My Product Group ' }
         <input type="hidden" name="previousbillingcycle" value="{$billingcycle}" />
         <div class="cartbox">
         	{if $pricing.type eq "free"}
           <input type="hidden" name="billingcycle" value="free" />
           {$LANG.orderfree}
           {elseif $pricing.type eq "onetime"}
           <input type="hidden" name="billingcycle" value="onetime" />
           {$pricing.onetime} {$LANG.orderpaymenttermonetime}
           {else}
           <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>
           {/if}
	{else}
       	<input type="hidden" name="previousbillingcycle" value="{$billingcycle}" />
         <div class="cartbox">
         	{if $pricing.type eq "free"}
           <input type="hidden" name="billingcycle" value="free" />
           {$LANG.orderfree}
           {elseif $pricing.type eq "onetime"}
           <input type="hidden" name="billingcycle" value="onetime" />
           {$pricing.onetime} {$LANG.orderpaymenttermonetime}
           {else}
           <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>
           {/if}
       {/if}

 

Obviously you just need to replace the 'My Product Group' value with the name of your product group EXACTLY. Bear in mind, this doesn't accept the $gid variable, as it isn't pulled on this page, so you do need to use the actual groups name.

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