Support Forums

Old 04-16-2009, 09:42 AM   #1
Junior Member
 
Join Date: Nov 2008
Posts: 12
Rep Power: 2
Isje is on a distinguished road
Default Where to disable Order Receipt?

Hi,
I am currently doing some mods and I would like info on the following:

1. where to disable Order Receipt emails? (I don't want these emails to be sent out).

2. In the currency field I don't need any decimals after the 0 (so no xx.00). Where can I set this?

Many thanks again
__________________
Using v4.1.2 Developer
Isje is offline   Reply With Quote
Old 04-16-2009, 10:26 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,719
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

For #1 open includes/classes/kernel/Orders.php and find this:
function emailCustomer($orderid)
{
global $db, $Mailer;

Just below the global line add:
return false;

For #2 check the plugins/modifier.format_money.php file. That handles formatting the price.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 04-16-2009, 11:58 AM   #3
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,296
Rep Power: 37
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

I might also add that you should really not be using a beta version of 68 Classifieds for a site that is going to be used live. There are known bugs in all of the beta releases as well as 4.1.1. The latest version release of the software is currently V4.1.2. You should login to the Customer Area and download the latest version of the software to ensure a trouble free classifieds website.
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 04-16-2009, 12:35 PM   #4
Junior Member
 
Join Date: Nov 2008
Posts: 12
Rep Power: 2
Isje is on a distinguished road
Default

Thanks both of you for your advice, much appreciated

I am using the latest version.

Thanks again
__________________
Using v4.1.2 Developer
Isje is offline   Reply With Quote
Old 04-16-2009, 12:47 PM   #5
Junior Member
 
Join Date: Nov 2008
Posts: 12
Rep Power: 2
Isje is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes View Post

For #2 check the plugins/modifier.format_money.php file. That handles formatting the price.
Hi Eric,

I opened the file but I am not sure what to change
Code:
function smarty_modifier_format_money($amount)
{
	global $Core;
	if(CURRENCY_AFTER == 'N')
		return number_format($amount,CURRENCY_DECIMAL_PLACES,CURRENCY_DECIMAL ,CURRENCY_THOUSANDS) . $Core->settings['cCurrencySymbol'];
	else
		return $Core->settings['cCurrencySymbol'] . number_format($amount,CURRENCY_DECIMAL_PLACES,CURRENCY_DECIMAL ,CURRENCY_THOUSANDS);   
}
__________________
Using v4.1.2 Developer
Isje is offline   Reply With Quote
Old 04-16-2009, 01:00 PM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,719
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

This link should help:
PHP: number_format - Manual

For example if you are using american currency you would edit this:
Code:
return $Core->settings['cCurrencySymbol'] . number_format($amount,CURRENCY_DECIMAL_PLACES,CURRENCY_DECIMAL ,CURRENCY_THOUSANDS);
to:
Code:
return $Core->settings['cCurrencySymbol'] . number_format($amount);
The first one is if the currency symbol comes after the numbers.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Receipt email sent to customers philoo v4 Questions & Support 2 09-10-2008 09:06 AM
New email receipt crystal v4 Questions & Support 3 09-01-2008 01:52 PM
New Order & Receipt Email - emai field blank Tim_A v4 Questions & Support 1 08-06-2008 04:47 PM
Send a receipt to the customer after order crystal v4 Modules / Modifications 7 08-01-2008 01:45 PM


All times are GMT -4. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0