|
|
#1 |
|
Junior Member
Join Date: Nov 2008
Posts: 12
Rep Power: 2 ![]() |
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 |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,719
Rep Power: 109 ![]() |
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 |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,296
Rep Power: 37 ![]() ![]() |
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Nov 2008
Posts: 12
Rep Power: 2 ![]() |
Thanks both of you for your advice, much appreciated
![]() I am using the latest version. Thanks again
__________________
Using v4.1.2 Developer |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Nov 2008
Posts: 12
Rep Power: 2 ![]() |
Quote:
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 |
|
|
|
|
|
|
#6 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,719
Rep Power: 109 ![]() |
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); Code:
return $Core->settings['cCurrencySymbol'] . number_format($amount);
__________________
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |