(iTD) Posted July 6, 2011 Share Posted July 6, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted July 7, 2011 Share Posted July 7, 2011 put an "if" in your viewquotes tpl file to skip drafts 0 Quote Link to comment Share on other sites More sharing options...
(iTD) Posted July 7, 2011 Author Share Posted July 7, 2011 You lost me... what? 0 Quote Link to comment Share on other sites More sharing options...
(iTD) Posted July 7, 2011 Author Share Posted July 7, 2011 Can you offer the code and some instruction? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted July 8, 2011 Share Posted July 8, 2011 some instruction? google:smarty would be the simplest start ... 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted July 8, 2011 Administrators Share Posted July 8, 2011 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} 0 Quote Link to comment Share on other sites More sharing options...
(iTD) Posted July 21, 2011 Author Share Posted July 21, 2011 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} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.