Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum - UKWW > Business Discussions > e-Commerce > Boss Cart Support Forums > Boss Cart - Old unsurpported version > Boss Cart General Support > FAQs
Register FAQ Members List Downloads Calendar Today's Posts Webmaster Resources Webmaster Blogs
 
 

FAQs Boss Cart frequently asked questions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2007, 10:33 PM
Piotrek
Guest
 
Posts: n/a
Post Sent E-Mail's FROM: and TO: fields manual set-up

Hello,

This is a manual fix/solution for a bug which is to be removed soon, however until it remains here's how to fix it:

PROBLEM: Emails sent by the system show 'support@bosscart.com' as the sender email, and admin email full set up.

** DIFFICULTY LEVEL: MODERATE **

SHORT SOLUTION:

Basically you need to go through these 4 files:
HTML Code:
bosscart/ipn.php
bosscart/core/modules/velnet.module.checkout.class.php
bosscart/core/modules/velnet.module.register.class.php
bosscart/core/modules/velnet.module.password.class.php
and change any instance of such code:

PHP Code:
$headers .= "From: system@bosscart.com\r\n"
to:

PHP Code:
$headers .= "From: admin@yourdomain.com\r\n"
assuming 'admin@yourdomain.com' is your admin email (or the email you want to show in FROM field.

Also change such code:
PHP Code:
mail("sushil@xponse.com""IN Pending""$sql"$headers); 
to:
PHP Code:
mail(admin@yourdomain.com", "IN Pending", "$sql", $headers); 
and such:
PHP Code:
$adminEmail 'sushil@xponse.com'
to:
PHP Code:
$adminEmail 'admin@yourdomain.com'
again assuming 'admin@yourdomain.com' is your admin email you want to RECEIVE emails from users and system notifications.


DETAILED SOLUTION:

There are four files to be modified, let's go through them one by one.
We assume that your admin email you want the system to put in FROM field is 'admin@yourdomain.com', and the email you want to receive the system notices and emails from users is 'receive@yourdomain.com' (although it can be the same one).

HTML Code:
bosscart/ipn.php


1. Open the file in any text editor (one that shows line numbers and colours the commands would be nice, Notepad++ is a free and a good one )

Find this code around lines 39-40:
PHP Code:
$headers .= "From: system@bosscart.com\r\n";
                
mail("sushil@xponse.com""IN Pending""$sql"$headers); 
replace it with:
PHP Code:
$headers .= "From: admin@yourdomain.com\r\n";
                
mail("receive@yourdomain.com""IN Pending""$sql"$headers); 
Find this code around lines 127-128:
PHP Code:
$headers .= 'Content-type: text/html; charset=iso-8859-1\r\n';
        
$headers .= 'From: system@bosscart.com\r\n'
replace it with:
PHP Code:
$headers .= 'Content-type: text/html; charset=iso-8859-1\r\n';
        
$headers .= 'From: admin@yourdomain.com\r\n'
Lines 136-137:
PHP Code:
$adminEmail 'sushil@xponse.com';
        
$subject 'New Order'
replace it with:
PHP Code:
$adminEmail 'receive@yourdomain.com';
        
$subject 'New Order'
Line 156:
PHP Code:
$headers .= "From: support@bosscart.com\r\n"
replace with:
PHP Code:
$headers .= "From: admin@yourdomain.com\r\n"
Now please SAVE the changes in the file, upload it back to the server and OVERWRITE the old one.

2. File:
HTML Code:
bosscart/core/modules/velnet.module.checkout.class.php
Lines 555-556:
PHP Code:
$headers .= "Content-type: ".$usr_data['email_type']."; charset=iso-8859-1\n";
        
$headers .= "From:support@bosscart.com\n"
replace with:
PHP Code:
$headers .= "Content-type: ".$usr_data['email_type']."; charset=iso-8859-1\n";
        
$headers .= "From:admin@yourdomain.com\n"
Now please SAVE the changes in the file, upload it back to the server and OVERWRITE the old one.

3. File:
HTML Code:
bosscart/core/modules/velnet.module.register.class.php
Lines 179-180:
PHP Code:
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
        
$headers .= "From:support@bosscart.com\r\n"
replace with:
PHP Code:
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
        
$headers .= "From:admin@yourdomain.com\r\n"
Lines 248-249:
PHP Code:
$headers .= "From:support@bosscart.com\n";        
        @
mail('sushil@xponse.com',$subject$mail_body$headers); 
replace with:
PHP Code:
$headers .= "From:admin@yourdomain.com\n";        
        @
mail('receive@yourdomain.com',$subject$mail_body$headers); 
Now please SAVE the changes in the file, upload it back to the server and OVERWRITE the old one.

4. File:
HTML Code:
bosscart/core/modules/velnet.module.password.class.php
Lines 56-57:
PHP Code:
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
            
$headers .= "From:support@bosscart.com\n"
replace with:
PHP Code:
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
            
$headers .= "From:admin@yourdomain.com\n"
Now please SAVE the changes in the file, upload it back to the server and OVERWRITE the old one.

That is it! Well done!

Thank you,
Piotrek
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Webmaster Resources
UK WW SEO Tools
Find UK Hosts
 
The Forum Rules
Forum Rules - MUST READ
 
Site Of the Month
BizzFace
Nominate site of the month
 
Tag Cloud
43. wholesale adsense ready affiliate scam amazon apple iphone 16gb apple iphone 16gb 3g articles australia web hosting cash casino cheap clothes communications content custard media database dgital camerals directory domain name english teacher fantasy football fantasy football league football league free handbags home income instant jewelry link bid money money making online music news nokia n96 16gb online online shop poker professor replica sam allcock seo social networking sony vaio laptop sunglasses technology themes tutor verbalized wallet wallets wanted web web hosting widget ready wordpress xmas offer

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a user manual? buzz_r@hotmail.com FAQs 0 11-22-2007 04:54 AM
Manual Directory and Article Submissions LinkPopularity Marketplace (all other buy/sell/wanted) 1 09-23-2007 05:22 PM
Benefits of manual directory submissions seohp In The News 7 05-24-2007 05:45 PM
Offering Manual directory submission service UK WW ex member Job Opportunities 0 01-20-2007 01:52 PM


All times are GMT. The time now is 09:32 PM.

UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons.
Subscribe to our feeds   Subscribe to our feeds

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0