Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Must agree to terms and conditions


TartanTrader

Recommended Posts

I have been trying to get a pop up window for my "Must agree terms and conditions" at checkout confirmation.

 

When the package was installed it has a Target=blank to a information page ID=1 which is confusing to the customer as it looks as if the screen has changed where infact it is another window.

 

What would be nice to have is a popup with a print if required and a close at the bottom of the text displayed.

 

I have just spent hours trying to get the contribution 1341 installed but it refers to files I do not have and coding in files I do not have.

 

Contribution 1341

 

Has some one managed this or could help me out to get a popup to work.

 

Many thanks

Phil

Phil Townsend

Waterslap Farm, Airth

Falkirk Stirlingshire FK2 8QW

Link to comment
Share on other sites

The only files you may not have are some of the language files, but apart from that all there is to this contribution are a new pop-up file, and changes to the checkout_confirmation.php file.

 

Vger

Link to comment
Share on other sites

The main problem is the language file, \catalog\includes\languages\english\conditions.php

 

I do not have this file so when it runs it has a error

 

Warning: main(includes/languages/english/conditions.php): failed to open stream: No such file or directory in /serverpath/popup_conditions.php on line 20

 

Fatal error: main(): Failed opening required 'includes/languages/english/conditions.php' (include_path='.:/usr/local/lib/php') in /serverpath/popup_conditions.php on line 20

 

Why is the file not there ?

 

Thanks

Phil

:)

Phil Townsend

Waterslap Farm, Airth

Falkirk Stirlingshire FK2 8QW

Link to comment
Share on other sites

forgot to add the other problem, it askes to find code in catalog/checkout_configuration.php as below

 

==========================================================================

= FIND ===================================================================

==========================================================================

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

==========================================================================

= INSERT AFTER THE ABOVE =================================================

==========================================================================

<script language="javascript"><!--

function rowOverEffect(object) {

if (document.checkout_confirmation.elements[object].parentNode.parentNode.className != 'moduleRowSelected') {

document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';

}

.

.

.

.

.

 

BUT my catalog/checkout_configuration.php is pure php not HTML so no <head> etc.

 

or can I put this javascript in to another file ?

 

Thanks

Phil

Phil Townsend

Waterslap Farm, Airth

Falkirk Stirlingshire FK2 8QW

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...