– 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 moreBạ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 moreLoading 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 moreGo 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 moreThe 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 moreI. 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 moreBà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 moreNế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 more1. 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 moreWDS 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 moreBạ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 moreOptimize 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 moreThere has been an error processing your request. SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine >>>> Fix: Clear tmp folder
Read moreBạ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 moreIf 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 moreTì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
Leave a Reply