Jump to content

Archived

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

Guest

create thank you page

Recommended Posts

Guest benlogan

I have made it more friendly.

Open

/CART_ROOT_DIR/includes/content/cnThanks.inc.php

At the top of the file just above:

if(!isset($config)){



add the following code




$config = fetchDbConfig("config");



then further down find the following code




//Setup the mail format

$recipient = "ENTER_YOUR_EMAIL_ADDRESS";



and replace it with:




//Setup the mail format

$recipient = $config['masterEmail'];

this way, any email you set in the Main CubeCart settings area, will be used here. So if you change your email address, you dont have to go through files changing it.

hope that helps some people out there.

again, included is the file below.

cnThanks.inc.zip

Share this post


Link to post
Share on other sites

Guest virginia10thk

I have finished it, please see the attached file.

Hi.

I have done this and when I try to submit the form I get the following error:-

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /files/home3/sillsy/gemstonecollectables/store/contact_us.php on line 44

Any ideas?

I have no idea what I'm doing so please be gentle :whistle:

Share this post


Link to post
Share on other sites
Guest benlogan

oh, sorry you dont need the 'contact_us.php' just delete it.

Share this post


Link to post
Share on other sites
Guest virginia10thk

oh, sorry you dont need the 'contact_us.php' just delete it.

Hi.

I tried yours too and didn't get a thank you page only redirected back to the index page.

I don't know what I'm doing wrong as I edited the setup mail section.

Share this post


Link to post
Share on other sites
Guest benlogan

ok, scrap the whole thing and start again. you don't need tbladecki's mod at all. anyfile you have tkane from his, just remove.

now follow my instructions exactly. they will give you a working contact form, and a proper thankyou page.

1. Open 'index.php' Around line 142 there should be 'break;'

Just below it paste this code:

case "cnThanks":

include("includes/content/cnThanks.inc.php");

$body->assign("PAGE_CONTENT",$page_content);

break;





2. Create a new document in the site documents editr. Call it 'Contact Us' or whatever.



3. Click the soure button, and paste ALL this code below. Then save it.




<!--P

/*

***************************************************************************

*

*                           CONTACT US MOD INFO

*

**************************************************************************

*

*        File info  : sitedocform.php

*        Purpose    : Let your customers leave a message via mailing from

your website instead of opening their mail program

*

*        Author     : Thomas Bladecki is the original author

*                     http://www.desertcoralaquatics.com

*             ***   Edited by Ben Logan to keep everything neat and tidy. ***

*        Last update: 9/26/2005

*       Version Info: Ver. 1.0

*

*

*      Special note : ALWAYS BACKUP YOUR FILES BEFORE ADDING ANY MODS !!

*

*

*

**************************************************************************

*/

<-->Please use the form below to submit an email to us, we will get back to you as soon as possible. Thank you for your time.<br/>

<br/>

<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">

<form action="index.php?act=cnThanks" method="post">

    Your Name: <input size="42" name="name"/><br/>

    <br/>

    Your Email address: <input size="35" tpye="text" name="email"/><br/>

    <br/>

    Please Select a topic: <select size="1" name="topic">

    <option selected="selected">Please Select one....</option>

    <option>Question about item</option>

    <option>Question regarding shipping</option>

    <option>Question about an order</option>

    <option>General question</option>

    <option>other</option>

    </select><br/>

    <br/>

    Message:<br/>

    <textarea name="message" rows="8" cols="45"></textarea><br/>

    <br/>

    <input type="submit" value="Send Email"/> <input type="reset" value="Clear"/>

</form>

</p>



4. Open up notepad, or wordpad. Create new file. Then copy and pase the following code into this new file.




<?php

/*

cnThanks.inc.php

Created by Ben Logan

*/



if(!isset($config)){

	echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";

	exit;

}



$no_ship = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/noShip.tpl");



	$no_ship->assign("LANG_SORRY",'Thank You');

	$no_ship->assign("LANG_DESC",'You message has been sent to the store owner.');



// Build Mail string

$msg = "Name: $_POST[name]\n";

$msg .="Email: $_POST[email]\n";

$msg .="Topic: $_POST[topic]\n";

$msg .="Message: $_POST[message]\n";



//Setup the mail format

$recipient = "ENTER_YOUR_EMAIL_ADDRESS";

$subject = "$_POST[topic]";

$mailheaders .= "From: $_POST[name]";

$mailheaders .= "Reply-To: $_POST[email]";



//Send the contact form

mail($recipient, $subject, $msg, $mailheaders);



	$no_ship->parse("no_ship");

	

$page_content = $no_ship->text("no_ship");



?>



3. Now save this file as 'cnThanks.inc.php', and place it in



/ROOT_DIR/includes/content



Now you site contact form is done. To edit your thankyou messsage find this line:




$no_ship->assign("LANG_DESC",'Your message has been sent to the store owner.');

It is obvious what piece you must edit.

Share this post


Link to post
Share on other sites
Guest benlogan

if you follow those instructions, it will work. make sure you do this to:

I have made it more friendly.

Open

/CART_ROOT_DIR/includes/content/cnThanks.inc.php

At the top of the file just above:

if(!isset($config)){



add the following code




$config = fetchDbConfig("config");



then further down find the following code




//Setup the mail format

$recipient = "ENTER_YOUR_EMAIL_ADDRESS";



and replace it with:




//Setup the mail format

$recipient = $config['masterEmail'];

this way, any email you set in the Main CubeCart settings area, will be used here. So if you change your email address, you dont have to go through files changing it.

hope that helps some people out there.

again, included is the file below.

--------------

copy everything as it is.

Share this post


Link to post
Share on other sites
Guest virginia10thk

I'm really sorry but this just isn't working for me and I really don't know why. I have done exactly what you said but still keep being redirected to the home page without a thank you page.

I have tried it in Mozilla and IE and get the same result. I don't receive the email either.

Think I will have to give up on this.

Thanks anyway.

Share this post


Link to post
Share on other sites
Guest

It worked for me

I am trying to work on mailheaders because in "From: field what I get is:

From: JohnReply-To: [email protected]

other than that everything works perfect

Share this post


Link to post
Share on other sites
Guest

I got it, in cnThanks.inc.php

instead of :

$mailheaders .= "Reply-To: $_POST[email]";



make it 




$mailheaders .= "From: $_POST[email]";

Share this post


Link to post
Share on other sites
Guest

You know benlogan

after I customized what exactly I want to send I started getting same error:

Parse error: parse error, unexpected T_CHARACTER, expecting ']' in /home/ranfot/public_html/kievstar/includes/content/cnThanks.inc.php on line 26

here is what I have now in cnThanks.inc.php

<?php

/*

cnThanks.inc.php

Created by Ben Logan

*/

$config = fetchDbConfig("config");



if(!isset($config)){

	echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";

	exit;

}



$no_ship = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/noShip.tpl");



	$no_ship->assign("LANG_SORRY",'Thank You');

	$no_ship->assign("LANG_DESC",'Your comments have been submitted to Online Sales Support.');



// Build Mail string

$msg .="MessageType: $_POST[MessageType]\n";

$msg .="Subject: $_POST[Subject]\n";

$msg .="SubjectOther: $_POST[SubjectOther]\n";

$msg = "PIN1: $_POST[PIN1]\n";

$msg = "PIN2: $_POST[PIN2]\n";

$msg = "PIN3: $_POST[PIN3]\n";

$msg .="Comments: $_POST[Comments]\n";

$msg .="UserCity: $_POST[UserCity\n";

$msg .="UserSate: $_POST[UserState\n";

$msg .="Email: $_POST[UserEmail]\n";



//Setup the mail format

$recipient = $config['masterEmail'];

$subject = "Kievstar Support Request";

$mailheaders .= "From: $_POST[UserEmail]";



//Send the contact form

mail($recipient, $subject, $msg, $mailheaders);



	$no_ship->parse("no_ship");

	

$page_content = $no_ship->text("no_ship");



?>

and I am also not sure what the difference between "$msg ." and "$msg" (without dot)

Could that be an issue?

Share this post


Link to post
Share on other sites
Guest

I figured out this one too

those dots after $msg are actually important

I actually made it like this:

// Build Mail string

$msg = "Name: $_POST[Name]\n";

$msg .="City: $_POST[UserCity]\n";

$msg .="State: $_POST[UserState]\n";

$msg .="Email: $_POST[UserEmail]\n";

$msg .="Message: $_POST[MessageType]\n";

$msg .="Subject: $_POST[Subject]\n";

$msg .="SubjectOther: $_POST[SubjectOther]\n";

$msg .="PIN: $_POST[PIN1]\n";

$msg .="PIN: $_POST[PIN2]\n";

$msg .="PIN: $_POST[PIN3]\n";

$msg .="Comments: $_POST[Comments]\n";

And everything works perfect

Share this post


Link to post
Share on other sites
Guest virginia10thk

I tried it again and it still doesn't work for me.

Sorry about the messed up bits of code */*.

Here is what I have in my index.tpl:-

<?php

/*

+--------------------------------------------------------------------------

|   CubeCart v3.0.3

|   ========================================

|   by Alistair Brookbanks

|	CubeCart is a Trade Mark of Devellion Limited

|   © 2005 Devellion Limited

|   Devellion Limited,

|   Westfield Lodge,

|   Westland Green,

|   Little Hadham,

|   Nr Ware, HERTS.

|   SG11 2AL

|   UNITED KINGDOM

|   [URL=http://www.devellion.com]http://www.devellion.com[/URL]

|	UK Private Limited Company No. 5323904

|   ========================================

|   Web: [URL=http://www.cubecart.com]http://www.cubecart.com[/URL]

|   Date: Thursday, 22 September 2005

|   Email: info (at) cubecart (dot) com

|	License Type: CubeCart is NOT Open Source Software and Limitations Apply 

|   Licence Info: [URL=http://www.cubecart.com/site/faq/license.php]http://www.cubecart.com/site/faq/license.php[/URL]

+--------------------------------------------------------------------------

|	index.php

|   ========================================

|	Main pages of the store	

+--------------------------------------------------------------------------

*/

	include_once("includes/ini.inc.php");

	

	// FIRE UP THE SESSION

	session_start();

	

	// INCLUDE CORE VARIABLES & FUNCTIONS

	include_once("includes/global.inc.php");

	

	// check if installed

	if($glob['installed']==0){

	

  header("location: install/index.php");

  exit;

  

	} elseif((file_exists($glob['rootDir']."/install/index.php") || file_exists($glob['rootDir']."/upgrade.php") && $glob['installed']==1)){

	

  echo "<strong>WARNING</strong> - Your store will not function until the install directory and/or upgrade.php is deleted from the server.";

  exit;

  

	}

	

	// initiate db class

	include_once("classes/db.inc.php");

	$db = new db();

	include_once("includes/functions.inc.php");

	$config = fetchDbConfig("config");



	include_once("includes/sslSwitch.inc.php");

	

	// get session data

	include_once("includes/session.inc.php");

	

	// get exchange rates etc

	include_once("includes/currencyVars.inc.php");

	

	$lang_folder = "";

	

	if(empty($ccUserData[0]['lang'])){

  $lang_folder = $config['defaultLang'];

	} else {

  $lang_folder = $ccUserData[0]['lang'];

	}

	include_once("language/".$lang_folder."/lang.inc.php");

	

	// require template class

	include_once("classes/xtpl.php");

	

	$body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");



	if(isset($_GET['searchStr'])){

  $body->assign("SEARCHSTR",$_GET['searchStr']);

	} else {

  $body->assign("SEARCHSTR","");

	}

	$body->assign("CURRENCY_VER",$currencyVer);

	$body->assign("VAL_ISO",$charsetIso);

	$body->assign("VAL_SKIN",$config['skinDir']);

  

	// START  MAIN CONTENT

	if(isset($_GET['act'])){

  switch ($_GET['act']) {

 	 case "viewDoc":

    include("includes/content/viewDoc.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "viewCat":

    include("includes/content/viewCat.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "viewProd":

    include("includes/content/viewProd.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "unsubscribe":

    include("includes/content/unsubscribe.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "taf":

    include("includes/content/tellafriend.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "login":

    include("includes/content/login.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "logout":

    include("includes/content/logout.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "forgotPass":

    include("includes/content/forgotPass.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "account":

    include("includes/content/account.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "profile":

    include("includes/content/profile.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;     

 	 case "changePass":

    include("includes/content/changePass.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "newsletter":

    include("includes/content/newsletter.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "dnExpire":

    include("includes/content/dnExpire.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "cnThanks":

    include("includes/content/cnThanks.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 default:

    include("includes/content/index.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

  }

  

	} else {

  

  include("includes/content/index.inc.php");

  $body->assign("PAGE_CONTENT",$page_content);

	

	}

	// END MAIN CONTENT

	

	// START META DATA

	if(isset($meta)){

  $body->assign("META_TITLE",$config['siteTitle'].c().$meta['siteTitle']);

  $body->assign("META_DESC",$meta['metaDescription']);

  $body->assign("META_KEYWORDS",$config['metaKeyWords']);

	} else {

  $body->assign("META_TITLE",$config['siteTitle'].c());

  $body->assign("META_DESC",$config['metaDescription']);

  $body->assign("META_KEYWORDS",$config['metaKeyWords']);

	}

	

	// START CONTENT BOXES

	

  //include("includes/boxes/affil.inc.php");

	//$body->assign("AFFIL",$box_content);

	

	//include("includes/boxes/poweredby.inc.php");

	//$body->assign("CURRENTAUCTIONS",$box_content);

	

	//include("includes/boxes/searchForm.inc.php");

	//$body->assign("SEARCH_FORM",$box_content);

	//

	//include("includes/boxes/session.inc.php");

	//$body->assign("SESSION",$box_content);



	//include("includes/boxes/categories.inc.php");

	//$body->assign("CATEGORIES",$box_content);

	

	//include("includes/boxes/randomProd.inc.php");

	//$body->assign("RANDOM_PROD",$box_content);

	

	//include("includes/boxes/info.inc.php");

	//$body->assign("INFORMATION",$box_content);

	

	//include("includes/boxes/language.inc.php");

	//$body->assign("LANGUAGE",$box_content);

	

	//include("includes/boxes/currency.inc.php");

	//$body->assign("CURRENCY",$box_content);

	

	//include("includes/boxes/shoppingCart.inc.php");

	//$body->assign("SHOPPING_CART",$box_content);

	

	//include("includes/boxes/popularProducts.inc.php");

	//$body->assign("POPULAR_PRODUCTS",$box_content);

	

	//include("includes/boxes/saleItems.inc.php");

	//$body->assign("SALE_ITEMS",$box_content);

	

	//include("includes/boxes/mailList.inc.php");

	//$body->assign("MAIL_LIST",$box_content);

	

	//include("includes/boxes/siteDocs.inc.php");

	//$body->assign("SITE_DOCS",$box_content);

	// END CONTENT BOXES

	

  // START CONTENT BOXES

	include("includes/boxes/affil.inc.php");

	if($config['hide_affil']) $box_content = "";  // <rf> infoboxes on/off mod

	$body->assign("affil",$box_content);  

  

	include("includes/boxes/poweredby.inc.php");

	if($config['hide_poweredby']) $box_content = "";  // <rf> infoboxes on/off mod

	$body->assign("POWEREDBY",$box_content);

  

	include("includes/boxes/searchForm.inc.php");

	if($config['hide_search']) $box_content = "";  // <rf> infoboxes on/off mod

	$body->assign("SEARCH_FORM",$box_content);

	

	include("includes/boxes/session.inc.php");

	if($config['hide_session']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SESSION",$box_content);



	include("includes/boxes/categories.inc.php");

	if($config['hide_categories']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("CATEGORIES",$box_content);

	

	include("includes/boxes/randomProd.inc.php");

	if($config['hide_randomProd']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("RANDOM_PROD",$box_content);

	

	include("includes/boxes/info.inc.php");

	if($config['hide_information']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("INFORMATION",$box_content);

	

	include("includes/boxes/language.inc.php");

	if($config['hide_language']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("LANGUAGE",$box_content);

	

	include("includes/boxes/currency.inc.php");

	if($config['hide_currency']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("CURRENCY",$box_content);

	

	include("includes/boxes/shoppingCart.inc.php");

	if($config['hide_shoppingCart']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SHOPPING_CART",$box_content);

	

	include("includes/boxes/popularProducts.inc.php");

	if($config['hide_popularProds']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("POPULAR_PRODUCTS",$box_content);

	

	include("includes/boxes/saleItems.inc.php");

	if($config['hide_saleitems']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SALE_ITEMS",$box_content);

	

	include("includes/boxes/mailList.inc.php");

	if($config['hide_mailingList']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("MAIL_LIST",$box_content);

	

	include("includes/boxes/siteDocs.inc.php");

	if($config['hide_siteDocs']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SITE_DOCS",$box_content);

	// END CONTENT BOXES

	

	// parse and spit out final document

	$body->parse("body");

	$body->out("body");

?>

[CODE/]



Here is the form source:-



[CODE]

<!--P

/*

***************************************************************************

*

*                           CONTACT US MOD INFO

*

**************************************************************************

*

*        File info  : sitedocform.php

*        Purpose    : Let your customers leave a message via mailing from

your website instead of opening their mail program

*

*        Author     : Thomas Bladecki is the original author

*                     [URL=http://www.desertcoralaquatics.com]http://www.desertcoralaquatics.com[/URL]

*             ***   Edited by Ben Logan to keep everything neat and tidy. ***

*        Last update: 9/26/2005

*       Version Info: Ver. 1.0

*

*

*      Special note : ALWAYS BACKUP YOUR FILES BEFORE ADDING ANY MODS !!

*

*

*

**************************************************************************

*/

<-->Please use the form below to submit an email to us, we will get back to you as soon as possible. Thank you for your time.<br/>

<br/>

<p style="margin-top: 0px; margin-bottom: 0px;"> </p>

<form method="post" action="index.php?act=cnThanks">

    Your Name: <input name="name" size="42"/><br/>

    <br/>

    Your Email address: <input name="email" tpye="text" size="35"/><br/>

    <br/>

    Please Select a topic: <select name="topic" size="1">

    <option selected="selected">Please Select one....</option>

    <option>Question about item</option>

    <option>Question regarding shipping</option>

    <option>Question about an order</option>

    <option>General question</option>

    <option>other</option>

    </select><br/>

    <br/>

    Message:<br/>

    <textarea cols="45" rows="8" name="message"></textarea><br/>

    <br/>

    <input type="submit" value="Send Email"/> <input type="reset" value="Clear"/>

</form>

<p>&nbsp;</p>

[CODE/]





Here is what I have in my cnThanks.inc.php:-



[CODE]

<?php

/*

cnThanks.inc.php

Created by Ben Logan

*/

$config = fetchDbConfig("config");

if(!isset($config)){

	echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";

	exit;

}



$no_ship = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/noShip.tpl");



	$no_ship->assign("LANG_SORRY",'Thank You');

	$no_ship->assign("LANG_DESC",'You message has been sent to Gemstone Collectables.');



// Build Mail string

$msg .= "Name: $_POST[name]\n";

$msg .="Email: $_POST[email]\n";

$msg .="Topic: $_POST[topic]\n";

$msg .="Message: $_POST[message]\n";



//Setup the mail format

$recipient .= "$config['masterEmail']";

$subject .= "$_POST['Customer Contact Form']";

$mailheaders .= "From: $_POST[UserEmail]";



//Send the contact form

mail($recipient, $subject, $msg, $mailheaders);



	$no_ship->parse("no_ship");

	

$page_content = $no_ship->text("no_ship");



?>

Where am I going wrong???

Share this post


Link to post
Share on other sites
Guest theorbo

Virginia, I don't think this is supposed to be IN your index.tpl file....

Share this post


Link to post
Share on other sites
Guest tbladecki

benlogan thank you for getting my "contact us" working better, and I could not figure how to make it come up in the same window.

I was going to further intergate the mod into the CC code and function better, but it apprears as though you have already done this and saved me some time..

Thank you...

and ranfot those "dots" are needed in order to format the emial, so you are correct they are needed...

Share this post


Link to post
Share on other sites
Guest virginia10thk

Ok I'm going to try again with this code thing. I don't have all of that in my index.tpl but I couldn't work out how to use the code three times for the three files.

Hopefully this will be clearer.

In my index.tpl I have:-

<?php

/*

+--------------------------------------------------------------------------

|   CubeCart v3.0.3

|   ========================================

|   by Alistair Brookbanks

| CubeCart is a Trade Mark of Devellion Limited

|   © 2005 Devellion Limited

|   Devellion Limited,

|   Westfield Lodge,

|   Westland Green,

|   Little Hadham,

|   Nr Ware, HERTS.

|   SG11 2AL

|   UNITED KINGDOM

|   [URL=http://www.devellion.com]http://www.devellion.com[/URL]

| UK Private Limited Company No. 5323904

|   ========================================

|   Web: [URL=http://www.cubecart.com]http://www.cubecart.com[/URL]

|   Date: Thursday, 22 September 2005

|   Email: info (at) cubecart (dot) com

| License Type: CubeCart is NOT Open Source Software and Limitations Apply

|   Licence Info: [URL=http://www.cubecart.com/site/faq/license.php]http://www.cubecart.com/site/faq/license.php[/URL]

+--------------------------------------------------------------------------

| index.php

|   ========================================

| Main pages of the store

+--------------------------------------------------------------------------

*/

include_once("includes/ini.inc.php");



// FIRE UP THE SESSION

session_start();



// INCLUDE CORE VARIABLES & FUNCTIONS

include_once("includes/global.inc.php");



// check if installed

if($glob['installed']==0){



 header("location: install/index.php");

 exit;

 

} elseif((file_exists($glob['rootDir']."/install/index.php") || file_exists($glob['rootDir']."/upgrade.php") && $glob['installed']==1)){



 echo "<strong>WARNING</strong> - Your store will not function until the install directory and/or upgrade.php is deleted from the server.";

 exit;

 

}



// initiate db class

include_once("classes/db.inc.php");

$db = new db();

include_once("includes/functions.inc.php");

$config = fetchDbConfig("config");



include_once("includes/sslSwitch.inc.php");



// get session data

include_once("includes/session.inc.php");



// get exchange rates etc

include_once("includes/currencyVars.inc.php");



$lang_folder = "";



if(empty($ccUserData[0]['lang'])){

 $lang_folder = $config['defaultLang'];

} else {

 $lang_folder = $ccUserData[0]['lang'];

}

include_once("language/".$lang_folder."/lang.inc.php");



// require template class

include_once("classes/xtpl.php");



$body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");



if(isset($_GET['searchStr'])){

 $body->assign("SEARCHSTR",$_GET['searchStr']);

} else {

 $body->assign("SEARCHSTR","");

}

$body->assign("CURRENCY_VER",$currencyVer);

$body->assign("VAL_ISO",$charsetIso);

$body->assign("VAL_SKIN",$config['skinDir']);

 

// START  MAIN CONTENT

if(isset($_GET['act'])){

 switch ($_GET['act']) {

  case "viewDoc":

   include("includes/content/viewDoc.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "viewCat":

   include("includes/content/viewCat.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "viewProd":

   include("includes/content/viewProd.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "unsubscribe":

   include("includes/content/unsubscribe.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "taf":

   include("includes/content/tellafriend.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "login":

   include("includes/content/login.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "logout":

   include("includes/content/logout.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "forgotPass":

   include("includes/content/forgotPass.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "account":

   include("includes/content/account.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "profile":

   include("includes/content/profile.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;    

  case "changePass":

   include("includes/content/changePass.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "newsletter":

   include("includes/content/newsletter.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "dnExpire":

   include("includes/content/dnExpire.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  case "cnThanks":

   include("includes/content/cnThanks.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

  default:

   include("includes/content/index.inc.php");

   $body->assign("PAGE_CONTENT",$page_content);

  break;

 }

 

} else {

 

 include("includes/content/index.inc.php");

 $body->assign("PAGE_CONTENT",$page_content);



}

// END MAIN CONTENT



// START META DATA

if(isset($meta)){

 $body->assign("META_TITLE",$config['siteTitle'].c().$meta['siteTitle']);

 $body->assign("META_DESC",$meta['metaDescription']);

 $body->assign("META_KEYWORDS",$config['metaKeyWords']);

} else {

 $body->assign("META_TITLE",$config['siteTitle'].c());

 $body->assign("META_DESC",$config['metaDescription']);

 $body->assign("META_KEYWORDS",$config['metaKeyWords']);

}



// START CONTENT BOXES



 //include("includes/boxes/affil.inc.php");

//$body->assign("AFFIL",$box_content);



//include("includes/boxes/poweredby.inc.php");

//$body->assign("CURRENTAUCTIONS",$box_content);



//include("includes/boxes/searchForm.inc.php");

//$body->assign("SEARCH_FORM",$box_content);

//

//include("includes/boxes/session.inc.php");

//$body->assign("SESSION",$box_content);



//include("includes/boxes/categories.inc.php");

//$body->assign("CATEGORIES",$box_content);



//include("includes/boxes/randomProd.inc.php");

//$body->assign("RANDOM_PROD",$box_content);



//include("includes/boxes/info.inc.php");

//$body->assign("INFORMATION",$box_content);



//include("includes/boxes/language.inc.php");

//$body->assign("LANGUAGE",$box_content);



//include("includes/boxes/currency.inc.php");

//$body->assign("CURRENCY",$box_content);



//include("includes/boxes/shoppingCart.inc.php");

//$body->assign("SHOPPING_CART",$box_content);



//include("includes/boxes/popularProducts.inc.php");

//$body->assign("POPULAR_PRODUCTS",$box_content);



//include("includes/boxes/saleItems.inc.php");

//$body->assign("SALE_ITEMS",$box_content);



//include("includes/boxes/mailList.inc.php");

//$body->assign("MAIL_LIST",$box_content);



//include("includes/boxes/siteDocs.inc.php");

//$body->assign("SITE_DOCS",$box_content);

// END CONTENT BOXES



 // START CONTENT BOXES

include("includes/boxes/affil.inc.php");

if($config['hide_affil']) $box_content = "";  // <rf> infoboxes on/off mod

$body->assign("affil",$box_content);  

 

include("includes/boxes/poweredby.inc.php");

if($config['hide_poweredby']) $box_content = "";  // <rf> infoboxes on/off mod

$body->assign("POWEREDBY",$box_content);

 

include("includes/boxes/searchForm.inc.php");

if($config['hide_search']) $box_content = "";  // <rf> infoboxes on/off mod

$body->assign("SEARCH_FORM",$box_content);



include("includes/boxes/session.inc.php");

if($config['hide_session']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("SESSION",$box_content);



include("includes/boxes/categories.inc.php");

if($config['hide_categories']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("CATEGORIES",$box_content);



include("includes/boxes/randomProd.inc.php");

if($config['hide_randomProd']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("RANDOM_PROD",$box_content);



include("includes/boxes/info.inc.php");

if($config['hide_information']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("INFORMATION",$box_content);



include("includes/boxes/language.inc.php");

if($config['hide_language']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("LANGUAGE",$box_content);



include("includes/boxes/currency.inc.php");

if($config['hide_currency']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("CURRENCY",$box_content);



include("includes/boxes/shoppingCart.inc.php");

if($config['hide_shoppingCart']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("SHOPPING_CART",$box_content);



include("includes/boxes/popularProducts.inc.php");

if($config['hide_popularProds']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("POPULAR_PRODUCTS",$box_content);



include("includes/boxes/saleItems.inc.php");

if($config['hide_saleitems']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("SALE_ITEMS",$box_content);



include("includes/boxes/mailList.inc.php");

if($config['hide_mailingList']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("MAIL_LIST",$box_content);



include("includes/boxes/siteDocs.inc.php");

if($config['hide_siteDocs']) $box_content = ""; // <rf> infoboxes on/off mod

$body->assign("SITE_DOCS",$box_content);

// END CONTENT BOXES



// parse and spit out final document

$body->parse("body");

$body->out("body");

?>



In my form source I have:-




<!--P

/*

***************************************************************************

*

*                           CONTACT US MOD INFO

*

**************************************************************************

*

*        File info  : sitedocform.php

*        Purpose    : Let your customers leave a message via mailing from

your website instead of opening their mail program

*

*        Author     : Thomas Bladecki is the original author

*                     [URL=http://www.desertcoralaquatics.com]http://www.desertcoralaquatics.com[/URL]

*             ***   Edited by Ben Logan to keep everything neat and tidy. ***

*        Last update: 9/26/2005

*       Version Info: Ver. 1.0

*

*

*      Special note : ALWAYS BACKUP YOUR FILES BEFORE ADDING ANY MODS !!

*

*

*

**************************************************************************

*/

<-->Please use the form below to submit an email to us, we will get back to you as soon as possible. Thank you for your time.<br/>

<br/>

<p style="margin-top: 0px; margin-bottom: 0px;"> </p>

<form method="post" action="index.php?act=cnThanks">

   Your Name: <input name="name" size="42"/><br/>

   <br/>

   Your Email address: <input name="email" tpye="text" size="35"/><br/>

   <br/>

   Please Select a topic: <select name="topic" size="1">

   <option selected="selected">Please Select one....</option>

   <option>Question about item</option>

   <option>Question regarding shipping</option>

   <option>Question about an order</option>

   <option>General question</option>

   <option>other</option>

   </select><br/>

   <br/>

   Message:<br/>

   <textarea cols="45" rows="8" name="message"></textarea><br/>

   <br/>

   <input type="submit" value="Send Email"/> <input type="reset" value="Clear"/>

</form>

<p>&nbsp;</p>



In my cnThanks.inc.php I have:-




<?php

/*

cnThanks.inc.php

Created by Ben Logan

*/

$config = fetchDbConfig("config");

if(!isset($config)){

echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";

exit;

}



$no_ship = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/noShip.tpl");



$no_ship->assign("LANG_SORRY",'Thank You');

$no_ship->assign("LANG_DESC",'You message has been sent to Gemstone Collectables.');



// Build Mail string

$msg .= "Name: $_POST[name]\n";

$msg .="Email: $_POST[email]\n";

$msg .="Topic: $_POST[topic]\n";

$msg .="Message: $_POST[message]\n";



//Setup the mail format

$recipient .= "$config['masterEmail']";

$subject .= "$_POST['Customer Contact Form']";

$mailheaders .= "From: $_POST[UserEmail]";



//Send the contact form

mail($recipient, $subject, $msg, $mailheaders);



$no_ship->parse("no_ship");



$page_content = $no_ship->text("no_ship");



?>

Can anyone see where I am going wrong???

Share this post


Link to post
Share on other sites
Guest benlogan

ok, in your cnThanks.inc.php,

where it says

$recipient = "$config['masterEmail']";



it is supposed to be this




$recipient = $config['masterEmail'];

see how i removed the quotes. also this file gos in the 'content' directory which is in te 'includes' directory.

also, its index.php, not tpl

Share this post


Link to post
Share on other sites
Guest benlogan

you also have a typo in your cnThanks.inc.php

i think where it says 'You message...'

it should say 'Your message...'

;)

Share this post


Link to post
Share on other sites
Guest virginia10thk

Flipping thing still doesn't work.

Changed code to remove the "" so it's now like this

$recipient = $config['masterEmail'];



And yes the index.php is where the following code was added, don't know why I put index.tpl.




case "cnThanks":

include("includes/content/cnThanks.inc.php");

$body->assign("PAGE_CONTENT",$page_content);

break;

Haven't changed anything else but it still isn't working.

I don't get the email or a thank you page.

Oh, and thanks for letting me know about the typo.

Do you have any more ideas about what I'm doing wrong?

Share this post


Link to post
Share on other sites
Guest benlogan

ok, what version of cube cart are you using?

i will post my files exactly as the are.

this is the document that you create in the Site Document Editor.

<p>Please contact us using the form below. If you need a quicker response, try the following methods:<br/>

<br/>

AIM: benlogan87<br/>

Yahoo: benlogan87<br/>

Mobile: 0408353595</p>

<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">

<form action="index.php?act=cnThanks" method="post">

    Your Name: <input size="42" name="name"/><br/>

    <br/>

    Your Email address: <input size="35" tpye="text" name="email"/><br/>

    <br/>

    Your Order Number: <input size="35" tpye="text" name="order"/><br/>

    <br/>

    Please Select a topic: <select size="1" name="topic">

    <option selected="selected">Please Select one....</option>

    <option>Question About Product</option>

    <option>Question Regarding Shipping</option>

    <option>Question About An Order</option>

    <option>General Question</option>

    </select><br/>

    <br/>

    Message:<br/>

    <textarea name="message" rows="8" cols="45"></textarea><br/>

    <br/>

    <input type="submit" value="Send Email"/> <input type="reset" value="Clear"/>

</form>

</p>



this is my cnThanks.inc.php which is located in /includes/content/




<?php

/*

cnThanks.inc.php

Created by Ben Logan

*/

$config = fetchDbConfig("config");



if(!isset($config)){

	echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>";

	exit;

}



$no_ship = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/noShip.tpl");



	$no_ship->assign("LANG_SORRY",'Thank You');

	$no_ship->assign("LANG_DESC",'You message has been sent. We will contact you regarding your question as soon as we can. Thanks.');



// Build Mail string

$msg = "Name: $_POST[name]\n";

$msg .="Order: $_POST[order]\n";

$msg .="Email: $_POST[email]\n";

$msg .="Topic: $_POST[topic]\n";

$msg .="Message: $_POST[message]\n";



//Setup the mail format

$recipient = $config['masterEmail'];

$subject = "$_POST[topic]";

$mailheaders .= "From: $_POST[name]";

$mailheaders .= "Reply-To: $_POST[email]";



//Send the contact form

mail($recipient, $subject, $msg, $mailheaders);



	$no_ship->parse("no_ship");

	

$page_content = $no_ship->text("no_ship");



?>



and this is my index.php, the one in the root dir.




<?php

/*

+--------------------------------------------------------------------------

|   CubeCart v3.0.3

|   ========================================

|   by Alistair Brookbanks

|	CubeCart is a Trade Mark of Devellion Limited

|   (c) 2005 Devellion Limited

|   Devellion Limited,

|   Westfield Lodge,

|   Westland Green,

|   Little Hadham,

|   Nr Ware, HERTS.

|   SG11 2AL

|   UNITED KINGDOM

|   http://www.devellion.com

|	UK Private Limited Company No. 5323904

|   ========================================

|   Web: http://www.cubecart.com

|   Date: Thursday, 22 September 2005

|   Email: info (at) cubecart (dot) com

|	License Type: CubeCart is NOT Open Source Software and Limitations Apply 

|   Licence Info: http://www.cubecart.com/site/faq/license.php

+--------------------------------------------------------------------------

|	index.php

|   ========================================

|	Main pages of the store	

+--------------------------------------------------------------------------

*/

	include_once("includes/ini.inc.php");

	

	// FIRE UP THE SESSION

	session_start();

	

	// INCLUDE CORE VARIABLES & FUNCTIONS

	include_once("includes/global.inc.php");

	

	// check if installed

	if($glob['installed']==0){

	

  header("location: install/index.php");

  exit;

  

	} elseif((file_exists($glob['rootDir']."/install/index.php") || file_exists($glob['rootDir']."/upgrade.php") && $glob['installed']==1)){

	

  echo "<strong>WARNING</strong> - Your store will not function until the install directory and/or upgrade.php is deleted from the server.";

  exit;

  

	}

	

	// initiate db class

	include_once("classes/db.inc.php");

	$db = new db();

	include_once("includes/functions.inc.php");

	$config = fetchDbConfig("config");



	include_once("includes/sslSwitch.inc.php");

	

	// get session data

	include_once("includes/session.inc.php");

	

	// get exchange rates etc

	include_once("includes/currencyVars.inc.php");

	

	$lang_folder = "";

	

	if(empty($ccUserData[0]['lang'])){

  $lang_folder = $config['defaultLang'];

	} else {

  $lang_folder = $ccUserData[0]['lang'];

	}

	include_once("language/".$lang_folder."/lang.inc.php");

	

	// require template class

	include_once("classes/xtpl.php");

	

	$body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");



	if(isset($_GET['searchStr'])){

  $body->assign("SEARCHSTR",$_GET['searchStr']);

	} else {

  $body->assign("SEARCHSTR","");

	}

	$body->assign("CURRENCY_VER",$currencyVer);

	$body->assign("VAL_ISO",$charsetIso);

	$body->assign("VAL_SKIN",$config['skinDir']);

  

	// START  MAIN CONTENT

	if(isset($_GET['act'])){

  switch ($_GET['act']) {

 	 case "viewDoc":

    include("includes/content/viewDoc.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "viewCat":

    include("includes/content/viewCat.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "viewProd":

    include("includes/content/viewProd.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "unsubscribe":

    include("includes/content/unsubscribe.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "taf":

    include("includes/content/tellafriend.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "login":

    include("includes/content/login.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "logout":

    include("includes/content/logout.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "forgotPass":

    include("includes/content/forgotPass.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "account":

    include("includes/content/account.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "profile":

    include("includes/content/profile.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;     

 	 case "changePass":

    include("includes/content/changePass.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "newsletter":

    include("includes/content/newsletter.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

 	 case "dnExpire":

    include("includes/content/dnExpire.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 case "cnThanks":

    include("includes/content/cnThanks.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break; 

 	 default:

    include("includes/content/index.inc.php");

    $body->assign("PAGE_CONTENT",$page_content);

 	 break;

  }

  

	} else {

  

  include("includes/content/index.inc.php");

  $body->assign("PAGE_CONTENT",$page_content);

	

	}

	// END MAIN CONTENT

	

	// START META DATA

	if(isset($meta)){

  $body->assign("META_TITLE",$config['siteTitle'].c().$meta['siteTitle']);

  $body->assign("META_DESC",$meta['metaDescription']);

  $body->assign("META_KEYWORDS",$config['metaKeyWords']);

	} else {

  $body->assign("META_TITLE",$config['siteTitle'].c());

  $body->assign("META_DESC",$config['metaDescription']);

  $body->assign("META_KEYWORDS",$config['metaKeyWords']);

	}

	

	// START CONTENT BOXES

	

  //include("includes/boxes/affil.inc.php");

	//$body->assign("AFFIL",$box_content);

	

	//include("includes/boxes/poweredby.inc.php");

	//$body->assign("CURRENTAUCTIONS",$box_content);

	

	//include("includes/boxes/searchForm.inc.php");

	//$body->assign("SEARCH_FORM",$box_content);

	//

	//include("includes/boxes/session.inc.php");

	//$body->assign("SESSION",$box_content);



	//include("includes/boxes/categories.inc.php");

	//$body->assign("CATEGORIES",$box_content);

	

	//include("includes/boxes/randomProd.inc.php");

	//$body->assign("RANDOM_PROD",$box_content);

	

	//include("includes/boxes/info.inc.php");

	//$body->assign("INFORMATION",$box_content);

	

	//include("includes/boxes/language.inc.php");

	//$body->assign("LANGUAGE",$box_content);

	

	//include("includes/boxes/currency.inc.php");

	//$body->assign("CURRENCY",$box_content);

	

	//include("includes/boxes/shoppingCart.inc.php");

	//$body->assign("SHOPPING_CART",$box_content);

	

	//include("includes/boxes/popularProducts.inc.php");

	//$body->assign("POPULAR_PRODUCTS",$box_content);

	

	//include("includes/boxes/saleItems.inc.php");

	//$body->assign("SALE_ITEMS",$box_content);

	

	//include("includes/boxes/mailList.inc.php");

	//$body->assign("MAIL_LIST",$box_content);

	

	//include("includes/boxes/siteDocs.inc.php");

	//$body->assign("SITE_DOCS",$box_content);

	// END CONTENT BOXES

	

  // START CONTENT BOXES

	include("includes/boxes/affil.inc.php");

	if($config['hide_affil']) $box_content = "";  // <rf> infoboxes on/off mod

	$body->assign("affil",$box_content);  

  

	include("includes/boxes/poweredby.inc.php");

	if($config['hide_poweredby']) $box_content = "";  // <rf> infoboxes on/off mod

	$body->assign("POWEREDBY",$box_content);

  

	include("includes/boxes/searchForm.inc.php");

	if($config['hide_search']) $box_content = "";  // <rf> infoboxes on/off mod

	$body->assign("SEARCH_FORM",$box_content);

	

	include("includes/boxes/session.inc.php");

	if($config['hide_session']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SESSION",$box_content);



	include("includes/boxes/categories.inc.php");

	if($config['hide_categories']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("CATEGORIES",$box_content);

	

	include("includes/boxes/randomProd.inc.php");

	if($config['hide_randomProd']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("RANDOM_PROD",$box_content);

	

	include("includes/boxes/info.inc.php");

	if($config['hide_information']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("INFORMATION",$box_content);

	

	include("includes/boxes/language.inc.php");

	if($config['hide_language']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("LANGUAGE",$box_content);

	

	include("includes/boxes/currency.inc.php");

	if($config['hide_currency']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("CURRENCY",$box_content);

	

	include("includes/boxes/shoppingCart.inc.php");

	if($config['hide_shoppingCart']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SHOPPING_CART",$box_content);

	

	include("includes/boxes/popularProducts.inc.php");

	if($config['hide_popularProds']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("POPULAR_PRODUCTS",$box_content);

	

	include("includes/boxes/saleItems.inc.php");

	if($config['hide_saleitems']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SALE_ITEMS",$box_content);

	

	include("includes/boxes/mailList.inc.php");

	if($config['hide_mailingList']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("MAIL_LIST",$box_content);

	

	include("includes/boxes/siteDocs.inc.php");

	if($config['hide_siteDocs']) $box_content = ""; // <rf> infoboxes on/off mod

	$body->assign("SITE_DOCS",$box_content);

	// END CONTENT BOXES

	

	// parse and spit out final document

	$body->parse("body");

	$body->out("body");

?>

now mine works fine, other than that, i cannot see anything wrong with your code. do you have it online or locally, andalsodo you have msn or aim etc.. its much eaisr that way.

Share this post


Link to post
Share on other sites
Guest benlogan

also, your site documents might be causing the trouble.

you have

<form method="post" action="index.php?act=cnThanks">








<form action="index.php?act=cnThanks" method="post">

try fixing that. try coping my code exactly overwriting anything you have done and see if that does it.

Share this post


Link to post
Share on other sites
Guest virginia10thk

Hi

I have yahoo messenger will put it into my profile.

I'm on cubecart version 3.03.

Store is online with the cubecart script in the cgi section of my hosting company.

Share this post


Link to post
Share on other sites
Guest benlogan

yeah i know, i made the part that integrates it into cubecart. he started, i edited/fixed, he finished. ;)

Share this post


Link to post
Share on other sites
Guest tbladecki

THANK YOU vrakas, and benlogan..... that little it of acknolegement makes it all worth it.... I just like to be an active part of a community and to support a product that i belive in.

THANK YOU TO ALL THAT MAKE THIS CART/SUPPORT FROURM WHAT IT IS.

Share this post


Link to post
Share on other sites
Guest benlogan

hey thank you to tom, i needed that contact form as well, had me stumped on how to do it. and yes it is good contribruting to cubecart, it is the best cart i have ever used :D

Share this post


Link to post
Share on other sites

×
×
  • Create New...