Set condition add item action Magento Trong Magento, để thêm một file css hay js vào một handle nào đó chúng ta cỏ thể gọi trong […]
Category: Develop
Tổng hợp các kiến thức về lập trình trong nhiều loại ngôn ngữ lập trình, nhiều framework và các CMS khác nhau
Xuống dòng trong editor wordpress
Xuống dòng trong editor wordpress Khi post bài trong wordpress chúng ta thường gặp tình trạng trình editor của wordpress không lưu những dòng trắng […]
Kiểm tra home page trong Magento
Để kiểm tra home page trong Magento ta sử dụng đoạn code sau: $routeHome = Mage::app()->getFrontController()->getRequest()->getRouteName(); $actionHome = Mage::app()->getFrontController()->getRequest()->getActionName(); if($routeHome == ‘cms’ && $actionHome == […]
Debug sql in Magento
To enable the debug sql in Magento. You let’s open to file: lib/Varien/Db/Adapter/Pdo/Mysql.php In content file Mysql.php. You let’s set value for two variable: protected […]
Update total products and price in cart Magento
After add or remove number products in cart by code. Example: event This code will update total number of products and price in current cart. […]
Event change price in cart Magento
In Magento, event been used a lot. Event in Magento is very strong. If you want change price in cart of Magento, but not is […]
Update total item and price in cart Magento
After add or remove number products in cart by code. Example: event, etc.. This code will update total number of products and price in current […]
Rewrite url using config.xml in magento
To rewrite url using config.xml file in magento. We are insert below code to tab <global> in etc/config.xml file of you module.
New code Js check version browser Internet Explorer
Js check version Internet Explorer. After browser update, old code check version is not apply in jQuery or Javasccript. Because, I was search and see […]