Jump to content

removing billing cycle from order form under one particular product group


geekhost

Recommended Posts

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.

Link to comment
Share on other sites

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:

1.jpg

Link to comment
Share on other sites

  • WHMCS Support Manager

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.

Link to comment
Share on other sites

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"}

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