Jump to content

How to hide draft quotation from client's view until finished?


(iTD)

Recommended Posts

Greetings,

 

in WHMCS 4.5.2 - I notice when I am developing a quotation for a client, even when marked as "draft", the quotation is viewable by the client when they login to their account. How can I hide a quotation until I am done developing it?

 

Thanks,

--Kevin

Link to comment
Share on other sites

  • WHMCS Support Manager

Probably something long the lines of the following in clientareaquotes.tpl:

 

{if $quote.stage eq "Draft"}
{else}
<div class="quoteleft">
       <div class="subject">{$quote.subject}</div>
       {$LANG.quotedatecreated}: {$quote.datecreated}     {$LANG.quotevaliduntil}: {$quote.validuntil}
   </div>
   <div class="quoteright">
       <div class="stage">[ {$quote.stage} ]</div>
       <a href="dl.php?type=q&id={$quote.id}"><img src="images/pdf.png" align="absmiddle" border="0" /> {$LANG.quotedownload}</a>
   </div>
{/if}

Link to comment
Share on other sites

  • 2 weeks later...

Thanks John - that did the trick with a little tweaking - the IF statement needed to encompass more of the template for this to work:

{if $quote.stage eq "Draft"}
{else}
<div class="quotecontainer" onclick="window.location='dl.php?type=q&id={$quote.id}'">
   <div class="quoteid">
       #{$quote.id}
   </div>
   <div class="quoteleft">
       <div class="subject">{$quote.subject}</div>
       {$LANG.quotedatecreated}: {$quote.datecreated}     {$LANG.quotevaliduntil}: {$quote.validuntil}
   </div>
   <div class="quoteright">
       <div class="stage">[ {$quote.stage} ]</div>
       <a href="dl.php?type=q&id={$quote.id}"><img src="images/pdf.png" align="absmiddle" border="0" /> {$LANG.quotedownload}</a>
   </div>
   <div class="clear"></div>
</div>
{/if}    

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