Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 06-21-2008, 09:54 AM   #11
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 784
Rep Power: 20
bowers01 is on a distinguished road
Default Making popup

Hi,
Is it possible to make a view printable version button that will not show the header just the Order Receipt?
If so whats the best way of doing this?
Cheers
bowers01 is offline   Reply With Quote
Old 06-21-2008, 10:34 AM   #12
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,020
Rep Power: 116
Eric Barnes is a jewel in the rough
Default

You can try this which should work:
Code:
<!-- Thanks Page -->
{literal}
<script language="javascript" type="text/javascript">
<!--
function doprintcontent()
{
    var prnttext = '<html><body>\n';
    prnttext += document.getElementById('printcontent').innerHTML;
    prnttext += '</body></html>';
    var newwin = window.open("","printit",'menubar=no, scrollbars=yes, width=600, height=450, directories=no,location=no,resizable=yes,status=no,toolbar=no');
    newwin.document.open();
    newwin.document.write(prnttext);
    newwin.document.close();
    newwin.print();
}
//-->
</script>
{/literal}
<span name="printcontent" id="printcontent">
<fieldset>
    <legend>{$smarty.const.LANG_THANK_YOU}</legend>
    <p>Thank you for your order {$firstname}! If you paid by credit card or another form of instant payment your listing should now be viewable online. To prevent duplicate orders please do not hit the back button. Please see below for your order details. It is recommended that you print this page for your records.</p>
<br /><br />
<center>
<table width="98%" cellpadding="6" cellspacing="0" style="border: 2px solid #888846;">
  <tr>
    <td width="100%">
<h1 style="font-family: Helvetica, Arial, sans-serif; font-size: 24px; font-weight: bold; color: #000000;">Order Receipt</h1>
<strong>Order ID:</strong> {$oID}   <strong>Date:</strong> {$oDate}   <strong>Status:</strong> {$oStatusText}
<br /><br />
<strong>Name:</strong> {$firstname} {$lastname}<br />
<strong>Address:</strong> {$address}<br />
<strong>City:</strong> {$city}<br />
<strong>State:</strong> {$state}<br />
<strong>Country:</strong> {$country}<br />
<strong>Postal Code:</strong> {$zip}<br />
<strong>Email:</strong> {$email}<br />
<strong>Phone:</strong> {$phone}<br />
<strong>Customer ID:</strong> {$username}<br /><br />
    <table width="100%" border="0" cellspacing="2" cellpadding="3"  class="">
<tr>
                            <th>{$smarty.const.LANG_VERIFY_PACKAGE}</th>
                            <th>Options</th>
                            <th></th>
                            <th width="5%" nowrap>{$smarty.const.LANG_PRICE}</th>
                        </tr>
                        <tr>
                            <td valign="top">{$oProduct}</td>
                            <td valign="top">
                                {if $oBold=="Y"}
                                - {$smarty.const.LANG_BOLD}<br />
                                {/if}
                                {if $oHighlighted=="Y"}
                                - {$smarty.const.LANG_HIGHLIGHTED}<br />
                                {/if}
                                {if $oFeatured=="Y"}
                                - {$smarty.const.LANG_TPL_FEATURED}
                                {/if}
                                {if $oType==3}
                                - {$smarty.const.LANG_RENEWAL}
                                {/if}
                            </td>
                            <td></td>
                            <td valign="top" width="5%" align="right" nowrap>{$formatSubTotal|format_money}</td>
                        </tr>
                        <tr>
                            <td colspan="4" style="border-bottom: 1px solid #ccc;"></td>
                        </tr>
                        {if $oDiscount > 0}
                        <tr>
                            <td></td>
                            <td></td>
                            <td align="right" width="5%" class="total" nowrap>{$smarty.const.LANG_DISCOUNT}{$smarty.const.LANG_COLON} <em>{$oCoupon}</em></td>
                            <td width="5%" class="total" align="right" nowrap>-{$formatDiscount|format_money}</td>
                        </tr>
                        {/if}
                        <tr>
                            <td></td>
                            <td></td>
                            <td align="right" width="5%" class="total" nowrap><strong>{$smarty.const.LANG_GRAND_TOTAL}{$smarty.const.LANG_COLON}</strong></td>
                            <td width="5%" class="total" nowrap><strong><span id="total">{$fomatTotal|format_money}</span></strong></td>
                        </tr>
                    </table>
</td>
  </tr>
</table>
</center>
<br />
<p>If you selected to pay by check or money order your listing will not be viewable online to the public until payment has been received. You may make payments out to "Your Company Name" for the amount of {$fomatTotal|format_money} and mail to:</p>
<p><strong>Your Company Name</strong><br />
Your Address<br />
City, ST, Postal</p><br />
If you decide you would like to use a different method of payment or if you have any questions or concerns you may email us at <a href="mailto:youremailaddress">youremailaddress</a>.
<br /><br />
<center>
<p><strong>You may return to our website by <a href="{$smarty.const.URL}">clicking here.</a></strong></p>
<input type="button" value=" Print " onclick="doprintcontent();" />
</center>
</fieldset>
</span>
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 06-21-2008, 10:40 AM   #13
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 784
Rep Power: 20
bowers01 is on a distinguished road
Default

Thanks,
Works perfectly!
bowers01 is offline   Reply With Quote
Old 06-22-2008, 06:55 AM   #14
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 784
Rep Power: 20
bowers01 is on a distinguished road
Default

Is it possible to also email the user a copy of that automatically?
If so how would i go about doing that?
Cheers
bowers01 is offline   Reply With Quote
Old 07-24-2008, 08:07 PM   #15
Junior Member
 
Join Date: Jul 2008
Posts: 14
Rep Power: 4
cliff is on a distinguished road
Default

Thank you. I added to my site.
cliff is offline   Reply With Quote
Old 07-31-2008, 11:20 PM   #16
Member
 
Join Date: Jul 2008
Posts: 37
Rep Power: 4
suav is on a distinguished road
Default

This has stopped working after the upgrade of v4.0.6 or if the Syntax error fix is applied using v4.0.4 or v4.0.5. Any help on this?
__________________
Running v4.0.8 Dev with the default template.
suav is offline   Reply With Quote
Old 09-14-2008, 05:09 PM   #17
Senior Member
 
Join Date: Jul 2008
Location: Star, Idaho
Posts: 131
Rep Power: 6
tdisraeli is on a distinguished road
Default

THANKS CWP!!!

Took me a few runs but I (zero coding knowledge) was able to add your code and get it to work. Might not be impressive to those of you who do this for a living but it impressed the hell out of me

Thanks again.
__________________
Todd - v4.0.9 Hosted

Traffic Tracker - Website Performance Management
"Ask About Our Extended Full-Featured Trial for 68 Clients"

Jiffy Leads - Prescision Targeted Marketing Lists
tdisraeli is offline   Reply With Quote
Old 09-20-2008, 07:25 AM   #18
Junior Member
 
Join Date: Sep 2008
Posts: 2
Rep Power: 0
gorrie is on a distinguished road
Default Variables empty

I have modified my thankyou.tpl template as directed, however all the variables (ie {$firstname} etc) are empty... HELP??
gorrie is offline   Reply With Quote
Old 09-20-2008, 09:21 AM   #19
Coder
 
Join Date: Mar 2006
Posts: 4,419
Rep Power: 108
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by gorrie View Post
I have modified my thankyou.tpl template as directed, however all the variables (ie {$firstname} etc) are empty... HELP??
What version of 68C are you using?
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 09-21-2008, 07:36 AM   #20
Junior Member
 
Join Date: Sep 2008
Posts: 2
Rep Power: 0
gorrie is on a distinguished road
Default

v4.0.8 Designer
gorrie is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MODIFICATION: Changing the photo layout on the viewlisting.tpl page. cwp Modules / Plugins / Modifications 9 06-15-2009 11:47 PM
MODIFICATION: Display your extra fields on the showlistings.tpl page cwp Modules / Plugins / Modifications 23 01-12-2009 12:22 PM
can I run scripts in an content page? dawyatt v3.1 Questions & Support 11 06-22-2007 02:50 PM
Problem getting page title flyingpylon v3.1 Questions & Support 5 10-19-2006 01:15 PM
Modification so the Add creation page Unregistered Pre Sales Questions 4 10-12-2006 11:05 AM


All times are GMT -4. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0