=== Salesforce Integration for WooCommerce ===
Contributors: WP Swings
Tags: woocommerce salesforce integration, salesforce connector, salesforce crm integration, woocommerce salesforce, sync data, crm integration
Requires at least: 5.5.0
Tested up to:  6.7.1
WC requires at least: 5.5.0
WC tested up to: 9.6.0
Stable tag: 1.4.2
Requires PHP: 7.2 or Higher
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Sync your website's data, like contacts, products, and orders, over Salesforce CRM with salesforce CRM integration.
== FEATURES FOR SALESFORCE CRM INTEGRATION ==
**Field Values**
**1.OrderItem Meta:** 
Salesforce CRM integration enables the merchants to sync all the meta details that the customers add i.e. all the customizations that they incorporate to the existing order item.
**2.Order Notes:** 
Salesforce eCommerce integrations enable merchants to fetch the order notes, which can be mapped to the order feed and opportunity feed. 
**3.Order Details:**
 Woo Salesforce Integration allows merchants to fetch the order edit URL, order sub-total, and order number in order values which can be mapped to account feed, contact feed, order feed, and opportunity feed. 
**4.Coupons Used in the Order:**
The integration with Salesforce allows merchants to send coupon codes used in the order to the desired field in Salesforce. 
**5.Total Discount Provided by the Coupons Used:**
Salesforce CRM integration allows merchants to send the total discount provided by the coupon codes used in the order to the desired field in Salesforce. 
**Synchronize**
**1.Product Stock In WooCommerce**: With WooCommerce Salesforce Integration, merchants can sync the product stock from Salesforce to WooCommerce by just enabling the feature and entering the API name of the field that they are using to store the stock value. After this, every 5 minutes a cron will run which will update your product stock quantity (if there are any changes). 
**2.WooCommerce Products Over Integration With Salesforce**: The product feeds feature of this Salesforce WooCommerce integration plugin syncs all your online store’s products over to your Salesforce CRM account. Every new product you add to your WooCommerce syncs automatically data sync for product feeds enabled by you while configuring the plugin settings.
**3. Instant Data Sync, Manual Data Sync, And Historical Data Sync:** 
Woo Salesforce Integration now syncs all your data in 4 ways based on your configurations and requirements –


* Instant sync or real-time data sync
* Background syncing
* Syncing specific data manually
* Historical data sync for past data

**4.Manual Sync And Bulk Sync:**
Salesforce eCommerce Integration uses the manual sync and bulk sync options in the Salesforce WooCommerce integration plugin for custom feeds as well. 
**Mapping**
**1. Product Details**: The Salesforce CRM integration plugin now provides mapping product details such as product display URL, product type, and product status.
**2. Product Categories and Attributes:** You can allow your product categories and variable product attributes to be mapped seamlessly over Salesforce from your WooCommerce store using the latest version of our Salesforce Connector plugin in the Products feed.
**3. Billing And Shipping Country Name:** Using the Woo Salesforce Integration plugin you can also map the billing country name and shipping country name instead of just mapping the country codes.
**4. Shipping State Name:** With Salesforce API Integration, you can easily map the billing and shipping state names over to Salesforce with the Orders Feed.
**5. Product Tags And Sub-Categories:** WooCommerce Salesforce Integration allows seamless mapping of product tags and sub-categories as requested by our clients in the Product Feed of this plugin.
**6. WP Users Details:** This feature allows the merchants to map the details of WordPress Users over to Salesforce with the Account Feed, Contact Feed, and Lead Feed.

**Two-Way Product Syncing From Salesforce To WooCommerce**
With the two-way syncing functionality, if the admins make any changes in the products on Salesforce, the changes will also be reflected in WooCommerce. Similarly, if the admin manually creates a new product in Salesforce, the same products will also be made in WooCommerce. 

**NOTE:** Both functionalities have dedicated settings to cater to different needs. If admins want product changes to reflect in WooCommerce without automatically creating new products, they can enable the first setting, and vice versa. 

**Multi-Currency Support**
With multi-currency support, you can enable multi-currency settings in Salesforce. Once you successfully enable it, you will see a new field in Product2 Feed and Pricebook Feed. From here, you can accurately sync data in different selected currencies.


**Two-Way Deletion Of The Listed Products**
WooCommerce salesforce enables the admins with the two-way deletion feature, wherein if you delete a listed product from your WooCommerce store, it will also be deleted from salesforce, and vice versa.

**Data logs for Easy Tracking**
This feature lists all the WooCommerce data synced to your Salesforce CRM Integration.

* Feeds synced
* WooCommerce object and object ID
* Salesforce object and object ID
* Time of sync

This feature also allows you to delete entries from the data log, either manually or automatically. In the latest version of the plugin, you can also filter the logs with errors.
**Wipe All Data Once The WooCommerce Salesforce Integration Is Disconnected**
If you have the feature for wiping data enabled in the Salesforce CRM Integration plugin, you will have all your data cleared once you disconnect your integration as shown below.
**Associate WooCommerce Object Fields With Salesforce Modules**
This feature helps you map WooCommerce object fields with your Salesforce CRM account’s modules using association rules. These association rules are called feeds.
**Conditional Filter In Feeds**
You can use conditional filters, including the “OR” and “AND” filters when customizing feeds to sync data at your convenience.
**Date Range For Syncing Data**
Admins can now utilize the option to select a particular date range while bulk and one-click syncing the data. It is important to note that this date range functionality will not work while syncing the data products and users.
**Abandoned Cart Synchronization**
This new kind of synchronization helps admins to sync the data of your guests and logged-in users’ abandoned carts with WooCommerce salesforce. The admins can enable or disable this feature as needed, set the cart abandonment time, delete abandoned cart data from your store after a specified period, and store the data in an HTML-encoded format.
**Compatibility With Subscription**
The merchants can now utilize subscriptions as an object, to map out and sync all the details related to the individual subscription product, be it the Subscription Name, ID, Parent ID, Status, Customer, Payment Method & Schedule, and all the other individual details can be synced. Three events are triggered here - when a subscription is created, when it's updated, and when it's changed. 

Admins can also utilize bulk and manual sync options to sync all the relevant data in one go. 

**Compatibility With WooCommerce Membership**

The merchants can now utilize subscriptions as an object, to map out and sync all the details related to the individual membership plans, be it Membership Plan ID, Membership Created Date & Time, Membership End Date & Time, and other individual details can be synced. The membership is created in either of two ways - by manually creating it or when an order is placed. So, in that case, two events are triggered - the order status is changed, or the Membership is updated.Admins can also utilize bulk and manual sync options to sync all the relevant data in one go. 

**Compatibility With Multisite**

The Salesforce CRM connector is now compatible with multisite. After the compatibility, the plugin will work seamlessly with the sub-domains. The admin will be able to not only sync data but also create log tables (as per the requirements). 

The admin can sync data and effortlessly create log tables on different sub-domains, and the plugin also works efficiently on all domains.  

**Compatibility With Advanced Custom Fields**

WooCommerce Salesforce Connector now enables you to map out and sync all the custom-created fields as objects for your feeds. Merchants can utilize Advanced Custom Fields, to create custom fields for your products. These custom fields are usually created for orders, users, and products.

**Compatibility Coupon Referral Program**

Woo Salesforce is compatible with the referral plugin for WooCommerce. This enables the admins to map out and sync all the details of all the coupons that are generated for the different orders and users. This compatibility will work for the order feed and user feed. 

== Benefits of Salesforce CRM Integration ==
* **Filter in a log table:** With Woo Salesforce Integration, you can add a filter in the log table to easily filter all the data of different feeds i.e. Account, Contact, Product2, PricebookEntry, Opportunity, Order, OrdeItem, and Subscription in the synced data.
* **Better Customer Management:** The advanced features of WooCommerce Salesforce Integration help you in managing your customers by tracking their orders and order items.
* **Fast Data Sync:** Salesforce website integration syncs data in real-time. The real-time data sync and historic data sync are key benefits of this plugin.
* **Avail Coupon Discount:** The Salesforce Integration for WooCommerce plugin sends coupon codes and sends discounts given through coupons to salesforce.
* **Real-Time Reporting:** Syncs your WooCommerce data with Salesforce CRM Integration in real-time and displays the records via sync logs.
* **Conditional Filtering:** You can now add conditional filters in the Salesforce WooCommerce feeds using the WooCommerce Salesforce connector plugin.
* **Intuitive Setup Process:** The plugin offers an easy setup process to sync your website data with your Salesforce CRM account—the layout is interactive.
== Installation ==
The manual installation method involves downloading our Salesforce Integration for WooCommerce and uploading it to your web server via your favorite FTP application. The WordPress codex contains [**Instructions on how to do this here**](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation).

== Changelog ==

2025-01-30 - version 1.4.2
* Enhancement: Two way products syncing and creation based on reverse feed mapping from Salesforce to WooCommerce.
* New: Compatible with latest WC [9.6.0].

2025-01-10 - version 1.4.1
* New: 2 way deletion for variable products
* New: Multi Currency support.
* New: Two way products syncing and creation from Salesforce to WooConmerce 
* New: Compatible with latest WP [ 6.7.1 ] and WC [ 9.5.2 ]

2024-11-11 - version 1.4.0
* New: Abandoned Cart Syncing in abandoned cart object
* New: Compatible with latest WP [ 6.6.2 ] and WC [ 9.3.3 ]
* Fix: Contact Duplication issue

2024-09-30 - version 1.3.3
* New: compatibilty with CRP woo 
* New: Date range for bulk data sync 
* New: Manual sync and bulk with subscription and memberships 
* New: Squential sync on user event
* New: Compatible with latest WP [ 6.6.2 ] and WC [ 9.3.3 ]

2024-08-30 - version 1.3.2
* Fix: Compatibilty With ACF
* New: Compatible with latest WP [ 6.6.1 ] and WC [ 9.2.3 ]

2024-06-21 - version 1.3.1
* Fix: Order Item duplication issue fixed
* New: Compatible with latest WP [6.5.4] and WC [9.0.1]

2024-06-14 - version 1.3.0
* New: Two way deletion feature implementation
* New: Compatibility with WooCommerce Membership plugin as syncing as individual membership object on Salesforce
* Fix: Variable product syncing with more than 200 variations
* New: Compatible with latest WP [6.5.4] and WC [8.9.3]

2024-05-17 - version 1.2.3
* New: Order item default data sync to order items module
* fix: Fixed issue getting membership-related data
* fix: Product stock update on order placement
* New: Latest WP[6.5.3] and WC[8.8.3]

2024-04-19 - version 1.2.2
* New: Add WP user create and update event
* New: Added some subscriptions event like Subscription status changed and subscription updated
* New: Latest WP[6.5.2] and WC[8.8.2]

2024-03-29 - version 1.2.1
* New: Latest WP[6.4.3] and WC[8.7.0]
* New: Plugin check issues fixed
* New: Added WooCommerce block condition check

2024-02-28 - version 1.2.0
* New: Filters on log table
* New: WooCommerce Subscription data syncing as individual Subscription object
* New: Latest WP[6.4.3] and WC[8.6.1]
* Fix: Order status mapping syncing

2024-01-25 - version 1.1.7
* New: Latest WP[6.4.2] and WC[8.5.1]

2023-12-15 - version 1.1.6
* New: Latest WP [6.4.2] and WC [8.4.0]
* Fix: HPOS stability

2023-10-04 - version 1.1.5
* New: HPOS Compatibility
* New: Latest WP [6.3.1] and WC [8.1.1]

2023-08-17 - version 1.1.4
* New: Send Order Notes to Salesforce
* New: Multisite Compatibility
* New: Update Account if Accounts already exist on Salesforce
* New: Latest WP(6.0.3) and WC(8.0.2) update

2023-07-26 - version 1.1.3
* New: Product two way Sync
* Fix: Conditional filter issue fix
* New: Latest WP(6.2.2) and WC(7.9.0) update

2023-06-20 - version 1.1.2
* New: Compatibility with Latest WP [6.2.2] and WC [7.8.0]
* Fix: Bug fix ( order id, order status, order dates were not getting listed if woocommerce membership plugin was not installed)
* New: Fetching order edit url in order values
* New: Fetching order subtotal (i.e order amount without reducing discounts and adding taxes) in order values
* New: Fetching order number in order values

2023-05-15 - version 1.1.1
* New: Compatibility with WooCommerce Membership
* New: Compatibility with Latest WP [6.2.0] and WC [7.7.0]

2023-04-27 - version 1.1.0
* New: Latest WP[6.2.0] and WC[7.6.1]

2023-03-01 - version 1.0.9
* New: Compatibility with Latest WP [6.1.1] and WC [7.4.0]
* New: Field value for coupons used in the order
* New: Field value for the total discount provided by the coupon used

2023-01-24 - version 1.0.8
* New: Latest WP/WC

2022-12-08 - version 1.0.7
* New: Product tags in the field values for mapping
* New: Setting for person account
* New: Field values for billing state name and shipping state name
* New: Need to Add Support Skype Link/ Chat link in the plugin setting
* New: Product sub-category in the field values

2022-08-19 - version 1.0.6
* New: Product Attribute field for mapping
* New: Product categories for mapping
* New: Billing Country name field for mapping
* New: Shipping Country name field for mapping
* New: Latest WP/WC
* Fix: Minor BUG fixes

2022-05-24 - version 1.0.5
* New: Wipe Data (Order, Product meta key, Option Data)
* New: Background syncing
* New: Added compatibility with Quote and Quote Line Items( after opportunity  feed event )
* New: Added filters in the log table for filtering error
* New: Added option to sync parent product with variation
* New: Added compatibility with variable subscription
* New: Made custom feeds available for syncing in manual and bulk sync
* New: Added compatibility with nonprofit salesforce accounts( will not have some field of default feed in crm module)
* New: Added filtering in feeds
* New: Add product type, product status mapping option( product display url, product type, product status)
* New: Added custom meta for the syncing field is active for the product
* New: Added product url for the custom field to show product url
* New: Minor Bug fixes

2022-02-05 - version 1.0.4
* New: Notice display of current version for **WP Swings**
* New: Minor Bug fixes
* New: Compatible with latest WP and WC

2021-10-13 - version 1.0.3
* New:Improved setup process.
* Fix:Fixed static value sync.
* Fix:Fixed issue with active feed toggle.
* Fix:Fixed issue with ENTITY_IS_DELETED error.
* Fix:Fixed issue with custom order status syncing.
* Fix:Fixed issue with pricebook entry not active by default.
* Fix:Fixed issue with BillToContact and ShipToContact fields.
* Fix: Fixed issue with missing dashboard images.
* New: Added confirmation pop on disconnect.
* New: Added filters to filter request data.
* New: Added support for Case and Opportunity Product objects.

2021-08-27 - version 1.0.2
* New: Added Authentication using the global app.
* New: Updated OrderItem sync process.

2021-08-19 - version 1.0.1
* Fix:Fixed issue with instant data sync.
* New: Updated plugin name.

2021-07-30 - version 1.0.0
 * First Release.
