我的数据库是PostgreSQL.我在CENTOS ....安装pg gem我收到以下错误.我重新安装以清除我的YAML问题,但这不起作用,但它只是一个警告.我的主要问题是安装pg gem:
[root@vdimc04 ~]# gem install pg
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header …Run Code Online (Sandbox Code Playgroud) 在magento我有3个网站,它包含6到7个商店的视图.我希望单个管理员只能访问单店产品.他不应该修改其他商店的产品.我怎样才能做到这一点?
我已经在磁盘文档中读到了在系统/权限/角色中创建新管理员并在那里进行修改.但尝试这一点,新管理员仅限于创建产品或仅用于仪表板或发货或仅用于税务模块.但我需要像新的管理员只能访问一个商店..
那怎么能这样做?
在magento中,因为我们使用REST URL来访问数据,因为 http://localhost/magemto/api/rest/products它以XML格式返回.
但是作为我的团队要求,我应该以JSON格式发送数据以轻松访问AJAX调用.我使用REST客户端将头文件包含为'Content-Type:appilcation/json'..然后它以JSON格式返回..但我希望它默认为magento API ..
我正在使用 magento 通过 REST url 获取产品列表作为 localhost/magento/api/rest/products。在这个列表中,我得到了 image_url 节点。但是当我将图像 url 指定为 localhost/magento/api/rest/products/166/images 时,它显示“magento_api/”..就是这样。没有关于图片网址的更多信息..
那么如何通过 URL 获取图像详细信息?
由于我是magento的新手,我已将magento示例数据下载到mysql数据库.在浏览器中如果我给出这样的REST URL:http://192.168.1.101:8010/imagento /api/ rest /products它返回XML格式的产品列表.但我想要一个产品的细节.那我该怎么办?
http://192.168.1.101:8010/magento/api/rest/products是我从magento网站获得的网址..但他们没有给出产品详细信息.
我是否需要为我的重新采购代码?
对于http://192.168.1.101:8010/magento/api/rest/customers,它显示拒绝访问...我怎样才能解决这个问题..
magento ×4
magento-1.7 ×4
magento-1.4 ×3
magento-1.5 ×2
magento-1.6 ×2
oauth ×1
oauth-2.0 ×1
ruby ×1