Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4322 Lượt xem

Hello everybody.

I made a website in WordPress and I also have an Odoo account for e-mail marketing and newsletter subscriptions.

I need some help please in configuring my WordPress website so that when a visitor wants to subscribe, to be automatically added into my newsletter subscribers database that I allready have in Odoo.

Is this possible?

Looking forward for your answer.

Thanks in advance!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello, Serkan.

One of the available approaches is using the External API requests to Odoo. 

Try making a request to create a record in the "mailing.contact" Odoo model. See examples by this link: https://www.odoo.com/documentation/15.0/developer/misc/api/odoo.html#create-records

$id = $models->execute_kw($db, $uid, $password,
    'mailing.contact', 'create',
    array(array('name'=>"New Partner")));

Have a nice day!

Yurii Razumovskyi.

Company Garazd Creation

https://garazd.biz

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 24
1091
1
thg 9 23
2810
0
thg 2 17
6040
0
thg 11 23
1132
0
thg 9 17
5369