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 2模块,管理员可以免费创建无限制,更新,删除常见问题解答和常见问题类别。 界面很容易使用。 此扩展程序是您业务的最佳FAQ扩展程序。在企业中,时间等于金钱,而顾客在购买前后总会有数千个...
magento数据结构分析 magento数据字典
magento的SMTP插件magento的SMTP插件magento的SMTP插件
magik shoes magento 模板, magento 1.7 模板
深入理解Magento 由精东博客下载下来制作成pdf
Magento插件开发手册 Magento Extension Developers Guide
Magento 图片延时加载插件,用来解决网站速度慢或者图片数量多的问题
Athlete Magento主题,兼容Magento 1.9.x, 1.8.x, 1.7.x ,特点:完全自适应(响应式布局),自定义子主题,无限颜色,完全自定义,一键安装演示,小工具化横幅系统,颜色选择,MEGA菜单,多商店支持,自定义产品...
对于首次安装magento过程中出现的问题的小结
magento2 developers cookbook, magento 开发手册,magento教程
Magento 2 Beginners Guide by Gabriel Guarino English | 14 Mar. 2017 | ASIN: B01MS81BQX | 442 Pages | AZW3 | 31.84 MB Key Features Set up and manage your very first online store with a friendly and ...
主要包括的内容有:magento的常用设置、Magento模板制作教程、Magento商城_目录结构说明、Magento中文教程实用文档、常用的xml的文件的作用以及自定义模块的应用
Magento Magento商城 Magento目录结构
快速在服务器上复制为另一个站,版本用的是magento,php语言
[Packt Publishing] Magento 扩展开发入门教程 (英文版) [Packt Publishing] Getting Started with Magento Extension Development (E-Book) ☆ 图书概要:☆ Understand Magento extensions, and build your own...
Magento 的配置系统就像是 Magento 的心脏,支撑着 Magento 的运行。这套 配置系统掌管着几乎所有“module/model/class /template/etc”。它把整个 Magento 系统抽象出来,用一个配置文件来描述。这里的“配置文件”...
magento转移服务器magento建立多站点总结
magento用户使用手册
如何给产品描述里的关键字、字词批量添加链接?我想大家一直在的这样的...并支持到Magento1.6.2 说明请查看:http://www.hicoogle.com/magento-gei-chan-pin-miao-shu-guan-jian-zi-pi-liang-lian-jie-cha-jian.html