Zen Cart Logo
Forums / All Other Contributions/Addons / Popup Term Print

Popup Term Print

Views: 2,468

Results 1 to 13 of 13
22 Apr 2010, 6:20 PM
#1
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Popup Term Print

This is a replacement for the Terms & Conditions page if you have it enabled in the Checkout process. It uses a javascript popup window to display your Terms & Conditions with the ability to print it if they so desire. It is just like the CVV popup for Credit Cards but with print capabilities.
A Terms & Conditions file is included for you to edit to your liking or you can create your own.

20 Jun 2010, 8:30 AM
#2
ozetrade avatar

ozetrade

Zen Follower

Join Date:
Dec 2004
Location:
Redcliffe QLD, Australia
Posts:
171
Plugin Contributions:
0

Re: Popup Term Print

I've just installed the Popup Terms Print module on ZC 1.3.9d and it works as it should however, it relies on a define called TERM_PRINT. TERM_PRINT is then presented on screen using an echo statement.

<body id="TermPrint" onload="resizeTo(500,680);"> 
<?php echo HEADING_TERMPRINT ?>
   <div align="left"><input type="button" value="Print This Page" onClick="window.print()">
   <align="right"><input type="button" value="Close Window" onClick="window.close()"></div>
    <div><?php echo TERM_PRINT ?></div>
</body>

I want to change this so this code includes the the content of includes/languages/english/html_includes/define_conditions.php. That way I can use the builtin Define Page Editor rather than have another file to look for and manually edit. I'd also like it to be language aware if possible.

I've tried a few different "include" statements, but I'm not having much luck -

Any help appreciated.

Thanks
OZ

20 Jun 2010, 3:31 PM
#3
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: Popup Term Print

ozetrade:

I've just installed the Popup Terms Print module on ZC 1.3.9d and it works as it should however, it relies on a define called TERM_PRINT. TERM_PRINT is then presented on screen using an echo statement.

<body id="TermPrint" onload="resizeTo(500,680);"> <?php echo HEADING_TERMPRINT ?> <div align="left"><input type="button" value="Print This Page" onClick="window.print()"> <align="right"><input type="button" value="Close Window" onClick="window.close()"></div> <div><?php echo TERM_PRINT ?></div> </body> ``` > > I want to change this so this code includes the the content of includes/languages/english/html_includes/define_conditions.php. That way I can use the builtin Define Page Editor rather than have another file to look for and manually edit. I'd also like it to be language aware if possible. > > I've tried a few different "include" statements, but I'm not having much luck - > > Any help appreciated. > > Thanks > OZ

I tried using that one first, but then the entire cart page with the menus etc.. is in the popup. You would do better to not use the popup and put the check at the top of the page before they entered any information.
Otherwise, just duplicate the information in all of the pages you intend on using. An English TERM_PRINT, and any other language you would have to create as well. This is usually not something that changes once it is put to use. Sorry I couldn't be of more help.

21 Jun 2010, 12:48 PM
#4
ozetrade avatar

ozetrade

Zen Follower

Join Date:
Dec 2004
Location:
Redcliffe QLD, Australia
Posts:
171
Plugin Contributions:
0

Re: Popup Term Print

Hi JT,

I spent a number of hours working on this over the weekend and actually got it working correcty using the html_include file created by the page define utility - it's multilingal to.. I'll be posting it up soon as get my website finished.

My next task will be to convert this utility so it works with the privacy statement on the create account page.

OZ

13 Nov 2010, 9:24 PM
#5
vendoutlet avatar

vendoutlet

New Zenner

Join Date:
Oct 2010
Posts:
2
Plugin Contributions:
0

Re: Popup Term Print

This is truly a magnificent mod.

11 Oct 2011, 12:37 AM
#6
tobindonal avatar

tobindonal

New Zenner

Join Date:
Oct 2010
Location:
ireland
Posts:
23
Plugin Contributions:
0

Re: Popup Term Print

hey,

on the latest version of zen cart...

just noticed today that when i click on the (view terms and conditions) on the checkout page, that no terms are being displayed.

the pop-up is coming up, but blank...

have checked it on a couple of OS just to be sure..

any ideas where i start to try and fix this?
it was working when installed....

:blink:

18 Oct 2011, 12:24 AM
#7
tobindonal avatar

tobindonal

New Zenner

Join Date:
Oct 2010
Location:
ireland
Posts:
23
Plugin Contributions:
0

Re: Popup Term Print

yup...don't be a numpty and re-check your code...
:clap:

14 Mar 2012, 10:35 AM
#8
johnbendall avatar

johnbendall

New Zenner

Join Date:
Oct 2010
Posts:
8
Plugin Contributions:
0

Re: Popup Term Print

Hi all,

I am new to Zen Cart so apologies for the dum :blush: question. How do I install the "Popup Terms Print module" as I want to use this feature ??

24 Aug 2012, 7:23 PM
#9
patternman avatar

patternman

New Zenner

Join Date:
Jul 2008
Posts:
63
Plugin Contributions:
0

Re: Popup Term Print

Hello,
I have installed this mod with several modifications and additions.
I have also solved some trouble spots along the way.
I have posted some information in another thread:
http://www.zen-cart.com/showthread.php?180244

I'm not really prepared to upload a new set of files for everyone, but I hope this helps.

25 Aug 2012, 6:59 PM
#10
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Popup Term Print

I just successfully installed this mod on a secondary/test 1.5 zencart:

http://www.promdressesforless.us/

Looks like it will work, but will have to replace default terms with mine. Which looking at it now doesn't look exactly easy or fast.

This should be great with our credit card people, who really do not like customers going to a second page to agree to terms. Looks like just what they want.

26 Aug 2012, 11:36 PM
#11
patternman avatar

patternman

New Zenner

Join Date:
Jul 2008
Posts:
63
Plugin Contributions:
0

Re: Popup Term Print

I used a fairly simple include statement to read the contents of the default conditions page.
Look for this file:
\includes\templates\YOUR_TEMPLATE\term_print\tpl_main_page.php
Here is an example of what I use:

<body id="TermPrint" onload="resizeTo(640,640);"> 
<?php echo HEADING_PRIVACY_POP ?>
   <div align="left"><input type="button" value="Print This Page" onClick="window.print()">
   <align="right"><input type="button" value="Close Window" onClick="window.close()"></div>
    <div align="center">
	<?php
	echo "<table width='90%'>";
	echo "<tr>";
	echo "<td style='border:solid 1px #999; padding:10px; background-color:#FFF;'>";
	include 'includes/languages/english/html_includes/YOUR_TEMPLATE/define_privacy.php'; 
	echo "</td></tr></table><br><br>";	
	?></div>	
</body>

It gets the contents of the page and puts it into a simple table to look a little better.
I'm happy with it.

28 Aug 2012, 4:55 PM
#12
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Popup Term Print

Thanks, will take a look at this.