Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

catalog/tell_a_friend.php


momonie/lillybears

Recommended Posts

Posted

Merry Meet Everyone...

 

Ok i am at a loss... i have spent the last 2 hours looking for a folder called catalog and found nothing... can someone tell me where to look. I am trying to ad this to my tell a friend php ... was told to look here ... In catalog/tell_a_friend.php about line 80 and after this code:

 

 

tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); ?>

 

then put this code... but can't find the first one yet.

 

// Mail a (silent) report to the web owner:

 

// get ip

if (getenv('HTTP_X_FORWARDED_FOR')) {

$ip=getenv('HTTP_X_FORWARDED_FOR');

} else {

$ip=getenv('REMOTE_ADDR');

}

 

// build report

$report = 'Here are the details of the T.A.F. submission by ' . $from_name . ' on ' . date("D M j G:i:s Y") . ':';

$report .= "nn" . 'Recipient details: ' . $HTTP_POST_VARS['friendname'] . ' - ' . $HTTP_POST_VARS['friendemail'];

$report .= "n" . 'Sender details: ' . $from_name . ' - ' . $from_email_address;

$report .= "n" . 'Sender ip address: ' . $ip;

$report .= "n" . 'Personal message: ' . "nn" . $HTTP_POST_VARS['yourmessage'];

$report .= "nn" . 'Product link: ' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?products_id=' . $HTTP_GET_VARS['products_id'];

 

// mail report

tep_mail('Tell A Friend', '[email protected]', '[ REPORT ] Tell a Friend Usage', stripslashes($report), '', $from_email_address);

 

 

thanks for any input you can give... i am a newbie to this php stuff and my store was bought premade so please be spisific when replying... ;)

Knowledge Base

 

In Perfect Love, And Perfect Trust. The Circle Is Open, But Never Broken!

Posted
If you installed in the root directory (so that your web address for your store is http://www.yourdomain.com) then there won't be any 'catalog' folder.

 

Vger

 

 

so i can't put the addition to the tell a friend on my site?..

 

and remember Vger i did not install my store... i bought it premade. so i have no idea what was installed where... lol.. talk about being lost all the time.

 

Lilly :blink:

Knowledge Base

 

In Perfect Love, And Perfect Trust. The Circle Is Open, But Never Broken!

Posted

If you visit your site by going to www.yoursite.com and oscommerce comes up, then dont worry about the catalog folder. Basically you are already in it.

 

So if something wants catalog/includes/header.php you just need to lo

includes/header.php

 

if you want catalog/tell_a_friend.php then your just looking for

tell_a_friend.php

 

Hope that helps

Archived

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

×
×
  • Create New...