magento 问题解答 FQA
1. Is there a way by mysql to set ALL product visibility to catalog, search? 批量修改产品可见
open up the eav_attribute table and find the row where attribute_code = visibility . Take note of the attribute_id , most likely it will be 85. Also take note that backend_type = int . This tells you that the attribute is stored in catalog_product_entity_int . So, now you can run:
update `catalog_product_entity_int` set value = 4 where attribute_id = 85
(assuming of course that the attribute_id was 85!)
Make sure you backup the database before you run it.
2. Is it possible to query the Magento database and display product attributes ? 查询产品信息
What would be a lot easier to do would be to pull in the entire Magento engine into your external page. This [unlike the rest of Magento] is pretty easy to do.
All you have to do is the following:
// Load Up Magento Core define('MAGENTO', realpath('/var/www/magento/'));
require_once(MAGENTO . '/app/Mage.php');
$app = Mage::app();
Now you can use any of the Magento objects/classes as if you were inside of Magento and get your attributes
$product = Mage::getModel('catalog/product')->load(1234);
$product->getSku();
$product->getYourCustomAttribute();
etc etc.
magento 问题解答 FQA相关推荐
- 淘宝图片搬家常见问题解答FQA
本教材来自:CNUDP图片存储专家 网站地址:www.cnudp.com 整站搬家几大特点: 1.不会产生多余文件,节省空间 (多家店铺搬家,也会跳过同名同URL地址的图片): 2.不会对架上宝贝有任 ...
- 换个姿势学数学:二次函数与拆弹部队
由于公式的输入问题,该系列在思否停更,需要关注后续更新的请到简书专栏. UX004 什么叫做二次函数? 想必大家上学的时候都接触过吧,大概的形式就是:y=ax^2+bx+c(a≠0) 为什么这种东西 ...
- 《Genesis-3D开源游戏引擎-FQA常见问题解答》2014年01月10号版本
1.Genesis-3D开源游戏引擎主要面向哪些用户人群?有限制吗? 1.我们的引擎没有限制,只要您想了解和使用我们的引擎,就可以加入Genesis-3D的大家庭. 2.我们的主要用户群是各个相关的企 ...
- magento常用软件
常见问题: 1. 装完插件导致后台配置出现 Access denied 信息,需要重置账号权限,方可恢复正常. 2. 大多数无法安装插件时,请删除 /downloader/pearli ...
- Magento开发的特点有哪些?
Magento是一套专业开源的电子商务系统,也是目前主流的外贸网站购物系统,都是居于PHP语言开发的,数据库使用的是Mysql,且浏览界面很适合欧美用户的使用习惯.Magento开发设计得非常灵活,具 ...
- Magento如何使用和设置CookieSession
2019独角兽企业重金招聘Python工程师标准>>> 给大家介绍两个Magento的核心对象-Mage_Core_Model_Cookie & Mage_Core_Mode ...
- Magento中如何在模块中使用多张数据表并配置多个model?
功能介绍: 引用magento开发人员的一句话: Magento has basic one resource to one table resource. 也即是一个资源对应一张数据表. 当有时候, ...
- Magento — B2C与B2B平台
magento 与独立的B2C网店或B2B产品目录不同,平台涉及到平台拥有者.商家或供应商.客户或采购商3方面角色.平台拥有者为商家/供应商提供与客户/采 购商沟通交易的平台,使商家/供应商能够在平台 ...
- 使用Harry过程中FAQ(问题解答)
使用Harry过程中FAQ(问题解答) Harry-Vue 启动报错信息 Cannot find module错误信息 Harry-Vue 的路由在nginx中刷新出现404 一.Harry-Vue ...
最新文章
- YOLO-FastestV2:更快,更轻!移动端高达300 FPS!参数量仅250k
- 简单的串口助手程序开发
- 旷视三维视觉Workshop | 3D组组长与你畅聊三维技术新动态
- clojure source code
- phpMyAdmin导入大的sql文件
- 计算机数据库管理基本知识,2015年计算机四级考试《数据库技术》基础知识:概念篇...
- CSV格式整理,去除与上一行数据重复的单元格
- 微软对 Windows 10 Mobile 的支持将于12月10日结束
- 开机按F1才能进入(启动)系统的解决方案
- beautifulsoup解析动态页面div未展开_实战|Python轻松实现动态网页爬虫(附详细源码)...
- C语言之指针指向数组copy问题(二十八)
- 为什么你应该开始学习编程了
- RocketMQ学习-概览
- arduino 有源 蜂鸣器_Arduino 入门到精通 蜂鸣器发声
- 关于校企合作的一些想法和思路
- 我的日常工作剖析,美好的一天,从每一天开始。
- 苹果电脑拷贝文件到u盘很慢_给自己挑个好U盘,再也不想天天找同事借了
- Linux下部署worldPress
- 在失败的滴滴出行LOGO上谈APP设计
- python-共现矩阵(共词矩阵)计算