by Brainvire Infotech Pvt. Ltd

The WooCommerce Bridge for SuiteCRM lets you integrate and access all of the features of WooCommerce that you need. Become more efficient by integrating your store with SuiteCRM so that your teams can have a complete overview of all customers and orders.

Free 30 day trial
Try it Now

#5456 - WooCommerce Bridge

Closed Bug? created by phil2 3 months ago

For whatever reason it does not seem to have created the necessary database structure for WooComm Bridge.

I just started the trial of the woocommerce bridge and I'm getting this error suitecrm.log file when I try to sync the customers:

I had numerous errors and ended up having to execute these database alter statements to get it to work. However, while it seems to have synced the data, it does not show any of the purchases. Can you please provide me with the correct database structure?

My manual changes were:

ALTER TABLE contacts ADD COLUMN wc_id VARCHAR(255); ALTER TABLE contacts ADD COLUMN wc_id VARCHAR(255); ALTER TABLE contacts ADD COLUMN wc_primary_country_code VARCHAR(2); ALTER TABLE contacts ADD COLUMN wc_primary_state_code VARCHAR(2); ALTER TABLE contacts ADD COLUMN wc_alt_country_code VARCHAR(2); ALTER TABLE contacts ADD COLUMN wc_alt_state_code VARCHAR(2); ALTER TABLE contacts ADD COLUMN wc_username VARCHAR(255); ALTER TABLE aos_product_categories ADD COLUMN wc_id VARCHAR(255); ALTER TABLE aos_product_categories ADD COLUMN wc_slug VARCHAR(255); ALTER TABLE aos_products ADD COLUMN wc_product_id VARCHAR(255); ALTER TABLE aos_products ADD COLUMN wc_regular_price DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_sale_price DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_slug VARCHAR(255); ALTER TABLE aos_products ADD COLUMN wc_weight DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_virtual TINYINT(1); ALTER TABLE aos_products ADD COLUMN wc_downloadable TINYINT(1); ALTER TABLE aos_products ADD COLUMN wc_length DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_width DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_height DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_rating_count INT; ALTER TABLE aos_products ADD COLUMN wc_total_sales INT; ALTER TABLE aos_products ADD COLUMN wc_product_id VARCHAR(255) AFTER id; ALTER TABLE aos_products ADD COLUMN wc_product_type VARCHAR(255) AFTER name; ALTER TABLE aos_products ADD COLUMN wc_regular_price DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_sale_price DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_slug VARCHAR(255); ALTER TABLE aos_products ADD COLUMN wc_weight DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_virtual TINYINT(1); ALTER TABLE aos_products ADD COLUMN wc_downloadable TINYINT(1); ALTER TABLE aos_products ADD COLUMN wc_length DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_width DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_height DECIMAL(10,2); ALTER TABLE aos_products ADD COLUMN wc_rating_count INT; ALTER TABLE aos_products ADD COLUMN wc_total_sales INT; ALTER TABLE aos_products ADD COLUMN has_notexists TINYINT(1); ALTER TABLE aos_products ADD COLUMN product_qty INT; ALTER TABLE aos_products ADD COLUMN is_in_stock TINYINT(1); ALTER TABLE aos_products ADD COLUMN has_upsells TINYINT(1); ALTER TABLE aos_products ADD COLUMN has_crosssells TINYINT(1); ALTER TABLE aos_products ADD COLUMN has_related TINYINT(1); ALTER TABLE aos_products ADD COLUMN has_associated TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN is_parent TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN is_child TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN is_required TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN opt_selected_required TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN has_upsells TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN has_crosssells TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN has_related TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN has_associated TINYINT(1); ALTER TABLE aos_products_quotes ADD COLUMN wc_downloadable TINYINT(1);


But since the software doesn't appear to be working properly, I'm not sure all is correct.

Can you give me the desc of the tables so I can make changes?

  1. BrainvireInfotech member avatar

    Brainvire Infotech Pvt. Ltd Provider Affiliate

    3 months ago

    Hello

    As per SuiteCRM, once you install the package and do repair. You need to execute all the scripts so that Database will be in sync.

    PFB all the database script that you need to execute it

    ALTER TABLE contacts add COLUMN wc_id varchar(255) NULL , add COLUMN wc_primary_country_code varchar(10) NULL , add COLUMN wc_primary_state_code varchar(10) NULL , add COLUMN wc_alt_country_code varchar(10) NULL , add COLUMN wc_alt_state_code varchar(10) NULL , add COLUMN wc_username varchar(255) NULL ;

    ALTER TABLE aos_product_categories add COLUMN wc_id varchar(100) NULL , add COLUMN wc_slug varchar(100) NULL ;

    ALTER TABLE aos_products add COLUMN wc_product_type varchar(255) NULL , add COLUMN product_qty int(255) DEFAULT '0' NULL , add COLUMN is_in_stock bool DEFAULT '0' NULL , add COLUMN wc_product_id varchar(100) NULL , add COLUMN wc_regular_price varchar(100) NULL , add COLUMN wc_sale_price varchar(100) NULL , add COLUMN wc_weight varchar(100) NULL , add COLUMN wc_virtual bool DEFAULT '0' NULL , add COLUMN wc_downloadable bool DEFAULT '0' NULL , add COLUMN wc_image varchar(255) NULL , add COLUMN wc_slug varchar(255) NULL , add COLUMN wc_length varchar(255) NULL , add COLUMN wc_width varchar(255) NULL , add COLUMN wc_height varchar(255) NULL , add COLUMN wc_rating_count varchar(255) NULL , add COLUMN wc_total_sales varchar(255) NULL , add COLUMN has_upsells bool DEFAULT '0' NULL , add COLUMN has_crosssells bool DEFAULT '0' NULL , add COLUMN has_related bool DEFAULT '0' NULL , add COLUMN has_associated bool DEFAULT '0' NULL , add COLUMN has_notexists bool DEFAULT '0' NULL ;

    ALTER TABLE aos_products_quotes modify COLUMN discount varchar(100) DEFAULT 'Amount' NULL , add COLUMN image varchar(255) NULL , add COLUMN product_type varchar(255) NULL , add COLUMN is_parent bool DEFAULT '0' NULL , add COLUMN is_child bool DEFAULT '0' NULL , add COLUMN is_required bool DEFAULT '0' NULL , add COLUMN opt_selected_required bool DEFAULT '0' NULL , add COLUMN parent_line varchar(255) NULL , add COLUMN parent_pid varchar(255) NULL , add COLUMN has_upsells bool DEFAULT '0' NULL , add COLUMN has_crosssells bool DEFAULT '0' NULL , add COLUMN has_related bool DEFAULT '0' NULL , add COLUMN has_associated bool DEFAULT '0' NULL , add COLUMN has_qty varchar(255) NULL , add COLUMN wc_downloadable bool DEFAULT '0' NULL ;

    Thank You, Brainvire Team

  2. BrainvireInfotech member avatar

    Brainvire Infotech Pvt. Ltd Provider Affiliate

    2 months ago

    Hello

    Please let us know if you are still facing any issue, We would surely help you

    Thank You , Brainvire Team

    • phil2 member avatar

      phil2

      2 months ago

      It seems to have synced in our customers from Wordpress, however, It doesn't show them under the Accounts page in SuiteCRM nor in Leads. They only show in Contacts -- which does not have the information for what products they've purchased, etc

      Where's the documentation for this? The module's page here doesn't actually have any links.

    • BrainvireInfotech member avatar

      Brainvire Infotech Pvt. Ltd Provider Affiliate

      2 months ago

      Hi phil2,

      In this case when a customer is created, they will be added to the Contacts module, and any products they purchase will be linked to their corresponding orders, which will be displayed in a subpanel under the contact's profile.

      Thanks, Brainvire Team

  3. BrainvireInfotech member avatar

    Brainvire Infotech Pvt. Ltd Provider Affiliate

    one month ago

    Hello

    Please let us know if you need any further clarification on this,

    Thank You, Brainvire Team

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "Excellent team support, configuration was done according to need, thank you very much" - andressantacruz

    Read More Reviews