magento
davissuperman
这个作者很懒,什么都没留下…
展开
-
magento check email exist
<?phprequire_once 'app/Mage.php';umask(0);$websiteId = Mage::app()->getWebsite()->getId();$email = '[email protected]';// Your Customers Email Herefunction IscustomerEmailExists($email, $翻译 2015-04-29 13:53:10 · 810 阅读 · 0 评论 -
magento connection string is empty
cd magento;app/code/commnityapp/designapp/etcapp/localdownloader都必须写入权限外部整体文件夹magento必须为写入权限翻译 2015-09-28 10:48:19 · 335 阅读 · 0 评论 -
magento patch
1. apply patch http://magecomp.com/blog/how-to-install-magento-security-patches/#SUPEE15332.翻译 2015-10-16 13:21:09 · 276 阅读 · 0 评论 -
magento sql 4G 导入报错
http://injustfiveminutes.com/2013/02/14/errors-restoring-mysql-database-dump-on-wamp-environment/Errors restoring MySQL database dump on WAMP environmentYou have maybe happened to get转载 2015-11-04 17:51:45 · 2080 阅读 · 0 评论 -
Fix layout.xml caching causing blocks to render other blocks in Magento
http://davemacaulay.com/fix-layout-xml-caching-causing-blocks-render-blocks-magento/缓存开启后 在付款页面 点击 next无法继续If you’re building a system which uses Ajax and makes numerous calls to $this->getLay转载 2015-10-23 13:40:32 · 507 阅读 · 0 评论 -
test credit card account
https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htmTest Credit Card Account NumbersWhile testing, use only the credit card numbers listed here. Other numbe转载 2015-10-26 16:37:36 · 734 阅读 · 0 评论 -
magento default cache using
http://blog.belvg.com/using-default-magento-cache.htmlMagento uses the following cache model: Mage::getModel(‘core/cache’) and 4 main methods: save($value, $key, $tags = array(), $lifeTim转载 2015-10-27 16:39:57 · 222 阅读 · 0 评论 -
magento profile 显示 + print sql profile
1. 安装magento2. 关闭缓存3. 4. index.php 去掉注释 Varien_Profiler::enable();5. .htaccess setEnv MAGE_IS_DEVELOPER_MODE true6. app/etc/local.xml 1原创 2015-10-28 11:25:53 · 513 阅读 · 0 评论 -
magento event lisetner - sales_order_creditmemo_refund>
module/config.xml Alanstormdotcom_Helloworld_Model_Observer credit原创 2015-11-17 13:14:04 · 735 阅读 · 0 评论 -
magento show cron job list
https://gist.github.com/werdan/5827225 // shell/listAllCron.php require_once 'abstract.php'; class Mage_Shell_CronLister extends Mage_Shell_Abstra转载 2015-11-18 16:24:32 · 796 阅读 · 0 评论 -
magento wysiwyg thumbnail 缩略图无法显示
但是插入图片是起作用的。而且可以看到图片。解决方法: chmod 777 media/wysiwyg/.thumbs/因为是挂载盘,都是nobody所以会出现这个问题。具体的为什么需要777 后续跟进原创 2015-11-18 13:51:36 · 1203 阅读 · 0 评论 -
Magento2 create a new module
1. download from magento website, it can not work2. download magento2 from github https://github.com/magento/magento2 using branch merchat_beta3. create a new module following https://github.com/a原创 2015-12-01 14:42:41 · 857 阅读 · 0 评论 -
magento connect
http://freegento.com/ddl-magento-extension.php?ext=http%3A%2F%2Fconnect20.magentocommerce.com%2Fcommunity%2FSearchautocompleteget code directly转载 2015-09-28 14:07:22 · 291 阅读 · 0 评论 -
Getting Configurable Product from Simple Product ID
http://www.danneh.org/2011/09/configurable-product-simple-product-id-magento-1-5/$simpleProductId = 465;$parentIds = Mage::getResourceSingleton('catalog/product_type_configurable')转载 2015-08-07 14:43:39 · 353 阅读 · 0 评论 -
Delete Product from Cart Programmatically in Magento
http://pradeepsanku.com/tag/delete-product-from-cart-in-magento-programmatically/$id = '100'; // replace product id with your id$cartHelper = Mage::helper('checkout/cart');$items = $cartHe转载 2015-08-07 13:51:58 · 296 阅读 · 0 评论 -
Magento Admin 官方文档
http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_create_an_admin_form_module翻译 2015-04-24 14:01:58 · 508 阅读 · 0 评论 -
Magento 报错 connection string is empty
1. 主要问题是权限,但是不知道是那几个文件夹app/code/community/OutsourceOnline/app/design/frontend/base/default/layout/OutsourceOnline_Captcha.xmlapp/design/frontend/base/default/template/outsourceOnline/app/etc/m原创 2015-05-04 14:44:21 · 922 阅读 · 0 评论 -
magento get sql profile
http://inchoo.net/ecommerce/magento/magento-debugging/extending-default-magento-profiler/转载 2014-08-06 15:31:45 · 564 阅读 · 0 评论 -
Storing Magento sessions in memcached via socket
nstalling memcached on your serverTo use memcached in Magento, you will first need to install it on your server. As root you can use your package manager to install memcached. With CentOS Linux th翻译 2015-04-27 14:13:09 · 510 阅读 · 0 评论 -
Mageto function 备忘
1. Magento get category by idCategory Develop,Frontend Develop,Magento Develop?123456 // get category model by category id翻译 2015-05-22 17:44:49 · 448 阅读 · 0 评论 -
Magento customer get by other attribute such as telephone
$result = Mage::getModel('customer/customer') ->getCollection() ->addAttributeToSelect('rms_id') ->addAttributeToFilter('rms_id',{Val})->load();if原创 2015-05-20 15:25:46 · 499 阅读 · 0 评论 -
Magento URL Redirect from Controller
https://www.apptha.com/blog/magento-url-redirect-from-controller/_redirect()This function is the key which helps to redirect between Magento modules.Example:<?php// $this->_redi转载 2015-06-04 02:07:59 · 1436 阅读 · 0 评论 -
magento get current variable 获取当前的通用变量
// Gets the current store's details$store = Mage::app()->getStore(); // Gets the current store's id$storeId = Mage::app()->getStore()->getStoreId(); // Gets the current store's code$storeCod原创 2015-03-20 14:45:32 · 509 阅读 · 0 评论 -
Magento Local Module 会覆盖 Community Module
当magento的一个页面不存在时 会显示一个404页面,是在System => Configure => Web => Default pages => Default No-route URL : cms/index/noRoute CMS No Route Page : 404 page1) 在 app/code/comunity下创建moduleVoya原创 2015-06-10 02:21:33 · 666 阅读 · 0 评论 -
get category id from product
234567891011121314/*** get categories from a product*/$categoryIds=$product->getCategoryIds();/*** looping through翻译 2015-08-07 10:39:44 · 390 阅读 · 0 评论 -
magento the user is locked
UPDATE admin_userSET failures_num = 0, first_failure = NULL, lock_expires = NULLWHERE user_id = 1翻译 2015-08-19 11:22:17 · 428 阅读 · 0 评论 -
Magento2使用
最近一段时间做了四个M2的项目, M2 使用全新的composer包管理, 大量使用外部库。总体感觉比M1更加OPEN。1. 重写了M1的支付模块2. 重写了发票原创 2018-04-08 20:54:16 · 368 阅读 · 0 评论