Jump to content

Configure 3 months free hosting option


rsearley

Recommended Posts

yes, the easiest way is simply to create an extra product matching an existing product, that you want to offer a free trial of.

 

 

New Product: product to require domain name, free product billing, fixed term three months, auto terminate at end of term. before end of term use marketer to send notice to upgrade the package or product terminates.

 

The hardest part you will find is any of the three options for a domain will allow the order to go through, IE, using own domain would.

 

To combat this, you can use an {if} block in your template in configureproductdomain.tpl around the part that displays the page. This will remove the own domain option from the form so that your clients will only see the register or transfer for the specific product and so forcing them to place some sort of domain order.

 

So it would be something like this: I have marked bold the additional code to add that will give you a start point.

 

{if $owndomainenabled AND $product.pid neq "1"}
<div><label><input type="radio" name="domainoption" value="owndomain" id="selowndomain" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /> {$LANG.orderdomainoption2}</label></div>
{/if}

 

You might find product.pid is not the correct template variable, or might be unavailable that that early step in the process. You can always add it in with a hook to make it available when you need it or name it what you like.

Edited by CDJ Hosting
Link to comment
Share on other sites

  • 10 months later...

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