Portfolio
My Blog

[Magento] Remove phần thập phân trong giá sản phẩm

March 18, 2014Category : Code/Web

– Mở  file Currency.php theo đường dẫn code/core/Mage/Directory/Model/Currency.php Copy file Currency.php và chuyển vào thư mục code/local/Mage/Directory/Model/Currency.php ( Làm việc này để tránh tác động vào lõi code core của Magento, thuận tiện cho việc nâng cấp Magento sau này.) – Tìm đến function: format dòng. public function format($price, $options=array(), $includeContainer = true, $addBrackets =..

Read more
01.

[Magento] Remove .html from category or product URL

March 18, 2014Category : Code/Web

Bạn muốn khi click và link các category hoặc link sản phẩm của magento không có đuôi .html thì config như sau: Go to System -> Config -> Catalog -> Search Engine Optimizations tab Delete “.html” from Category URL Suffix và Delete “.html” from Product URL Suffix.. Go to System->Index Management Reindex “Catalog URL Rewrites” Refresh..

Read more
02.

[Magento] get price and special price product magento

March 18, 2014Category : Code/Web

Loading Product $_productId = 52; $_product = Mage::getModel(‘catalog/product’)->load($_productId); –  Get Regular Price chưa có phần formart theo currency. $_actualPrice = $_product->getPrice();  – Get Regular Price  đã formart theo currency. $_formattedActualPrice = Mage::helper(‘core’)->currency($_product->getPrice(),true,false); Get Special Price // special price chưa có formart theo currency. $_specialPrice = $_product->getSpecialPrice(); //  specila price đã formart theo currency $_formattedSpecialPrice =..

Read more
03.

[Magento] Sửa Lỗi Database server does not support InnoDB storage engine.

March 13, 2014Category : Code/Web

Go To Line 59 of the file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php Replace public function supportEngine() { $variables = $this->_getConnection() ->fetchPairs(‘SHOW VARIABLES’); return (!isset($variables[‘have_innodb’]) || $variables[‘have_innodb’] != ‘YES’) ? false : true; }   With public function supportEngine() { $variables = $this->_getConnection() ->fetchPairs(‘SHOW ENGINES’); return (isset($variables[‘InnoDB’]) && $variables[‘InnoDB’] != ‘NO’); }  

Read more
04.

18 Meta Tags Every Webpage Should Have

March 12, 2014Category : Marketing

The definitive guide to Search and Social Meta Tags you should be using in 2013. No fluff, no wasted code, just what you need to use. Let’s get back to basics. If I’m to be honest, flashbacks of arguments with copywriters in ad agencies turn me off to the discussion of metadata. However the reality..

Read more
05.

CẤU HÌNH SUPERSCOPE TRÊN DHCP SERVER – WINDOWS SERVER 2008 ENTERPRISE

February 28, 2014Category : IT & Network

I. CHUẨN BỊ 1. Mô hình mạng 2. Các thành phần trong mô hình – Một máy cài Windows Server 2008 Enterprise làm DHCP Server – 2 máy cài Windows 7 Enterprise làm client dùng để test

Read more
06.

Tăng số lượng các địa chỉ IP trên con trong Services DHCP

February 28, 2014Category : IT & Network

Bài viết này mô tả phương pháp mà bạn có thể sử dụng để thay đổi số IP các máy chủ trên bất kỳ mạng con cụ thể. Ba phương pháp sau đây được bảo hiểm: Phần mở rộng phạm vi Resubnetting Superscoping   Phần mở rộng phạm vi Nếu bạn đã có một phạm..

Read more
07.

Một ngày mail bị đưa vào blacklist bạn xử lý thế nào?

February 11, 2014Category : IT & Network

Nếu một ngày mail của cơ quan bạn tự nhiên bị đưa vào blacklist thì bạn sẽ giải quyết thế nào? tôi xin hướng dẫn bạn cách nguyên nhân và cách xử lý, đây là kinh nghiệm thực tế tôi đã gặp và rút ra tài liệu đầy đủ Nguyên nhân – Mail Client: Do việc..

Read more
08.

Remove IP mail server ra khỏi Blacklist của hotmail.com, live.com, live.it

February 11, 2014Category : IT & Network

1. Lỗi Nếu bạn gửi mail cho hotmail.com, live.com mà bị thông báo lỗi trả về như sau: “”””””””””””””””�� �””””””””””””””””� ��”””””””””””””””” ””” <[email protected]>: Connected to 65.55.92.136 but sender was rejected. Remote host said: 550 SC-001 (SNT0-MC1-F37) Unfortunately, messages from 123.30.120.41 weren’t sent. Please contact your Internet service provider since part of their network is on..

Read more
09.

Wireless WDS là gì ? cách cấu hình WDS

January 22, 2014Category : IT & Network

WDS là gì ? WDS (Wireless Distribution System) là một kỹ thuật mới dùng để phát triển mạng WLAN. Lúc trước để phát triển mạng WLAN chũng ta chỉ có 2 cách cơ bản như sau: 1. Dùng nhiều AP (Access Point): mỗi AP có 1 ssid và channel riêng. Điều này rất khó khăn..

Read more
010.

Mở rộng mạng Wi-Fi Roaming

January 22, 2014Category : IT & Network

Bạn muốn tự do di chuyển giữa các phòng ban mà không phải mất thời gian chờ đợi máy tính kết nối lại vào mạng WLAN, cũng như không lo lắng việc mất liên kết dữ liệu khi di chuyển giữa các điểm truy cập không dây (AP). Bài viết này sẽ giúp bạn tìm..

Read more
011.

[Magento] Optimize magento database by Cleaning log

January 3, 2014Category : Code/Web

Optimize magento database Log Cleaning Magento maintains several tables for logging. These tables log things such as customer accesses and which products have been compared. Magento has a mechanism for cleaning these logs regularly, but unfortunately this feature is disabled by default and most customers do not turn it on. There are three ways to..

Read more
012.

[Magento] SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine

January 3, 2014Category : Code/Web

There has been an error processing your request. SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine     >>>> Fix: Clear tmp folder

Read more
013.

8 lí do chứng tỏ sự tuyệt vời của những người ít nói

January 1, 2014Category : Thập cẩm

Bạn thường nghĩ người ít nói sẽ rất tẻ nhạt, làm bạn với họ cũng rất chán. hãy thay đổi suy nghĩ của bạn! 1. Người ít nói biết cách lắng nghe thật sự. Đã bao nhiêu lần bạn thấy mình cứ lạc lõng trong những cuộc trò chuyện với những người xung quanh khi..

Read more
014.

[Magento] Sửa lỗi Could not determine temp directory, please specify a cache_dir manually

December 31, 2013Category : Code/Web

If you are still having issues with this try creating a new dir called tmp. Navigate to app/code/core/Zend/Cache/Backend/ Edit File.php Change: protected $_options = array(         ‘cache_dir’ => ‘null’, to protected $_options = array(         ‘cache_dir’ => ‘tmp/’, For Magento Version 1.4.1.0

Read more
015.

[Magento] Tăng tốc độ cho magento

December 31, 2013Category : Code/Web

Tìm các dòng trong .htacess và thay thế như bên dưới   ############################################ ## enable apache served files compression ## http://developer.yahoo.com/performance/rules.html#gzip # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems… BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch..

Read more
016.
© Oliver / All rights reserved.
To top