在Mac OS EI Captain环境下搭建和调试WooCommerce Odoo Connector模块

首先要感谢印度的公司Tech-Receptives Solutions Pvt. Ltd,大公无私的开发了odoo8和woocommerce(wordpress的电商插件)的connector接口。

1. wordpress的部分要安装Woocommerce插件和Connector Woo Odoo By Tech-Receptives插件。

2. odoo8的addons里面要放入WooCommerce Connector的模块,但是此模块依赖的模块很多,直接去下载它所依赖的所有包,放进addons里:

https://www.odoo.com/apps/modules/8.0/connector_woocommerce/

只要安装WooCommerce Connector模块,其它安装包会被自动加载进去。

3. 最后就是wordpress里面获得API的key,然后在odoo的connector里面填入,

https://docs.woothemes.com/document/woocommerce-rest-api/

测试,如果test success!

就是成功了。然后导入产品进行测试就可以了。

参考:

1.参考视频:

https://www.youtube.com/watch?v=vz759wsZFak

注意还要安装一个模块 Call cron jobs from their form view:

 https://www.odoo.com/apps/modules/8.0/cron_run_manually/

2. 另外就是用户路径和系统路径的配置问题,貌似odoo的connector这里不接受用户路径Users/~YOUHAKU/中的~字符,这个问题足足卡了我2天,可见基础不牢的下场。(有待进一步解决)

3.系统路径主要要更改apache下的httpd.conf文件,

sudo nano /etc/apache2/httpd.conf

用户路径主要调试YOUHAKU.conf文件:

sudo nano /etc/apache2/users/YOUHAKU.conf

http://stackoverflow.com/questions/24583859/apache-localhost-username-not-workinghttp://serverfault.com/questions/549517/what-does-apaches-require-all-granted-really-do

4. 另外,python里面也要安装woocommerce的支持模块:

sudo pip install woocommerce

http://stackoverflow.com/questions/34892876/installing-woocommerce-connector-in-odoo

 

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s