X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   "payment is in processing... (https://forum.x-cart.com/showthread.php?t=38479)

jasonkyle 03-20-2008 02:03 PM

Footer portion of payment_wait.tpl
 
I cant for the life of me figure out where the bottom portion of the payment_wait.tpl is being parsed in from. This portion:

If the page is not updated in 2 seconds, please follow this link: continue >>

My payment_wait page now is:

Code:

{* $Id: payment_wait.tpl,v 1.8.2.5 2007/02/14 07:58:28 max Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="$skin_config"}
<html>
<head>
<title>{$lng.msg_order_is_being_placed}</title>
<link rel="stylesheet" href="/assets/css/screen.css" media="screen" />
</head>
<body>

<div class="processing">
<h1>{$lng.msg_order_is_being_placed}</h1>
<img src="/assets/img/processing.gif" />
</div>


and when I view the source, I see there is the "if the page hasnt loaded..." portion with the close of BODY and HTML... where is this parsing in from?

Thanks in advance!

x-cart version 4.0.18

balinor 03-20-2008 03:09 PM

Re: "payment is in processing...
 
Hi Jason, welcome to the forums. The thread you posted in is over 3 years old and applies to an extremely old version of X-Cart. When posting in threads, please be aware of the date and versions that they apply to. Moving this to a new thread.

Also, can you please add your version to your forum signature? Thank you.

jasonkyle 03-20-2008 05:21 PM

Re: "payment is in processing...
 
Oh saorry and thanks! I found that through a search and thought it better to add to an existing thread rather than a new thread. Didnt notice the version.
New here and all that, Im still ignorant :)

Signature added.

jasonkyle 03-20-2008 07:22 PM

Re: "payment is in processing...
 
I thought maybe payment_wait_end.tpl would be it, but that only parses in the close of BODY and HTML, I figured payment_cc.php would shed some light, which requires payment_wait.php which is below:

Code:

<?php
/*****************************************************************************\
+-----------------------------------------------------------------------------+
| X-Cart                                                                      |
| Copyright (c) 2001-2007 Ruslan R. Fazliev <rrf@rrf.ru>                      |
| All rights reserved.                                                        |
+-----------------------------------------------------------------------------+
| PLEASE READ  THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "COPYRIGHT" |
| FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE  |
| AT THE FOLLOWING URL: http://www.x-cart.com/license.php                    |
|                                                                            |
| THIS  AGREEMENT  EXPRESSES  THE  TERMS  AND CONDITIONS ON WHICH YOU MAY USE |
| THIS SOFTWARE  PROGRAM  AND  ASSOCIATED  DOCUMENTATION  THAT  RUSLAN  R. |
| FAZLIEV (hereinafter  referred to as "THE AUTHOR") IS FURNISHING  OR MAKING |
| AVAILABLE TO YOU WITH  THIS  AGREEMENT  (COLLECTIVELY,  THE  "SOFTWARE").  |
| PLEASE  REVIEW  THE  TERMS  AND  CONDITIONS  OF  THIS  LICENSE AGREEMENT |
| CAREFULLY  BEFORE  INSTALLING  OR  USING  THE  SOFTWARE.  BY INSTALLING, |
| COPYING  OR  OTHERWISE  USING  THE  SOFTWARE,  YOU  AND  YOUR  COMPANY |
| (COLLECTIVELY,  "YOU")  ARE  ACCEPTING  AND AGREEING  TO  THE TERMS OF THIS |
| LICENSE  AGREEMENT.  IF  YOU    ARE  NOT  WILLING  TO  BE  BOUND BY THIS |
| AGREEMENT, DO  NOT INSTALL OR USE THE SOFTWARE.  VARIOUS  COPYRIGHTS  AND |
| OTHER  INTELLECTUAL  PROPERTY  RIGHTS    PROTECT  THE  SOFTWARE.  THIS |
| AGREEMENT IS A LICENSE AGREEMENT THAT GIVES  YOU  LIMITED  RIGHTS  TO  USE |
| THE  SOFTWARE  AND  NOT  AN  AGREEMENT  FOR SALE OR FOR  TRANSFER OF TITLE.|
| THE AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY GRANTED BY THIS AGREEMENT.      |
|                                                                            |
| The Initial Developer of the Original Code is Ruslan R. Fazliev            |
| Portions created by Ruslan R. Fazliev are Copyright (C) 2001-2007          |
| Ruslan R. Fazliev. All Rights Reserved.                                    |
+-----------------------------------------------------------------------------+
\*****************************************************************************/

#
# $Id: payment_wait.php,v 1.9.2.6 2007/03/22 13:54:31 svowl Exp $
#

if (!defined('XCART_SESSION_START') ) { header("Location: ../"); die("Access denied"); }

$smarty->webmaster_mode = false;

echo func_display("customer/main/payment_wait.tpl", $smarty, false);

if (!defined("NO_RSFUNCTION"))
    register_shutdown_function("func_payment_footer");

?>



The bolded part is the area in question... Where is this defined? I searched for both register_shutdown_function and func_payment_footer in payment_cc.php but nothing. I assume it must be defined in another file included, but no luck yet.

balinor 03-21-2008 03:12 AM

Re: "payment is in processing...
 
possibly include/func/func.payment.php?

jasonkyle 03-21-2008 06:07 AM

Re: "payment is in processing...
 
Thats a no go, Im seeing nothing in there that parses in the details...

So this is payment_wait.tpl

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>Your order is being placed. Please wait...</title>
<link rel="stylesheet" href="/assets/css/screen.css" media="screen" />
</head>
<body>

<div class="processing">
<h1>Your order is being placed. Please wait...</h1>
<img src="/assets/img/processing.gif" />
</div>


This comes from Payment_wait_end.tpl

Code:

</body>
</html>


and then theres this part that I cant find:

Code:

<br /><br />If the page is not updated in 2 seconds, please follow this link: <a href="http://69.20.50.57/cart.php?mode=checkout&err=fields&paymentid=17">continue &gt;&gt;</a><meta http-equiv="Refresh" content="0;URL=http://69.20.50.57/cart.php?mode=checkout&err=fields&paymentid=17" />

jasonkyle 03-21-2008 10:55 AM

Re: "payment is in processing...
 
I cant seem to find any answers on this in the forum here... though lots of people have been talking about it...

Someone has got to know where this is coming from...

kube 03-21-2008 11:06 AM

Re: "payment is in processing...
 
I know this is from a different version (4.1.9) but perhaps it maybe useful to you

the language variable is called txt_header_location_note and looks like ...
If the page is not updated in {{time}} seconds, please follow this link: <a href="{{location}}">continue &gt;&gt;</a>

which is referred to in include/func/func.core.php on lines 126 and 333
and looks something like...
echo "<br /><br />".func_get_langvar_by_name("txt_header_location_n ote", array("time" =>

If this helps I have no ideas.

jasonkyle 03-21-2008 11:24 AM

Re: "payment is in processing...
 
Yup! Thats the file! Thank you!

Its a little bit different though in this version.

it looks like this:

Code:

echo "<br /><br />".func_get_langvar_by_name("txt_header_location_note", array("time" => 2, "location" => $location), false, true, true);
    echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$location\" />";


Which is lines 123 thorugh 124... but that is freaking it! woohoo. That was driving me insane! Thank you.

jasonkyle 03-21-2008 12:15 PM

Re: "payment is in processing...
 
But now heres the question for you php kids out there (im not a programmer), but with this all mixed together, im not sure where to close the p tag...

Code:

echo "<p class=\"process_close\">".func_get_langvar_by_name("txt_header_location_note", array("time" => 2, "location" => $location), false, true, true) ;

Where do I put the close of p and whats the syntax?


All times are GMT -8. The time now is 07:06 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.