Jump to content

Billing Cycle Modification


Evcthosting

Recommended Posts

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. :-)

Link to comment
Share on other sites

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 ).

d1ld9lftd1t24b0zb5w.png

 

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. 8)

Edited by Evcthosting
typo
Link to comment
Share on other sites

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 by GGWH-James
Link to comment
Share on other sites

  • 3 weeks later...

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

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