To resolve it open app/code/core/Mage/ImportExport/Model/Export/Adapter/Abstract.php around line no. 60 replace $destination = tempnam(sys_get_temp_dir(), ‘importexport_’); to $destination = tempnam(Mage::getBaseDir() . ‘/tmp/’ , ‘importexport_’);
Read moreCó khá nhiều bạn đọc than phiền vì “dính” lỗi 100% Disk khi cài Windows 8 hoặc sau khi nâng cấp lên Windows 8.1. Tình trạng này thường hay xảy ra khi người dùng khởi động máy tính, và khi đang bị, máy sẽ hoạt động rất chậm và dễ gây nóng máy.
Read moreAdd layout.css or style.css in your theme p img { max-width: 500px; height: auto; }
Read moreOn clip: http://www.youtube.com/watch?v=-pIMVZZRb7Y&t=22s On a whim I downloaded firmware v1.13 for the DIR-100 revA. Binwalk quickly found and extracted a SquashFS file system, and soon I had the firmware’s web server (/bin/webs) loaded into IDA:
Read moreGiá thành sản phẩm dù được cập nhật thông qua hồ sơ cá nhân nhập khẩu mặc định mặc nhưng điều này là rất chậm và đòi hỏi rất nhiều fields csv (ngoài sku và prices) để có thể cập nhật. Hôm nay tôi sẽ nói chuyện về việc cập nhật giá sản phẩm chỉ..
Read moreBạn muốn xóa một thuộc tính. Nhưng không có tùy chọn xóa trong khi bạn chỉnh sửa các thuộc tính. Điều này có nghĩa rằng thuộc tính là thuộc tính hệ thống. Thuộc tính hệ thống không thể bị xóa. Thuộc tính chỉ người dùng định nghĩa có thể bị xóa.
Read moreVào app\design\frontend\default\your theme\template\page\html\footer.phtml chèn vào đoạn $visitor_count = Mage::getModel(‘log/visitor_online’)->prepare()->getCollection()->count(); $write = Mage::getSingleton(‘core/resource’)->getConnection(‘core_write’); $readresult=$write->query(“select count(distinct customer_id) as num_visitors from log_visitor_online where last_visit_at > date_sub(now(),INTERVAL 20 MINUTE); “); $row = $readresult->fetch();$n=0;if($row[‘num_visitors’]>0) $n = $row[‘num_visitors’]; echo “Customers online: “.$n; $guest = $visitor_count-$n; echo ” | Guest online: “.$guest.” | “; if(!empty($visitor_count) && $visitor_count > 0){ $cnt = $visitor_count;..
Read moreThiết lập giá trị $_columnCount = Ở trên đoạn if($_columnCount == 5){ $imgSize = 180; }elseif($_columnCount == 3){ $imgSize = 245; }
Read moreTìm < ?php $i=0; foreach ($_productCollection as $_product): ?> Thêm vào sau < ?php if($this->getIsHomepage() && $i==10) break; ?>
Read moreTutorial này sẽ hướng dẫn các bạn cho hiển thị danh sách sub-category bao gồm ảnh thumbnails và tên của subcategories trong trang category. Bước 1: Đăng nhập vào admin: CMS -> Static Blocks -> Add New Block Bước 2: Gọi block này vào nội dung static block -> save. {{block type=”catalog/navigation” template=”catalog/navigation/subcategory_listing.phtml”}}
Read moreDS các thành phố VN INSERT INTO `by_directory_country_region` (`region_id`, `country_id`, `code`, `default_name`) VALUES (485, ‘VN’, ‘HN’, ‘Hà Nội’), (487, ‘VN’, ‘HCMC’, ‘Tp Hồ Chí Minh’), (488, ‘VN’, ‘HP’, ‘Hải Phòng’), (489, ‘VN’, ‘BR’, ‘Bà Rịa’), (490, ‘VN’, ‘VT’, ‘Vũng Tàu’), (491, ‘VN’, ‘BL’, ‘Bạc Liêu’), (492, ‘VN’, ‘BG’, ‘Bắc Giang’), (493, ‘VN’, ‘BC’, ‘Bắc Cạn’),..
Read moreStep 1: Open file with path: app\code\core\Mage\Directory\Model\Currency.php Step 2: Old line: return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets); New line: return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets); Step 3: System/Cache management/ Action: 1. [Select all] -> [Refresh] -> [Submit] 2. [Flush Cache Storage]
Read moreAdmin -> System -> Configuration. Chuyển “Current Configuration Scope” thành ’Main Website’ ở góc trên cùng bên trái. Chọn Developer Tab ở góc dưới cùng bên trái. Tìm mục Debug trong nội dung. Ở mục Template Path Hints: chọn Yes (also might want to add Block Names to hints)
Read moreVào CMS / Home page / content chèn code sau: Thời trang nữ {{block type=”catalog/product_list” template=”catalog/product/list.phtml” category_id=”3″}}
Read more
Setup Nginx on Apache (XAMPP) On Same Server
Step by Step Overview: Nginx port 80 Apache port 8080 Nginx and Apache share root directory (F:\xampp\htdocs) Nginx catch request as front-end and proxy dynamic content (PHP) to Apache which will be running in the back-end. Install WordPress, Joomla and Drupal for development on localhost and work perfectly. Setup on Windows XP.
Read more