Search 1.9 billion lines of Odoo code on GitHub

sync_woo

Author: IT-Projects LLC, Ivan Yelizariev
License: Other OSI approved licence
Branch: 12.0-sync_woo
Repository: yelizariev/sync-addons
Dependencies: sale, and sync
Languages: Python (63, 15.0%), XML (252, 60.1%), and reStructuredText (104, 24.8%)
Other branches: 12.0-new-website6, 12.0-rebrand, and 12.0-vesion-version
Other repositories: brain-tec/sync-addons, itpp-labs/sync-addons, and trojikman/sync-addons

<a class="reference external image-reference" href="https://itpp.dev"><img alt="Tested and maintained by IT Projects Labs" src="https://itpp.dev/images/infinity-readme.png" /></a> <a class="reference external image-reference" href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue.svg"> </a> <a name="woocommerce-integration"></a> <h2>WooCommerce Integration</h2> <p>Integration with <a class="reference external" href="https://woocommerce.com/">https://woocommerce.com/</a></p> <a name="sandbox"></a> <h3>Sandbox</h3> <p>To install local WooCommerce add following specification to your docker-compose.yml:</p> <pre> <code>services: # ... woo_db: image: mysql:5.7 volumes: - woo_db:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: pass MYSQL_DATABASE: woo MYSQL_USER: woo MYSQL_PASSWORD: woo woo: image: wordpress:latest depends_on: - woo_db ports: - 80:80 environment: WORDPRESS_DB_HOST: woo_db:3306 WORDPRESS_DB_USER: woo WORDPRESS_DB_PASSWORD: woo WORDPRESS_DB_NAME: woo volumes: - woo:/var/www/html/wp-content woo_ssl: image: foxylion/nginx-self-signed-https environment: REMOTE_URL: http://woo:80 volumes: woo: woo_db:</code> </pre> <p>Note, port 80 must be not occupied. You cannot change this settings, because otherwise webhooks will not work.</p> <p>Open <a class="reference external" href="http://localhost/wp-admin/">http://localhost/wp-admin/</a> and follow setup instructions</p> <p>Navigate to <code>Plugins &gt;&gt; Add New &gt;&gt; search for &quot;woocommerce&quot;</code>, click <cite>[Install Now]</cite> and then <cite>[Activate]</cite>.</p> <p>Add some products.</p> <p>In Odoo go to <cite>[Sync Studio] &gt;&gt; Sync Projects</cite> then go inside the <cite>WooCommerce</cite> project.</p> <p>Go to parameters tab and set:</p> <ul class="simple"> <li><code>API_URL</code> to <code>https://woo_ssl</code>.</li> <li><code>API_VERIFY_SSL</code> to <code>0</code></li> </ul> <p>To setup webhooks from WooCommerce to Odoo:</p> <ul class="simple"> <li>Odoo must be available under valid SSL ceritificate! See <a class="reference external" href="../sync/README.rst">Sync Studio's README</a> for instruction how to make it</li> <li>set System Parameters:<ul> <li><code>web.base.url</code> -&gt; <code>https://YOUR_ADDRESS</code></li> <li><code>web.base.url.freeze</code> -&gt; <em>any value</em></li> </ul> </li> <li>Check WooCommerce configuration section in <a class="reference external" href="doc/index.rst">doc/index.rst</a></li> <li>run <code>SETUP_WOO_WEBHOOKS</code></li> <li>finaly, open Woo and check <a class="reference external" href="https://docs.woocommerce.com/document/webhooks/">webhooks</a></li> <li>On running Odoo use <code>--db-filter=^YOUR_DATABASE_NAME$</code> or make sure you have one database only</li> <li>In wordpress, in menu <code>Settings &gt; General Settings</code> check that <code>WordPress Address (URL)</code> and <code>Site Address (URL)</code> have address <code>http://localhost:80</code></li> <li>Be sure that cron in WordPress is working. You can install plugin <a class="reference external" href="https://wordpress.org/plugins/wp-crontrol/">https://wordpress.org/plugins/wp-crontrol/</a> to get more information about cron</li> <li>To get webhook logs in Wordpress: open menu <code>WooCommerce &gt;&gt; Status &gt;&gt; Logs</code>, select log file and click <cite>[View]</cite></li> <li>Remember that webhooks in Wordpress works via cron, so you may need to wait up to 1 minute before webhook is fired</li> </ul> <a name="questions"></a> <h3>Questions?</h3> <p>To get an assistance on this module contact us by email :arrow_right: <a class="reference external" href="mailto:help&#64;itpp.dev">help&#64;itpp.dev</a></p> <a name="further-information"></a> <h3>Further information</h3> <p>Apps store: <a class="reference external" href="https://apps.odoo.com/apps/modules/12.0/sync_woo/">https://apps.odoo.com/apps/modules/12.0/sync_woo/</a></p> <p>Notifications on updates: <a class="reference external" href="https://github.com/itpp-labs/sync-addons/commits/12.0/sync_woo.atom">via Atom</a>, <a class="reference external" href="https://blogtrottr.com/?subscribe=https://github.com/itpp-labs/sync-addons/commits/12.0/sync_woo.atom">by Email</a></p> <p>Tested on <a class="reference external" href="https://github.com/odoo/odoo/commit/84d554f436ab4c2e7fa05c3f4653244a50fcc495">Odoo 12.0</a></p>