Friday, October 7, 2011

CSS - drop down menu tag

select {
font-family: Verdana, Arial, sans-serif;
font-size: 0.8em;
}

Magento - Change Price Color

 in styles.css

about line 806

/* Old price */
.old-price { margin:0; }
.old-price .price-label { font-size:12px; font-weight:bold; white-space:nowrap; }
/*.old-price .price { font-weight:bold; font-size:13px; color:#396f00; text-decoration:line-through; }*/
.old-price .price {
    font-weight:bold;
    font-size:13px;
    color:#333;
    text-decoration:line-through;
}



/* Special price */
.special-price { margin:0; }
.special-price .price-label { font-size:11px; font-weight:bold; text-transform:uppercase; white-space:nowrap; color:#000; }
.special-price .price {
    font-size:13px;
    font-weight:bold;
    color: #C00;
}

Thursday, October 6, 2011

Install PHP 5.3.8 / IIS6 on Windows Server 2003



PHP Require FastCGI 
http://www.iis.net/download/FastCGI

1. Install FastCGI







2. Download PHP Installer for Windows













Setup PHP 5.3.8 on Windows 2003 II6  Tutorial - http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/


Install MySQL 5.5.15 on Windows Server 2003



1.Install .Net Framework 4.0  - Required to install Mysql


http://www.microsoft.com/download/en/details.aspx?id=17851









2. Install MySQL Installer from

http://dev.mysql.com/downloads/installer/












3. If you get the Port 3306 already in use.

Stop the MySQL55 Services and then continue with the configuration of install








4. Create a Local Admin Other than the root
mysql> CREATE USER 'admin'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
    ->     WITH GRANT OPTION;

5. Then Create a User that can be used from any computer with a wildcard
 mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
    ->     WITH GRANT OPTION;

6. To Show All Users
mysql>  select User from mysql.user;
 

7. To Delete Users
mysql> DROP USER 'jeffrey'@'localhost';


8. To Clear index auto increment count to start from 0 again:

Run a query: ALTER TABLE tablename AUTO_INCREMENT = 1



Install FTP/IIS6 on Windows Server 2003

Installing FTP

 1. install FTP Service (Add or Remove Programs -> Application Server -> Internet Information Services (IIS) -> File Transfer Protocol (FTP) Service)





- Install and Finish.














2. Delete "Default FTP Site"












3. Name your FTP Site


4. For Simple Server that need to get access to
     Intelpub/wwwroot





5. Choose Default Path for FTP Site.

6. Check Write

7. Add Virtual Directory to wwwroot





7. Choose the Path to wwwroot

8. DONE!