Saturday, April 17, 2010

PrestaShop Tips - How to BCC (blind carbon copy ) all emails to shop owner or specific email address

In some cases, the shop owner would like to see all emails to be BCC blind carbon copied). In this case, you will need to following code to implement this.

If you are using PrestaShop 1.3x
Modify following file

Modify file name:
Classes/Mail.php

Location 1:
at oringal line 50 , adding following one line (2nd line is existing)
$to_list->addBcc($configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME']);
$to_plugin = $to[0];

Location 2:
at original line 54, comment out existing lines and add following lines
//$to_plugin = $to;
//$to = new Swift_Address($to, $toName);

$to_list = new Swift_RecipientList();
$to_list->addTo($to, $toName);
$to_list->addBcc($configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME']);

$to_plugin = $to;
$to = $to_list;

If you are using PrestaShop 1.4x
it is very simple, you only need to create a override of Mail class

1. create a new file with name Mail.php at following location.

/override/classes/

2. copy following code and paste it into the new created file


<?php
class Mail extends MailCore
{
public static function Send($id_lang, $template, $subject, $templateVars, $to, $toName = NULL, $from = NULL, $fromName = NULL, $fileAttachment = NULL, $modeSMTP = NULL, $templatePath = _PS_MAIL_DIR_, $die = false)
{
//send to customer
$ret = parent::Send($id_lang, $template, $subject, $templateVars, $to, $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die);

//send to Shop Owner
parent::Send($id_lang, $template, $subject, $templateVars, Configuration::get('PS_SHOP_EMAIL'), $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die);

//return result
return $ret;
}
}



Now a ready-made file (PrestaSgop 1.4x only) are available to download from http://addons-modules.com/

PrestaShop Tips - Setting for rounding price

Here is a tips on how to set price rounding in PrestaShop.

If you want your price to be rounded or if you don't want your price to be rounded, please following below instructions.

0. Login to back office as Administrator
1. Choose Payment Tab
2. Choose Curenct SubTab
3. For each currency, edit to modify following properties
A. Formatting
B. Decimal

PrestaShop Tips - Customiize Paypal payment page to use your own logo and image without https

If you are running eCommerce shopping cart or online shop software like PrestaShop and you are using Paypal, but you don't have HTTPs, in that case you will not able to customize Paypal payment page to use your header image or logo.

But I found a very tricky way to do customize Paypal payment to use your own logo or header image. Here is how to do:

[Prepare your logo and get an URL with https]
First, you will have to get your logo or page header image done. Then upload your image to any website with HTTPS (SSL) enabled that you have access. And get the URL of your logo or header image.

If you don't have any website to upload, you create an account at Microsoft Windows Live account, then create a Shared Album at Windows Live Photos, and upload your image there and share your image with public. So you will get an URL of your image.

Note: By default, the URL might be non https, but it works with https too.

[At your Paypal Account]
1.From the Account Overview page, click on the Profile sub-tab

2.Click on the Custom Payment Pages link under the Selling Preferences heading.
This will take you to the Custom Payment Page Styles page.

3.From this page, you can Add, Edit, Preview, and Remove page styles,
as well as make any page style your Primary style

[At your PrestaShop]
4 If your image URL is a Shared image from WIndows Live Photos , then the URL might be too long to fit in your Paypal setting page.(It does not allow very long image URL). In that case, you can have it set up at your PrestaShop Paypal module screen.

You can see the sample by going yo paypal payment page at:

Saturday, July 25, 2009

Hard Reset Sumsong Omnia

How to Hard Reset the Samsung Omnia

1. Poke the soft reset hole beside your power button(Poke and Release)
2. Press and hold the Call and Cancel Button together(Do it immediately after Step 1)
3. Do not release Call and Cancel button, the Samsung Omnia Screen Appear
4. The Reset Screen will appear as below

Installing and configuring Microsoft Visual SourceSafe for Internet (Remote) access

http://diaryproducts.net/about/operating_systems/windows/sourcesafe_2005_internet_iis
http://alinconstantin.homeip.net/webdocs/scc/VSS_Internet.htm

Monday, June 29, 2009

Make Vista fast

0. Install following hot fix from Microsoft
http://support.microsoft.com/default.aspx/kb/931770

1. Disable "DWM.exe"
Task Manager -->New Task -->Services.msc
Stop "Desktop Window Manager" and change it to start up manually
2. Disable Sidebar
Remove check box "Start Windows Sidebar when windows starts"
Control Panel\Appearance and Personalization\Windows Sidebar Properties
3. Change to use classic file explorer
Control Panel\Appearance and Personalization\Folder Options

General --> choose "Use Windows classic folders"

4.Turn off "Remote Differential Compression"
To turn it off go in Control Panel / Programs and features / Turn on or turn off
Windows features and uncheck "Remote Differential Compression"


5.Disable TCP/IP "Receive Window Auto-Tuning "
To disable it, open a command prompt and type (run as Administrator):

netsh interface tcp set global rss=disabled
netsh interface tcp set global autotuninglevel=disabled

6. Disable Windows Search Service
TaskManager -->New Task -->Services.msc
Stop "Windows Search Service" and change it to start up manually

Vista Copy file slowly

1.Turn off "Remote Differential Compression"
To turn it off go in Control Panel / Programs and features / Turn on or turn off Windows features and uncheck "Remote Differential Compression"


2.Disable TCP/IP "Receive Window Auto-Tuning "
To disable it, open a command prompt and type (run as Administrator):

netsh interface tcp set global rss=disabled
netsh interface tcp set global autotuninglevel=disabled