Changeset 3378025
- Timestamp:
- 10/14/2025 10:34:41 AM (6 months ago)
- Location:
- woocommerce-es
- Files:
-
- 109 added
- 7 deleted
- 7 edited
- 1 copied
-
assets/banner-1544x500.png (modified) (previous)
-
assets/banner-772x250.png (modified) (previous)
-
assets/blueprints (added)
-
assets/blueprints/blueprint.json (added)
-
assets/icon-128x128.png (deleted)
-
assets/icon-158X158.gif (added)
-
assets/icon-158x158.png (added)
-
assets/icon-256x256.gif (added)
-
assets/icon-256x256.png (modified) (previous)
-
tags/3.2.0 (copied) (copied from woocommerce-es/trunk)
-
tags/3.2.0/.cursor (added)
-
tags/3.2.0/.cursor/rules (added)
-
tags/3.2.0/.cursor/rules/development.mdc (added)
-
tags/3.2.0/composer.json (added)
-
tags/3.2.0/includes/Admin (added)
-
tags/3.2.0/includes/Admin/Import_Products.php (added)
-
tags/3.2.0/includes/Admin/Notices.php (added)
-
tags/3.2.0/includes/Admin/Orders.php (added)
-
tags/3.2.0/includes/Admin/Settings.php (added)
-
tags/3.2.0/includes/Admin/Taxes_Rates.php (added)
-
tags/3.2.0/includes/Admin/Widget_Order.php (added)
-
tags/3.2.0/includes/Admin/Widget_Product.php (added)
-
tags/3.2.0/includes/CLI (added)
-
tags/3.2.0/includes/CLI/Import_Products_Command.php (added)
-
tags/3.2.0/includes/Connector (added)
-
tags/3.2.0/includes/Connector/assets (added)
-
tags/3.2.0/includes/Connector/assets/clientify-field.js (added)
-
tags/3.2.0/includes/Connector/assets/logo.svg (added)
-
tags/3.2.0/includes/Connector/class-api-clientify.php (added)
-
tags/3.2.0/includes/Frontend (added)
-
tags/3.2.0/includes/Frontend/Checkout.php (added)
-
tags/3.2.0/includes/Frontend/MyAccount.php (added)
-
tags/3.2.0/includes/Helpers (added)
-
tags/3.2.0/includes/Helpers/AI.php (added)
-
tags/3.2.0/includes/Helpers/CRON.php (added)
-
tags/3.2.0/includes/Helpers/HELPER.php (added)
-
tags/3.2.0/includes/Helpers/ORDER.php (added)
-
tags/3.2.0/includes/Helpers/PROD.php (added)
-
tags/3.2.0/includes/Helpers/TAX.php (added)
-
tags/3.2.0/includes/Helpers/TAXES.php (added)
-
tags/3.2.0/includes/Plugin_Main.php (added)
-
tags/3.2.0/includes/assets (added)
-
tags/3.2.0/includes/assets/admin.css (added)
-
tags/3.2.0/includes/assets/admin.js (added)
-
tags/3.2.0/includes/assets/background.jpg (added)
-
tags/3.2.0/includes/assets/logo.png (added)
-
tags/3.2.0/includes/assets/repeatable-fields.js (added)
-
tags/3.2.0/includes/assets/sync-import.js (added)
-
tags/3.2.0/includes/assets/sync-order-widget.js (added)
-
tags/3.2.0/includes/class-admin.php (deleted)
-
tags/3.2.0/includes/class-public.php (deleted)
-
tags/3.2.0/languages (deleted)
-
tags/3.2.0/readme.txt (modified) (1 diff)
-
tags/3.2.0/vendor (added)
-
tags/3.2.0/vendor/autoload.php (added)
-
tags/3.2.0/vendor/composer (added)
-
tags/3.2.0/vendor/composer/ClassLoader.php (added)
-
tags/3.2.0/vendor/composer/InstalledVersions.php (added)
-
tags/3.2.0/vendor/composer/LICENSE (added)
-
tags/3.2.0/vendor/composer/autoload_classmap.php (added)
-
tags/3.2.0/vendor/composer/autoload_namespaces.php (added)
-
tags/3.2.0/vendor/composer/autoload_psr4.php (added)
-
tags/3.2.0/vendor/composer/autoload_real.php (added)
-
tags/3.2.0/vendor/composer/autoload_static.php (added)
-
tags/3.2.0/vendor/composer/installed.json (added)
-
tags/3.2.0/vendor/composer/installed.php (added)
-
tags/3.2.0/woocommerce-es.php (modified) (1 diff)
-
trunk/.cursor (added)
-
trunk/.cursor/rules (added)
-
trunk/.cursor/rules/development.mdc (added)
-
trunk/composer.json (added)
-
trunk/includes/Admin (added)
-
trunk/includes/Admin/Import_Products.php (added)
-
trunk/includes/Admin/Notices.php (added)
-
trunk/includes/Admin/Orders.php (added)
-
trunk/includes/Admin/Settings.php (added)
-
trunk/includes/Admin/Taxes_Rates.php (added)
-
trunk/includes/Admin/Widget_Order.php (added)
-
trunk/includes/Admin/Widget_Product.php (added)
-
trunk/includes/CLI (added)
-
trunk/includes/CLI/Import_Products_Command.php (added)
-
trunk/includes/Connector (added)
-
trunk/includes/Connector/assets (added)
-
trunk/includes/Connector/assets/clientify-field.js (added)
-
trunk/includes/Connector/assets/logo.svg (added)
-
trunk/includes/Connector/class-api-clientify.php (added)
-
trunk/includes/Frontend (added)
-
trunk/includes/Frontend/Checkout.php (added)
-
trunk/includes/Frontend/MyAccount.php (added)
-
trunk/includes/Helpers (added)
-
trunk/includes/Helpers/AI.php (added)
-
trunk/includes/Helpers/CRON.php (added)
-
trunk/includes/Helpers/HELPER.php (added)
-
trunk/includes/Helpers/ORDER.php (added)
-
trunk/includes/Helpers/PROD.php (added)
-
trunk/includes/Helpers/TAX.php (added)
-
trunk/includes/Helpers/TAXES.php (added)
-
trunk/includes/Plugin_Main.php (added)
-
trunk/includes/assets (added)
-
trunk/includes/assets/admin.css (added)
-
trunk/includes/assets/admin.js (added)
-
trunk/includes/assets/background.jpg (added)
-
trunk/includes/assets/logo.png (added)
-
trunk/includes/assets/repeatable-fields.js (added)
-
trunk/includes/assets/sync-import.js (added)
-
trunk/includes/assets/sync-order-widget.js (added)
-
trunk/includes/class-admin.php (deleted)
-
trunk/includes/class-public.php (deleted)
-
trunk/languages (deleted)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor (added)
-
trunk/vendor/autoload.php (added)
-
trunk/vendor/composer (added)
-
trunk/vendor/composer/ClassLoader.php (added)
-
trunk/vendor/composer/InstalledVersions.php (added)
-
trunk/vendor/composer/LICENSE (added)
-
trunk/vendor/composer/autoload_classmap.php (added)
-
trunk/vendor/composer/autoload_namespaces.php (added)
-
trunk/vendor/composer/autoload_psr4.php (added)
-
trunk/vendor/composer/autoload_real.php (added)
-
trunk/vendor/composer/autoload_static.php (added)
-
trunk/vendor/composer/installed.json (added)
-
trunk/vendor/composer/installed.php (added)
-
trunk/woocommerce-es.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-es/tags/3.2.0/readme.txt
r3181611 r3378025 1 === Spanish Market Enhancements for WooCommerce ===2 Contributors: close marketing, davidperez, sacrajaimez, yordansoares3 Tags: woocommerce, translation, spanish, es, es_ES, webshop, ecommerce, e-commerce, commerce, woothemes1 === Connect Ecommerce - Connect WooCommerce Shop to ERP/CRM and EU/VAT Compliance === 2 Contributors: closetechnology, closemarketing, davidperez, sacrajaimez 3 Tags: connect, integrate, eu vat, vat compliance, woocommerce, connect woocommerce 4 4 Donate link: https://close.marketing/go/donate/ 5 Requires at least: 3.0 6 WC requires at least: 4.0 7 WC tested up to: 9.3 8 Tested up to: 6.7 9 Stable tag: 2.1.2 10 Version: 2.1.2 11 12 Extends the WooCommerce plugin for Spanish needs: EU VAT included in form and order, terms and conditions, translations and optimization in checkout. 5 Requires at least: 5.0 6 Requires PHP: 7.4 7 Tested up to: 6.8 8 Stable tag: 3.2.0 9 Version: 3.2.0 10 License: GPL2 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 13 Add VAT Fields, Import European Taxes and check VAT compliance. Connect WooCommerce with ERPs and CRMs. Products, Clients and Orders with ERP/CRM. 13 14 14 15 == Description == 15 16 16 Functionalities: 17 * It adds VAT info in forms fields, Orders, and email notification. 18 * Remove shipping methods when free is possible. 19 * Adds Terms and conditions in registration page. 20 * It gives you the option to activate optimization in the checkout. It changes the Checkout for better conversion. 21 22 Furthermore, this plugin includes the Woocommerce Translation from some plugins that translate it. 23 * <strong>[WooCommerce Email Cart](https://close.marketing/go/email-cart/)</strong> Send Carts by Email to users 24 * <strong>WooCommerce Product Enquiry Form</strong> 25 * <strong>WooCommerce Shipping Table Rate</strong> 26 * <strong>[WooCommerce Brands](https://close.marketing/likes/wces-woocommerce-brands/)</strong> 27 * <strong>[WooCommerce SEPA Direct](https://close.marketing/likes/sepa/)</strong> Sell tickets in your WooCommerce store. 28 29 And you will find this plugins translated in premium version [WPSPA Translations](https://close.technology/wordpress-plugins/woocommerce-es-trans/): 30 - Cart to Quote for WooCommerce v1.0.13 (61%) 31 - Follow Up Emails v4.9.8 (54%) 32 - Fooevents Express checkin v1.12.3 (100%) 33 - Fooevents Tickets PDF v1.2.9 (100%) 34 - FS WooCommerce Wallet v2.6.5 (44%) 35 - Multi Order for WooCommerce PRO v (64%) 36 - Recover Abandoned Cart WooCommerce v22.6 (58%) 37 - Save & Share Cart for WooCommerce v2.0.5 (30%) 38 - WCMP WooCommerce PDF Invoices v4.9.2 (7%) 39 - WCMP WooCommerce Product Manager v3.1.5 (32%) 40 - WooCommerce Advanced Quantity v3.0.2 (100%) 41 - WooCommerce API Manager v2.3.5 (14%) 42 - WooCommerce Brands v1.6.21 (100%) 43 - WooCommerce Composite Products v7.1.2 (100%) 44 - WooCommerce Dynamic Pricing & Discounts v2.3 (78%) 45 - Fooevents v1.12.3 (32%) 46 - WooCommerce Force Sells v1.1.27 (93%) 47 - WooCommerce Google Product v9.3.2 (53%) 48 - WooCommerce Memberships v1.19.2 (100%) 49 - WooCommerce Min Max Quantities v2.4.20 (28%) 50 - WooCommerce Product Addons v3.1.0 (98%) 51 - WooCommerce Product Reviews PRO v1.16.2 (85%) 52 - WooCommerce Products Filter v2.2.4 (45%) 53 - WooCommerce Waitlist v2.2.2 (90%) 54 - WooCommerce Wishlists v2.2.2 (100%) 55 - WooCommerce Local PickUP Plus v2.9.2 (100%) 56 - WooTour v3.2.5 (100%) 57 - WooCommerce Deposits v1.5.2 (100%) 58 - WooCommerce One Page Checkout v1.7.8 (100%) 59 60 > This plugin requires the [WooCommerce plugin](http://wordpress.org/extend/plugins/woocommerce/) 17 **Functionalities** 18 19 - Add VAT info in forms fields, Orders, and email notification (Gutenberg compatible). 20 - EU/VAT Compliance: Import European Taxes and check VAT compliance. 21 - (optional) Connect your WooCommerce store to your ERP or CRM software. This plugin makes it easy to connect your store by synchronizing products, customers, and orders. 22 - Save hours of administrative work by eliminating the need to manually enter products, customers, and orders. 23 - You can now use AI to generate product marketing descriptions based on information from your ERP/CRM. 24 - There’s no need for additional plugins to request VAT numbers from companies — this plugin has it covered. 25 - This plugin is fully GDPR compliant. The synchronization between WooCommerce and your ERP/CRM is established through a direct connection, without intermediaries or third-party storage of personal data. This ensures maximum security and transparency, keeping customer information under your full control. 26 - This plugin also includes specific adjustments to comply with Verifactu regulations. Order and invoice data are processed and structured to meet the official requirements, ensuring your business adheres to current legal standards. 27 28 29 **EU/VAT Compliance: Import European Taxes and check VAT compliance.** 30 31 You can use this feature alone if you need it. You can import European Taxes and check VAT compliance. 32 33 **Connect your WooCommerce store to your ERP or CRM software.** 34 Connect your WooCommerce store to your ERP or CRM software. This plugin makes it easy to connect your store by synchronizing products, customers, and orders. 35 36 Save hours of administrative work by eliminating the need to manually enter products, customers, and orders. 37 38 You can now use AI to generate product marketing descriptions based on information from your ERP/CRM. 39 40 There’s no need for additional plugins to request VAT numbers from companies — this plugin has it covered. 41 42 **How does it work the synchronization?** 43 It synchronizes according to the natural workflow your business should have when connected to an online store. 44 45 Products: Imports products from your ERP/CRM with all the necessary sales information, supporting variable products. Keeps prices, stock, and product details up to date. 46 47 Orders and Customers: Once an order is placed, it is sent to the ERP/CRM. It creates a new customer or matches the existing one to the order in the ERP/CRM. Depending on the connector, you can choose the type of document to generate. 48 49 This plugin is fully GDPR compliant. The synchronization between WooCommerce and your ERP/CRM is established through a direct connection, without intermediaries or third-party storage of personal data. This ensures maximum security and transparency, keeping customer information under your full control. 50 51 This plugin also includes specific adjustments to comply with Verifactu regulations. Order and invoice data are processed and structured to meet the official requirements, ensuring your business adheres to current legal standards. 52 53 **Main Benefits** 54 - Imports simple, variable, and bundled products. 55 - Imports product attributes such as brand. 56 - Imports product categories. 57 - Automatically imports products. 58 - Sends orders immediately after they are placed, including historical orders. 59 - Sends invoices attached to the order email (Holded only). 60 - Allows you to choose the invoice design (Holded only). 61 - Uses AI to generate product marketing information. 62 - Adds the NIF/CIF field for proper invoicing. 63 - Complies with Verifactu and GDPR. 64 - For ERPs that support it, you can send the payment method. 65 66 This plugin serves as the foundation for various connectors. The free version supports: 67 - [Clientify](https://close.marketing/likes/clientify/) 68 69 **Merge variables** 70 You can use this section to merge variables from ERP to WooCommerce. That means that you can merge categories, attributes, products, custom fields, taxonomies, etc. 71 72 You will need to add Payment methods to merge variables to send the payment method to the ERP. 73 74 Premium connectors include: 75 - [Holded](https://close.technology/en/wordpress-plugins/connect-woocommerce-holded/) 76 - [Odoo](https://close.technology/en/wordpress-plugins/connect-woocommerce-odoo/) 77 - [NEO POS](https://close.technology/en/wordpress-plugins/connect-woocommerce-neo/) 78 - [Datisa](https://close.technology/en/wordpress-plugins/connect-woocommerce-datisa/) 79 80 Need another connector? We offer custom integration services. [Contact us](https://close.technology/en/contact/) 81 82 == Frequently Asked Questions == 83 84 = What does this plugin do? = 85 Connect Ecommerce allows you to import products from an ERP/CRM to your WooCommerce store via API. It also sends orders from the store to your ERP/CRM and creates associated customers. It also allows you to import European Taxes and check VAT compliance. 86 87 = How are products and orders synced? = 88 Products are synced from the ERP/CRM to WooCommerce because the ERP should always contain the most up-to-date business information. This ensures accurate management of products, prices, and other business data. 89 90 Orders are synced from WooCommerce to the ERP/CRM so that every time a customer places an order, it is sent to your ERP for proper order and invoice management. 91 92 = What happens when a product is out of stock? = 93 By default, the product disappears from the store catalog but remains visible to search engines. This is intentional and matches the expected store behavior. 94 95 = Does it comply with Verifactu? = 96 Yes, it does. It makes the order data more readable for Verifactu. 61 97 62 98 == Installation == 63 99 64 Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.65 100 - Go to Add Plugin, search for Connect Ecommerce, and Install it. Then Activate the plugin. You will need to have WooCommerce Installed. 101 - Go to WooCommerce > Connect Ecommerce for the configuration. 66 102 67 103 == Developers == 68 [GitHub](https://github.com/closemarketing/woocommerce-es) 69 70 == Changelog = 104 [Official Repository GitHub](https://github.com/closemarketing/woocommerce-es) 105 106 You can use WP CLI to import products from the command line. The command is: 107 ``` 108 wp conecom products --update --ai=none,new,all 109 ``` 110 111 == External services == 112 113 This plugin connects to an API to make AI SEO descriptions and product information. 114 115 It sends product data to the API, which then returns optimized SEO descriptions and enhanced product details. 116 117 Supported Services: 118 - OpenAI: [Terms of use](https://openai.com/policies/row-terms-of-use/) and [Privact policy](https://openai.com/policies/row-privacy-policy/) 119 - DeepSeek: [Terms of use](https://cdn.deepseek.com/policies/en-US/deepseek-terms-of-use.html) and [Privacy policy](https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html) 120 121 The core connector integrates with Clientify, a CRM and marketing automation tool. [Terms of use](https://clientify.com/aviso-legal/) and [privacy policy](https://clientify.com/politicas-de-privacidad). 122 123 == Changelog == 124 125 = 3.2.0 = 126 * Enhancement: Added support to update tax rates from EU database. 127 * Enhancement: Moved to a new plugin repository: https://wordpress.org/plugins/woocommerce-es/ 128 * Enhancement: Gutenberg support for VAT field in checkout. 129 130 = 3.1.6 = 131 * Enhancement: Added variation images to product gallery for APIs that allows images in variations. 132 * Enhancement: Added support to import variable products without SKU in parent. 133 * Fixed: error saving category separator. 134 * Enhancement: Added support to payment methods from API. 135 * Enhancement: Added support to smart doctype in Holded. 136 137 = 3.1.5 = 138 * Enhancement: Added support to merge categories from API to WooCommerce. 139 * Enhancement: More robust import products. Prevents missing variables from API. 140 * Enhancement: Added support to Odoo company field. 141 * Enhancement: Added support to clean special chars in order data (Verifactu). 142 * Enhancement: Added support to approve document for Verifactu in some ERPs. First version for Holded. 143 * Enhancement: Added support to VAT Number SIMBA Hosting plugin. 144 * Enhancement: added support to importing images in variations. 145 * Enhancement: Don't add image if already exists in WooCommerce. 146 * Enhancement: Added support to more SEO plugins. 147 * Enhancement: Added seo focus keyword to be generated by AI. 148 * Fixed: Solved static analysis errors. 149 * Fixed: error importing products without pricesale_discount. 150 * Fixed: error importing products with categories. 151 * Fixed: Better management for premium plugins addons license that complies with WordPress.org. 152 153 = 3.1.4 = 154 * Enhancement: Added tests for product simple and variable. 155 * Fixed: sync barcode in product variations. 156 * Fixed: sync categories criteria. 157 * Fixed: deprecation notice for WooCommerce. 158 159 = 3.1.3 = 160 * Enhancement: updated versions to PHP that are supported. 161 * Fixed: Fatal error in PHP 7.4. 162 163 = 3.1.2 = 164 * Fixed: Getting prices rates from variation products. 165 * Fixed: Zero stock in variation products was giving not manage stock. 166 * Fixed: Automated products sync not working properly. 167 168 = 3.1.1 = 169 * Added: Merge categories from API to WooCommerce. You select the equivalence in the settings. 170 * Fixed: Error in orphaned variations to prevent SKU errors. 171 * Fixed: Cron not running properly. 172 173 = 3.1.0 = 174 * Added: WP CLI command to import products. 175 * Fully support to import EAN to WooCommerce. 176 * Added: Import image products with different method. 177 * Added: Result API import in widget product. 178 * Added: Save parent SKU in product if does not exist. 179 * Added: Check if image product file exists before import. 180 * Fixed: AI connection not working in some cases. 181 * Fixed: Some errors getting products from shop to syncronize. 182 * Fixed: Not getting prices rates from API. 183 * Fixed: Prevent error when WooCommerce does not load the product. 184 185 = 3.0.1 = 186 * Minor fixes. 187 * Fixed: Some errors in Clientify connector. 188 * Fixed: Don't add shipping details if all products are virtual. 189 * Added support different Vat order variables: _billing_vat, _billing_vat_number, _billing_nif. 190 * Added suppport to [WC – APG Campo NIF/CIF/NIE](https://es.wordpress.org/plugins/wc-apg-nifcifnie-field/) 191 192 = 3.0.0 = 193 * Added AI Generate content for new products. 194 * Added: Import EAN new WooCommerce code. 195 * Added: Fix category separator. 196 * Added: Filter by Producto SKU. 197 * Added: Make downloable the invoice in My account. 198 * Added: Domain field. 199 * Added: Series number. 200 * Added: contact company. 201 * Added: Added order tags. 202 * Added: Company Field option. 203 * Added: Publish status in Merge Vars. 204 * Added: Split Categories in merge vars. 205 * Products widgets allow search product by SKU. 206 * Added: Sync with APIs with modified date. 207 * Added: Support to Paginated APIs. 208 * Added: Coupons sends to the API. 209 * Fixed: Taxes calculation in order. 210 * Added: Option to send orders to ERP when it's paid. 211 * Fixed: error calculating taxes from order products. 212 * Added: Option to log problems in WooCommerce logs. 213 * Fixed: error while updating order with shipping items. 214 * Fix: Required parameter $option_prefix follows optional. 215 * Minor fixes. 216 217 = 2.3.1 = 218 * Fixed: Added support to import billing vat from other plugins. 219 220 = 2.3.0 = 221 * Refactored for better internal structure. 222 * Added: Merge vars for product custom fields, taxonomies and product fields importer. 223 * Added: Import product from product view. 224 * Added: Send manually order to ERP. 225 * Added: Option to log problems in WooCommerce logs. 226 * Fixed: Orders with products without tax sending tax items. 227 * Fixed: Prevents fatal error in variations while have duplicated SKUs. 228 * Fixed: error while updating order with shipping items. 229 * Fixed: Required parameter $option_prefix follows optional. 230 * Minor fixes. 231 232 = 2.2.3 = 233 * Fixed: Prevents error while importing products with duplicated SKUs. 234 235 = 2.2.2 = 236 * Fixed: Error when variable product has no attributes. 237 * Fixed: error in variable products. 238 239 = 2.2.1 = 240 * Fixed: Shipping and Fee items not imported correctly. 241 242 = 2.2.0 = 243 * Added Series number. 244 * Column in orders for Holded document. 245 * Added widget in order to send to Holded or update to Holded. 246 * Added send order with items fee. 247 * Fixed: Error not sending order with free shipping item. 248 * Fixed: Dates with invoices depends if you force the order or create by completed order. 249 * Fixed: Calculation of taxes. 250 * Fixed: Country code sent to Holded. 251 * Fixed: Saves product options taxes. 252 71 253 = 2.1.2 = 72 * Tweak: Improve the NIF value retrieval. 254 * Fix: Prevents table sync not created. 255 * Fix: Some clients have less lenght in key products. 73 256 74 257 = 2.1.1 = 75 * Fix fatal error related with the VAT Number injection in PDF Invoices. Thanks to Yordan Soares and Alexandre. 258 * Fix: Blank filter not working. 259 * Fix: Error importing products in database. 76 260 77 261 = 2.1.0 = 78 * Updated list of premium plugins translated. 79 * Removed WooCommerce subscriptions Free. 80 * Removed Freemius. 81 82 = 2.0.2 = 83 * Fixes admin url for addons. 262 * New Admin design. 263 * Protected folder invoice. 264 * Order columns for API. 265 * Added option for Categories as attribute. 266 * Fix: error message order. 267 * Fix: Shipping order cost fixed not implemented in order. 268 * Fix: Fatal error no products in automation. 269 * Fix: Faster manual sync. 270 * Fix: Errors in PHP8. 271 * Premium Fix: Shipping order info updated. 272 * Premium Fix: Fix not importing variables products. 84 273 85 274 = 2.0.1 = 86 * Fixes bug. 275 * Fix: Filtered product if empty. 276 * Fix: Error rates empty. 87 277 88 278 = 2.0 = 89 * New version with Language Addons! 90 * New Settings Page. 91 * Remove free shipping. 92 * Adds Terms and conditions in registration page. 93 94 = 1.7 = 95 * Fixed error in email. 96 * Updated and tested versions. 97 98 = 1.6.1 = 99 * Tested versions and update readme. 100 101 = 1.6 = 102 * Fixed fatal error. 103 104 = 1.5 = 105 * Hide shipping rates when free shipping is available. 106 * Fixed for WooCommerce 3.5. 107 * Better management of checkout page. 108 * Added VAT Field in email WooCommerce notification. 279 * Removed Freemius as engine sell. 280 * Removed Support to Easy Digital Downloads. 281 * Add Tags as list (separated with commas). 282 * Add VAT Info in checkout. 283 * Option to Company field in checkout. 284 * Premium: Add PDF generated from Holded. 285 * Premium: Better sync management WooCommerce Action Scheduler. 286 * Premium: Refactoring code from free and fremium. 287 * Premium: Select design in document holded. 109 288 110 289 = 1.4 = 111 * Added option to remove company field. 112 * Added option to show/not show VAT Field. 290 * Option to not create document if order is free. 113 291 114 292 = 1.3 = 115 * Added translation for Woocommerce Memberships, Subscriptions, Events plugin and SEPA direct debit. 293 * Sync orders to Holded (Premium) automatically and force manually for past orders. 294 * Sync Pack products to Holded (Premium). 295 * Fix: Attributes duplicated in variation product not imported. 296 * Fix: Categories not imported in simple products. 116 297 117 298 = 1.2 = 118 * Adds an option in Woocommerce / General Options to Optimize the checkout for better conversion. 119 120 = 1.1 = 121 * Add an option in Woocommerce / General Options to make it mandatory VAT info field. 122 123 = 1.0 = 124 * Debugged methods and make new version. 125 126 = 0.3 = 127 * Require VAT in order in admin and frontend. 128 129 = 0.1 = 130 * Initial release 131 299 * Automate your syncronization! (Premium). 300 * Option email when is finished (Premium). 301 * Fix sku saved for EDD. 302 * Better metavalue search for SKU. 303 * Fix Holded Pagination (thanks to itSerra). 304 * Fix SKU variation (thanks to itSerra). 305 306 = Earlier versions = 307 308 For the changelog of earlier versions, please refer to the separate changelog.txt file. 132 309 133 310 == Links == 134 135 311 * [Closemarketing](https://close.marketing/) 136 * [Close·technology WordPress Plugins](https://close.technology/) 137 138 139 == Closemarketing plugins == 140 141 * [Send SMS to WordPress Users via Arsys](https://wordpress.org/plugins/send-sms-arsys/) 142 * [Clean HTML Code in the Editor](https://wordpress.org/plugins/clean-html/) 143 * [Gravity Forms Spanish](https://wordpress.org/plugins/gravityforms-es/) 144 * [Bootstrap ShortCodes for Content](https://wordpress.org/plugins/bootstrap-shortcodes-for-content/) 145 * [Event Espresso (Spanish)](https://wordpress.org/plugins/event-espresso-es/) 146 * [Debug MO Translations](https://wordpress.org/plugins/debug-mo-translations/) 147 * [Woocommerce ES](https://wordpress.org/plugins/woocommerce-es/) 312 * [Closemarketing plugins](https://profiles.wordpress.org/closemarketing/#content-plugins) -
woocommerce-es/tags/3.2.0/woocommerce-es.php
r2980733 r3378025 1 1 <?php 2 /* 3 * Plugin Name: WPSPA Spanish Enhacements for WooCommerce 4 * Plugin URI: http://www.closemarketing.es/portafolio/plugin-woocommerce-espanol/ 5 * Description: Extends the WooCommerce plugin for Spanish needs: EU VAT included in form and order, and add-ons with the Spanish language. 2 /** 3 * Plugin Name: Connect and EU VAT Compliance for WooCommerce 4 * Plugin URI: https://close.technology/wordpress-plugins/connect-ecommerce/ 5 * Description: Connects Ecommerce WooCommerce to ERPs and CRMs. Syncs products, customers, orders and stock. Includes EU VAT Compliance. Import European Taxes and check VAT compliance. 6 * Author: Closetechnology 7 * Author URI: https://close.technology/ 8 * Version: 3.2.0 9 * Requires PHP: 7.4 10 * Requires at least: 6.3 11 * Text Domain: woocommerce-es 12 * Requires Plugins: woocommerce 13 * License: GPL-2.0+ 14 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 6 15 * 7 * Version: 2.1.2 8 * Requires at least: 5.0 16 * Prefix: conecom_ 9 17 * 10 * WC requires at least: 3.0 11 * WC tested up to: 4.1 18 * @package WordPress 19 */ 20 21 defined( 'ABSPATH' ) || exit; 22 23 define( 'CONECOM_VERSION', '3.2.0' ); 24 define( 'CONECOM_FILE', __FILE__ ); 25 define( 'CONECOM_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 26 define( 'CONECOM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 27 28 require_once CONECOM_PLUGIN_PATH . 'vendor/autoload.php'; 29 30 /** 31 * Gets the options for the plugin. 12 32 * 13 * Author: Closemarketing 14 * Author URI: http://www.closemarketing.net/ 15 * 16 * Text Domain: woocommerce-es 17 * Domain Path: /languages/ 18 * 19 * License: GNU General Public License v3.0 20 * License URI: http://www.gnu.org/licenses/gpl-3.0.html 21 */ 33 * @return array 34 */ 35 function conecom_get_options() { 36 /** 37 * Default values 38 */ 39 global $wpdb; 22 40 23 define( 'WCES_NAME', 'WPSPA Spanish Enhacements for WooCommerce' ); 24 define( 'WPSPA_VERSION', '2.1.2' ); 25 define( 'WCES_REQUIRED_PHP_VERSION', '5.4' ); 26 define( 'WCES_REQUIRED_WP_VERSION', '4.6' ); 27 define( 'WCES_REQUIRED_WC_VERSION', '2.6' ); 28 29 add_action( 'init', 'wces_update_options_settings' ); 30 /** 31 * Update process 32 * 33 * @return boolean 34 */ 35 function wces_update_options_settings() { 36 $old_version = get_option( 'wces_plugin_version', '1.7' ); 37 38 if ( ! ( version_compare( $old_version, WPSPA_VERSION ) < 0 ) ) { 39 return false; 40 } 41 $array_options = array( 42 'wces_vat_show' => 'vat_show', 43 'wces_vat_mandatory' => 'vat_mandatory', 44 'wces_opt_checkout' => 'opt_checkout', 45 'wces_company' => 'company_field', 41 return apply_filters( 42 'conecom_options_plugin', 43 array( 44 'clientify' => array( 45 'name' => 'Clientify', 46 'slug' => 'conecom-clientify', 47 'version' => CONECOM_VERSION, 48 'plugin_name' => 'Connect WooCommerce Clientify', 49 'plugin_slug' => 'connect-ecommerce-clientify', 50 'disable_modules' => array( 'subscription' ), 51 'api_url' => CONECOM_SHOP_URL, 52 'api_pagination' => 100, 53 'product_price_tax_option' => true, 54 'product_price_rate_option' => false, 55 'product_option_stock' => false, 56 'order_send_attachments' => true, 57 'order_sync_partial' => true, 58 'order_import_free_order' => true, 59 'order_only_order_completed' => 'completed', 60 'settings_logo' => CONECOM_PLUGIN_URL . 'includes/Connector/assets/logo.svg', 61 'settings_admin_message' => sprintf( 62 // translators: %s url of contact. 63 __( 'Put the connection API key settings in order to connect and sync products. You can go here <a href = "%s" target = "_blank">App Test API</a>.', 'woocommerce-es' ), 64 'https://app.test.com/api' 65 ), 66 'settings_special_tabs' => array(), 67 'settings_fields' => array( 'apipassword' ), 68 'table_sync' => $wpdb->prefix . 'sync_conecom-clientify', 69 'file' => __FILE__, 70 ), 71 ) 46 72 ); 47 foreach ( $array_options as $key => $new_key ) {48 $value_option = get_option( $key );49 if ( $value_option ) {50 $actual_options = get_option( 'wces_settings' );51 $actual_options[ $new_key ] = $value_option;52 delete_option( $key );53 update_option( 'wces_settings', $actual_options );54 }55 }56 update_option( 'wpspa_plugin_version', WPSPA_VERSION );57 73 } 58 74 75 add_action( 'init', 'conecom_loads' ); 59 76 /** 60 * C hecks if the system requirements are met77 * Connect WooCommerce loads. 61 78 * 62 * @return bool True if system requirements are met, false if not79 * @return void 63 80 */ 64 function wces_requirements_met() {65 global $wp_version;66 require_once ( ABSPATH . '/wp-admin/includes/plugin.php' ); // to get is_plugin_active() early81 function conecom_loads() { 82 require_once CONECOM_PLUGIN_PATH . 'includes/Plugin_Main.php'; 83 require_once CONECOM_PLUGIN_PATH . 'includes/Connector/class-api-clientify.php'; 67 84 68 if ( version_compare( PHP_VERSION, WCES_REQUIRED_PHP_VERSION, '<' ) ) { 69 return false; 85 $conecom_options = conecom_get_options(); 86 new CLOSE\ConnectEcommerce\Base( $conecom_options ); 87 } 88 89 if ( defined( 'WP_CLI' ) && WP_CLI ) { 90 require_once CONECOM_PLUGIN_PATH . 'includes/CLI/Import_Products_Command.php'; 91 92 /** 93 * Registers our command when cli get's initialized. 94 * 95 * @since 1.0.0 96 * @author David Perez 97 */ 98 function conecom_import_products_register_commands() { 99 WP_CLI::add_command( 'conecom', 'Import_Products_Command' ); 70 100 } 71 101 72 if ( version_compare( $wp_version, WCES_REQUIRED_WP_VERSION, '<' ) ) { 73 return false; 74 } 75 76 if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) { 77 return false; 78 } 79 80 $woocommer_data = get_plugin_data( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php', false, false ); 81 82 if ( version_compare( $woocommer_data['Version'], WCES_REQUIRED_WC_VERSION, '<' ) ) { 83 return false; 84 } 85 86 return true; 102 add_action( 'cli_init', 'conecom_import_products_register_commands', 20 ); 87 103 } 88 104 89 function wces_requirements_error () { 90 ?> 91 <div class="notice notice-success is-dismissible"> 92 <p> 93 <?php esc_html_e( 'You need to install WooCommerce in order to use the plugin:', 'woocommerce-es' ); ?> 94 <strong>WooCommerce Enhancements for Spanish Market</strong> 95 </p> 96 </div> 97 <?php 105 register_activation_hook( __FILE__, 'conecom_move_settings' ); 106 /** 107 * Move settings from old plugin to new plugin 108 * 109 * @return void 110 */ 111 function conecom_move_settings() { 112 CLOSE\ConnectEcommerce\Helpers\HELPER::move_settings(); 98 113 } 99 100 if ( wces_requirements_met() ) {101 // Include files.102 require_once plugin_dir_path( __FILE__ ) . '/includes/class-public.php';103 require_once plugin_dir_path( __FILE__ ) . '/includes/class-admin.php';104 } else {105 add_action( 'admin_notices', 'wces_requirements_error' );106 } -
woocommerce-es/trunk/readme.txt
r3181611 r3378025 1 === Spanish Market Enhancements for WooCommerce ===2 Contributors: close marketing, davidperez, sacrajaimez, yordansoares3 Tags: woocommerce, translation, spanish, es, es_ES, webshop, ecommerce, e-commerce, commerce, woothemes1 === Connect Ecommerce - Connect WooCommerce Shop to ERP/CRM and EU/VAT Compliance === 2 Contributors: closetechnology, closemarketing, davidperez, sacrajaimez 3 Tags: connect, integrate, eu vat, vat compliance, woocommerce, connect woocommerce 4 4 Donate link: https://close.marketing/go/donate/ 5 Requires at least: 3.0 6 WC requires at least: 4.0 7 WC tested up to: 9.3 8 Tested up to: 6.7 9 Stable tag: 2.1.2 10 Version: 2.1.2 11 12 Extends the WooCommerce plugin for Spanish needs: EU VAT included in form and order, terms and conditions, translations and optimization in checkout. 5 Requires at least: 5.0 6 Requires PHP: 7.4 7 Tested up to: 6.8 8 Stable tag: 3.2.0 9 Version: 3.2.0 10 License: GPL2 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 13 Add VAT Fields, Import European Taxes and check VAT compliance. Connect WooCommerce with ERPs and CRMs. Products, Clients and Orders with ERP/CRM. 13 14 14 15 == Description == 15 16 16 Functionalities: 17 * It adds VAT info in forms fields, Orders, and email notification. 18 * Remove shipping methods when free is possible. 19 * Adds Terms and conditions in registration page. 20 * It gives you the option to activate optimization in the checkout. It changes the Checkout for better conversion. 21 22 Furthermore, this plugin includes the Woocommerce Translation from some plugins that translate it. 23 * <strong>[WooCommerce Email Cart](https://close.marketing/go/email-cart/)</strong> Send Carts by Email to users 24 * <strong>WooCommerce Product Enquiry Form</strong> 25 * <strong>WooCommerce Shipping Table Rate</strong> 26 * <strong>[WooCommerce Brands](https://close.marketing/likes/wces-woocommerce-brands/)</strong> 27 * <strong>[WooCommerce SEPA Direct](https://close.marketing/likes/sepa/)</strong> Sell tickets in your WooCommerce store. 28 29 And you will find this plugins translated in premium version [WPSPA Translations](https://close.technology/wordpress-plugins/woocommerce-es-trans/): 30 - Cart to Quote for WooCommerce v1.0.13 (61%) 31 - Follow Up Emails v4.9.8 (54%) 32 - Fooevents Express checkin v1.12.3 (100%) 33 - Fooevents Tickets PDF v1.2.9 (100%) 34 - FS WooCommerce Wallet v2.6.5 (44%) 35 - Multi Order for WooCommerce PRO v (64%) 36 - Recover Abandoned Cart WooCommerce v22.6 (58%) 37 - Save & Share Cart for WooCommerce v2.0.5 (30%) 38 - WCMP WooCommerce PDF Invoices v4.9.2 (7%) 39 - WCMP WooCommerce Product Manager v3.1.5 (32%) 40 - WooCommerce Advanced Quantity v3.0.2 (100%) 41 - WooCommerce API Manager v2.3.5 (14%) 42 - WooCommerce Brands v1.6.21 (100%) 43 - WooCommerce Composite Products v7.1.2 (100%) 44 - WooCommerce Dynamic Pricing & Discounts v2.3 (78%) 45 - Fooevents v1.12.3 (32%) 46 - WooCommerce Force Sells v1.1.27 (93%) 47 - WooCommerce Google Product v9.3.2 (53%) 48 - WooCommerce Memberships v1.19.2 (100%) 49 - WooCommerce Min Max Quantities v2.4.20 (28%) 50 - WooCommerce Product Addons v3.1.0 (98%) 51 - WooCommerce Product Reviews PRO v1.16.2 (85%) 52 - WooCommerce Products Filter v2.2.4 (45%) 53 - WooCommerce Waitlist v2.2.2 (90%) 54 - WooCommerce Wishlists v2.2.2 (100%) 55 - WooCommerce Local PickUP Plus v2.9.2 (100%) 56 - WooTour v3.2.5 (100%) 57 - WooCommerce Deposits v1.5.2 (100%) 58 - WooCommerce One Page Checkout v1.7.8 (100%) 59 60 > This plugin requires the [WooCommerce plugin](http://wordpress.org/extend/plugins/woocommerce/) 17 **Functionalities** 18 19 - Add VAT info in forms fields, Orders, and email notification (Gutenberg compatible). 20 - EU/VAT Compliance: Import European Taxes and check VAT compliance. 21 - (optional) Connect your WooCommerce store to your ERP or CRM software. This plugin makes it easy to connect your store by synchronizing products, customers, and orders. 22 - Save hours of administrative work by eliminating the need to manually enter products, customers, and orders. 23 - You can now use AI to generate product marketing descriptions based on information from your ERP/CRM. 24 - There’s no need for additional plugins to request VAT numbers from companies — this plugin has it covered. 25 - This plugin is fully GDPR compliant. The synchronization between WooCommerce and your ERP/CRM is established through a direct connection, without intermediaries or third-party storage of personal data. This ensures maximum security and transparency, keeping customer information under your full control. 26 - This plugin also includes specific adjustments to comply with Verifactu regulations. Order and invoice data are processed and structured to meet the official requirements, ensuring your business adheres to current legal standards. 27 28 29 **EU/VAT Compliance: Import European Taxes and check VAT compliance.** 30 31 You can use this feature alone if you need it. You can import European Taxes and check VAT compliance. 32 33 **Connect your WooCommerce store to your ERP or CRM software.** 34 Connect your WooCommerce store to your ERP or CRM software. This plugin makes it easy to connect your store by synchronizing products, customers, and orders. 35 36 Save hours of administrative work by eliminating the need to manually enter products, customers, and orders. 37 38 You can now use AI to generate product marketing descriptions based on information from your ERP/CRM. 39 40 There’s no need for additional plugins to request VAT numbers from companies — this plugin has it covered. 41 42 **How does it work the synchronization?** 43 It synchronizes according to the natural workflow your business should have when connected to an online store. 44 45 Products: Imports products from your ERP/CRM with all the necessary sales information, supporting variable products. Keeps prices, stock, and product details up to date. 46 47 Orders and Customers: Once an order is placed, it is sent to the ERP/CRM. It creates a new customer or matches the existing one to the order in the ERP/CRM. Depending on the connector, you can choose the type of document to generate. 48 49 This plugin is fully GDPR compliant. The synchronization between WooCommerce and your ERP/CRM is established through a direct connection, without intermediaries or third-party storage of personal data. This ensures maximum security and transparency, keeping customer information under your full control. 50 51 This plugin also includes specific adjustments to comply with Verifactu regulations. Order and invoice data are processed and structured to meet the official requirements, ensuring your business adheres to current legal standards. 52 53 **Main Benefits** 54 - Imports simple, variable, and bundled products. 55 - Imports product attributes such as brand. 56 - Imports product categories. 57 - Automatically imports products. 58 - Sends orders immediately after they are placed, including historical orders. 59 - Sends invoices attached to the order email (Holded only). 60 - Allows you to choose the invoice design (Holded only). 61 - Uses AI to generate product marketing information. 62 - Adds the NIF/CIF field for proper invoicing. 63 - Complies with Verifactu and GDPR. 64 - For ERPs that support it, you can send the payment method. 65 66 This plugin serves as the foundation for various connectors. The free version supports: 67 - [Clientify](https://close.marketing/likes/clientify/) 68 69 **Merge variables** 70 You can use this section to merge variables from ERP to WooCommerce. That means that you can merge categories, attributes, products, custom fields, taxonomies, etc. 71 72 You will need to add Payment methods to merge variables to send the payment method to the ERP. 73 74 Premium connectors include: 75 - [Holded](https://close.technology/en/wordpress-plugins/connect-woocommerce-holded/) 76 - [Odoo](https://close.technology/en/wordpress-plugins/connect-woocommerce-odoo/) 77 - [NEO POS](https://close.technology/en/wordpress-plugins/connect-woocommerce-neo/) 78 - [Datisa](https://close.technology/en/wordpress-plugins/connect-woocommerce-datisa/) 79 80 Need another connector? We offer custom integration services. [Contact us](https://close.technology/en/contact/) 81 82 == Frequently Asked Questions == 83 84 = What does this plugin do? = 85 Connect Ecommerce allows you to import products from an ERP/CRM to your WooCommerce store via API. It also sends orders from the store to your ERP/CRM and creates associated customers. It also allows you to import European Taxes and check VAT compliance. 86 87 = How are products and orders synced? = 88 Products are synced from the ERP/CRM to WooCommerce because the ERP should always contain the most up-to-date business information. This ensures accurate management of products, prices, and other business data. 89 90 Orders are synced from WooCommerce to the ERP/CRM so that every time a customer places an order, it is sent to your ERP for proper order and invoice management. 91 92 = What happens when a product is out of stock? = 93 By default, the product disappears from the store catalog but remains visible to search engines. This is intentional and matches the expected store behavior. 94 95 = Does it comply with Verifactu? = 96 Yes, it does. It makes the order data more readable for Verifactu. 61 97 62 98 == Installation == 63 99 64 Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.65 100 - Go to Add Plugin, search for Connect Ecommerce, and Install it. Then Activate the plugin. You will need to have WooCommerce Installed. 101 - Go to WooCommerce > Connect Ecommerce for the configuration. 66 102 67 103 == Developers == 68 [GitHub](https://github.com/closemarketing/woocommerce-es) 69 70 == Changelog = 104 [Official Repository GitHub](https://github.com/closemarketing/woocommerce-es) 105 106 You can use WP CLI to import products from the command line. The command is: 107 ``` 108 wp conecom products --update --ai=none,new,all 109 ``` 110 111 == External services == 112 113 This plugin connects to an API to make AI SEO descriptions and product information. 114 115 It sends product data to the API, which then returns optimized SEO descriptions and enhanced product details. 116 117 Supported Services: 118 - OpenAI: [Terms of use](https://openai.com/policies/row-terms-of-use/) and [Privact policy](https://openai.com/policies/row-privacy-policy/) 119 - DeepSeek: [Terms of use](https://cdn.deepseek.com/policies/en-US/deepseek-terms-of-use.html) and [Privacy policy](https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html) 120 121 The core connector integrates with Clientify, a CRM and marketing automation tool. [Terms of use](https://clientify.com/aviso-legal/) and [privacy policy](https://clientify.com/politicas-de-privacidad). 122 123 == Changelog == 124 125 = 3.2.0 = 126 * Enhancement: Added support to update tax rates from EU database. 127 * Enhancement: Moved to a new plugin repository: https://wordpress.org/plugins/woocommerce-es/ 128 * Enhancement: Gutenberg support for VAT field in checkout. 129 130 = 3.1.6 = 131 * Enhancement: Added variation images to product gallery for APIs that allows images in variations. 132 * Enhancement: Added support to import variable products without SKU in parent. 133 * Fixed: error saving category separator. 134 * Enhancement: Added support to payment methods from API. 135 * Enhancement: Added support to smart doctype in Holded. 136 137 = 3.1.5 = 138 * Enhancement: Added support to merge categories from API to WooCommerce. 139 * Enhancement: More robust import products. Prevents missing variables from API. 140 * Enhancement: Added support to Odoo company field. 141 * Enhancement: Added support to clean special chars in order data (Verifactu). 142 * Enhancement: Added support to approve document for Verifactu in some ERPs. First version for Holded. 143 * Enhancement: Added support to VAT Number SIMBA Hosting plugin. 144 * Enhancement: added support to importing images in variations. 145 * Enhancement: Don't add image if already exists in WooCommerce. 146 * Enhancement: Added support to more SEO plugins. 147 * Enhancement: Added seo focus keyword to be generated by AI. 148 * Fixed: Solved static analysis errors. 149 * Fixed: error importing products without pricesale_discount. 150 * Fixed: error importing products with categories. 151 * Fixed: Better management for premium plugins addons license that complies with WordPress.org. 152 153 = 3.1.4 = 154 * Enhancement: Added tests for product simple and variable. 155 * Fixed: sync barcode in product variations. 156 * Fixed: sync categories criteria. 157 * Fixed: deprecation notice for WooCommerce. 158 159 = 3.1.3 = 160 * Enhancement: updated versions to PHP that are supported. 161 * Fixed: Fatal error in PHP 7.4. 162 163 = 3.1.2 = 164 * Fixed: Getting prices rates from variation products. 165 * Fixed: Zero stock in variation products was giving not manage stock. 166 * Fixed: Automated products sync not working properly. 167 168 = 3.1.1 = 169 * Added: Merge categories from API to WooCommerce. You select the equivalence in the settings. 170 * Fixed: Error in orphaned variations to prevent SKU errors. 171 * Fixed: Cron not running properly. 172 173 = 3.1.0 = 174 * Added: WP CLI command to import products. 175 * Fully support to import EAN to WooCommerce. 176 * Added: Import image products with different method. 177 * Added: Result API import in widget product. 178 * Added: Save parent SKU in product if does not exist. 179 * Added: Check if image product file exists before import. 180 * Fixed: AI connection not working in some cases. 181 * Fixed: Some errors getting products from shop to syncronize. 182 * Fixed: Not getting prices rates from API. 183 * Fixed: Prevent error when WooCommerce does not load the product. 184 185 = 3.0.1 = 186 * Minor fixes. 187 * Fixed: Some errors in Clientify connector. 188 * Fixed: Don't add shipping details if all products are virtual. 189 * Added support different Vat order variables: _billing_vat, _billing_vat_number, _billing_nif. 190 * Added suppport to [WC – APG Campo NIF/CIF/NIE](https://es.wordpress.org/plugins/wc-apg-nifcifnie-field/) 191 192 = 3.0.0 = 193 * Added AI Generate content for new products. 194 * Added: Import EAN new WooCommerce code. 195 * Added: Fix category separator. 196 * Added: Filter by Producto SKU. 197 * Added: Make downloable the invoice in My account. 198 * Added: Domain field. 199 * Added: Series number. 200 * Added: contact company. 201 * Added: Added order tags. 202 * Added: Company Field option. 203 * Added: Publish status in Merge Vars. 204 * Added: Split Categories in merge vars. 205 * Products widgets allow search product by SKU. 206 * Added: Sync with APIs with modified date. 207 * Added: Support to Paginated APIs. 208 * Added: Coupons sends to the API. 209 * Fixed: Taxes calculation in order. 210 * Added: Option to send orders to ERP when it's paid. 211 * Fixed: error calculating taxes from order products. 212 * Added: Option to log problems in WooCommerce logs. 213 * Fixed: error while updating order with shipping items. 214 * Fix: Required parameter $option_prefix follows optional. 215 * Minor fixes. 216 217 = 2.3.1 = 218 * Fixed: Added support to import billing vat from other plugins. 219 220 = 2.3.0 = 221 * Refactored for better internal structure. 222 * Added: Merge vars for product custom fields, taxonomies and product fields importer. 223 * Added: Import product from product view. 224 * Added: Send manually order to ERP. 225 * Added: Option to log problems in WooCommerce logs. 226 * Fixed: Orders with products without tax sending tax items. 227 * Fixed: Prevents fatal error in variations while have duplicated SKUs. 228 * Fixed: error while updating order with shipping items. 229 * Fixed: Required parameter $option_prefix follows optional. 230 * Minor fixes. 231 232 = 2.2.3 = 233 * Fixed: Prevents error while importing products with duplicated SKUs. 234 235 = 2.2.2 = 236 * Fixed: Error when variable product has no attributes. 237 * Fixed: error in variable products. 238 239 = 2.2.1 = 240 * Fixed: Shipping and Fee items not imported correctly. 241 242 = 2.2.0 = 243 * Added Series number. 244 * Column in orders for Holded document. 245 * Added widget in order to send to Holded or update to Holded. 246 * Added send order with items fee. 247 * Fixed: Error not sending order with free shipping item. 248 * Fixed: Dates with invoices depends if you force the order or create by completed order. 249 * Fixed: Calculation of taxes. 250 * Fixed: Country code sent to Holded. 251 * Fixed: Saves product options taxes. 252 71 253 = 2.1.2 = 72 * Tweak: Improve the NIF value retrieval. 254 * Fix: Prevents table sync not created. 255 * Fix: Some clients have less lenght in key products. 73 256 74 257 = 2.1.1 = 75 * Fix fatal error related with the VAT Number injection in PDF Invoices. Thanks to Yordan Soares and Alexandre. 258 * Fix: Blank filter not working. 259 * Fix: Error importing products in database. 76 260 77 261 = 2.1.0 = 78 * Updated list of premium plugins translated. 79 * Removed WooCommerce subscriptions Free. 80 * Removed Freemius. 81 82 = 2.0.2 = 83 * Fixes admin url for addons. 262 * New Admin design. 263 * Protected folder invoice. 264 * Order columns for API. 265 * Added option for Categories as attribute. 266 * Fix: error message order. 267 * Fix: Shipping order cost fixed not implemented in order. 268 * Fix: Fatal error no products in automation. 269 * Fix: Faster manual sync. 270 * Fix: Errors in PHP8. 271 * Premium Fix: Shipping order info updated. 272 * Premium Fix: Fix not importing variables products. 84 273 85 274 = 2.0.1 = 86 * Fixes bug. 275 * Fix: Filtered product if empty. 276 * Fix: Error rates empty. 87 277 88 278 = 2.0 = 89 * New version with Language Addons! 90 * New Settings Page. 91 * Remove free shipping. 92 * Adds Terms and conditions in registration page. 93 94 = 1.7 = 95 * Fixed error in email. 96 * Updated and tested versions. 97 98 = 1.6.1 = 99 * Tested versions and update readme. 100 101 = 1.6 = 102 * Fixed fatal error. 103 104 = 1.5 = 105 * Hide shipping rates when free shipping is available. 106 * Fixed for WooCommerce 3.5. 107 * Better management of checkout page. 108 * Added VAT Field in email WooCommerce notification. 279 * Removed Freemius as engine sell. 280 * Removed Support to Easy Digital Downloads. 281 * Add Tags as list (separated with commas). 282 * Add VAT Info in checkout. 283 * Option to Company field in checkout. 284 * Premium: Add PDF generated from Holded. 285 * Premium: Better sync management WooCommerce Action Scheduler. 286 * Premium: Refactoring code from free and fremium. 287 * Premium: Select design in document holded. 109 288 110 289 = 1.4 = 111 * Added option to remove company field. 112 * Added option to show/not show VAT Field. 290 * Option to not create document if order is free. 113 291 114 292 = 1.3 = 115 * Added translation for Woocommerce Memberships, Subscriptions, Events plugin and SEPA direct debit. 293 * Sync orders to Holded (Premium) automatically and force manually for past orders. 294 * Sync Pack products to Holded (Premium). 295 * Fix: Attributes duplicated in variation product not imported. 296 * Fix: Categories not imported in simple products. 116 297 117 298 = 1.2 = 118 * Adds an option in Woocommerce / General Options to Optimize the checkout for better conversion. 119 120 = 1.1 = 121 * Add an option in Woocommerce / General Options to make it mandatory VAT info field. 122 123 = 1.0 = 124 * Debugged methods and make new version. 125 126 = 0.3 = 127 * Require VAT in order in admin and frontend. 128 129 = 0.1 = 130 * Initial release 131 299 * Automate your syncronization! (Premium). 300 * Option email when is finished (Premium). 301 * Fix sku saved for EDD. 302 * Better metavalue search for SKU. 303 * Fix Holded Pagination (thanks to itSerra). 304 * Fix SKU variation (thanks to itSerra). 305 306 = Earlier versions = 307 308 For the changelog of earlier versions, please refer to the separate changelog.txt file. 132 309 133 310 == Links == 134 135 311 * [Closemarketing](https://close.marketing/) 136 * [Close·technology WordPress Plugins](https://close.technology/) 137 138 139 == Closemarketing plugins == 140 141 * [Send SMS to WordPress Users via Arsys](https://wordpress.org/plugins/send-sms-arsys/) 142 * [Clean HTML Code in the Editor](https://wordpress.org/plugins/clean-html/) 143 * [Gravity Forms Spanish](https://wordpress.org/plugins/gravityforms-es/) 144 * [Bootstrap ShortCodes for Content](https://wordpress.org/plugins/bootstrap-shortcodes-for-content/) 145 * [Event Espresso (Spanish)](https://wordpress.org/plugins/event-espresso-es/) 146 * [Debug MO Translations](https://wordpress.org/plugins/debug-mo-translations/) 147 * [Woocommerce ES](https://wordpress.org/plugins/woocommerce-es/) 312 * [Closemarketing plugins](https://profiles.wordpress.org/closemarketing/#content-plugins) -
woocommerce-es/trunk/woocommerce-es.php
r2980733 r3378025 1 1 <?php 2 /* 3 * Plugin Name: WPSPA Spanish Enhacements for WooCommerce 4 * Plugin URI: http://www.closemarketing.es/portafolio/plugin-woocommerce-espanol/ 5 * Description: Extends the WooCommerce plugin for Spanish needs: EU VAT included in form and order, and add-ons with the Spanish language. 2 /** 3 * Plugin Name: Connect and EU VAT Compliance for WooCommerce 4 * Plugin URI: https://close.technology/wordpress-plugins/connect-ecommerce/ 5 * Description: Connects Ecommerce WooCommerce to ERPs and CRMs. Syncs products, customers, orders and stock. Includes EU VAT Compliance. Import European Taxes and check VAT compliance. 6 * Author: Closetechnology 7 * Author URI: https://close.technology/ 8 * Version: 3.2.0 9 * Requires PHP: 7.4 10 * Requires at least: 6.3 11 * Text Domain: woocommerce-es 12 * Requires Plugins: woocommerce 13 * License: GPL-2.0+ 14 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 6 15 * 7 * Version: 2.1.2 8 * Requires at least: 5.0 16 * Prefix: conecom_ 9 17 * 10 * WC requires at least: 3.0 11 * WC tested up to: 4.1 18 * @package WordPress 19 */ 20 21 defined( 'ABSPATH' ) || exit; 22 23 define( 'CONECOM_VERSION', '3.2.0' ); 24 define( 'CONECOM_FILE', __FILE__ ); 25 define( 'CONECOM_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 26 define( 'CONECOM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 27 28 require_once CONECOM_PLUGIN_PATH . 'vendor/autoload.php'; 29 30 /** 31 * Gets the options for the plugin. 12 32 * 13 * Author: Closemarketing 14 * Author URI: http://www.closemarketing.net/ 15 * 16 * Text Domain: woocommerce-es 17 * Domain Path: /languages/ 18 * 19 * License: GNU General Public License v3.0 20 * License URI: http://www.gnu.org/licenses/gpl-3.0.html 21 */ 33 * @return array 34 */ 35 function conecom_get_options() { 36 /** 37 * Default values 38 */ 39 global $wpdb; 22 40 23 define( 'WCES_NAME', 'WPSPA Spanish Enhacements for WooCommerce' ); 24 define( 'WPSPA_VERSION', '2.1.2' ); 25 define( 'WCES_REQUIRED_PHP_VERSION', '5.4' ); 26 define( 'WCES_REQUIRED_WP_VERSION', '4.6' ); 27 define( 'WCES_REQUIRED_WC_VERSION', '2.6' ); 28 29 add_action( 'init', 'wces_update_options_settings' ); 30 /** 31 * Update process 32 * 33 * @return boolean 34 */ 35 function wces_update_options_settings() { 36 $old_version = get_option( 'wces_plugin_version', '1.7' ); 37 38 if ( ! ( version_compare( $old_version, WPSPA_VERSION ) < 0 ) ) { 39 return false; 40 } 41 $array_options = array( 42 'wces_vat_show' => 'vat_show', 43 'wces_vat_mandatory' => 'vat_mandatory', 44 'wces_opt_checkout' => 'opt_checkout', 45 'wces_company' => 'company_field', 41 return apply_filters( 42 'conecom_options_plugin', 43 array( 44 'clientify' => array( 45 'name' => 'Clientify', 46 'slug' => 'conecom-clientify', 47 'version' => CONECOM_VERSION, 48 'plugin_name' => 'Connect WooCommerce Clientify', 49 'plugin_slug' => 'connect-ecommerce-clientify', 50 'disable_modules' => array( 'subscription' ), 51 'api_url' => CONECOM_SHOP_URL, 52 'api_pagination' => 100, 53 'product_price_tax_option' => true, 54 'product_price_rate_option' => false, 55 'product_option_stock' => false, 56 'order_send_attachments' => true, 57 'order_sync_partial' => true, 58 'order_import_free_order' => true, 59 'order_only_order_completed' => 'completed', 60 'settings_logo' => CONECOM_PLUGIN_URL . 'includes/Connector/assets/logo.svg', 61 'settings_admin_message' => sprintf( 62 // translators: %s url of contact. 63 __( 'Put the connection API key settings in order to connect and sync products. You can go here <a href = "%s" target = "_blank">App Test API</a>.', 'woocommerce-es' ), 64 'https://app.test.com/api' 65 ), 66 'settings_special_tabs' => array(), 67 'settings_fields' => array( 'apipassword' ), 68 'table_sync' => $wpdb->prefix . 'sync_conecom-clientify', 69 'file' => __FILE__, 70 ), 71 ) 46 72 ); 47 foreach ( $array_options as $key => $new_key ) {48 $value_option = get_option( $key );49 if ( $value_option ) {50 $actual_options = get_option( 'wces_settings' );51 $actual_options[ $new_key ] = $value_option;52 delete_option( $key );53 update_option( 'wces_settings', $actual_options );54 }55 }56 update_option( 'wpspa_plugin_version', WPSPA_VERSION );57 73 } 58 74 75 add_action( 'init', 'conecom_loads' ); 59 76 /** 60 * C hecks if the system requirements are met77 * Connect WooCommerce loads. 61 78 * 62 * @return bool True if system requirements are met, false if not79 * @return void 63 80 */ 64 function wces_requirements_met() {65 global $wp_version;66 require_once ( ABSPATH . '/wp-admin/includes/plugin.php' ); // to get is_plugin_active() early81 function conecom_loads() { 82 require_once CONECOM_PLUGIN_PATH . 'includes/Plugin_Main.php'; 83 require_once CONECOM_PLUGIN_PATH . 'includes/Connector/class-api-clientify.php'; 67 84 68 if ( version_compare( PHP_VERSION, WCES_REQUIRED_PHP_VERSION, '<' ) ) { 69 return false; 85 $conecom_options = conecom_get_options(); 86 new CLOSE\ConnectEcommerce\Base( $conecom_options ); 87 } 88 89 if ( defined( 'WP_CLI' ) && WP_CLI ) { 90 require_once CONECOM_PLUGIN_PATH . 'includes/CLI/Import_Products_Command.php'; 91 92 /** 93 * Registers our command when cli get's initialized. 94 * 95 * @since 1.0.0 96 * @author David Perez 97 */ 98 function conecom_import_products_register_commands() { 99 WP_CLI::add_command( 'conecom', 'Import_Products_Command' ); 70 100 } 71 101 72 if ( version_compare( $wp_version, WCES_REQUIRED_WP_VERSION, '<' ) ) { 73 return false; 74 } 75 76 if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) { 77 return false; 78 } 79 80 $woocommer_data = get_plugin_data( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php', false, false ); 81 82 if ( version_compare( $woocommer_data['Version'], WCES_REQUIRED_WC_VERSION, '<' ) ) { 83 return false; 84 } 85 86 return true; 102 add_action( 'cli_init', 'conecom_import_products_register_commands', 20 ); 87 103 } 88 104 89 function wces_requirements_error () { 90 ?> 91 <div class="notice notice-success is-dismissible"> 92 <p> 93 <?php esc_html_e( 'You need to install WooCommerce in order to use the plugin:', 'woocommerce-es' ); ?> 94 <strong>WooCommerce Enhancements for Spanish Market</strong> 95 </p> 96 </div> 97 <?php 105 register_activation_hook( __FILE__, 'conecom_move_settings' ); 106 /** 107 * Move settings from old plugin to new plugin 108 * 109 * @return void 110 */ 111 function conecom_move_settings() { 112 CLOSE\ConnectEcommerce\Helpers\HELPER::move_settings(); 98 113 } 99 100 if ( wces_requirements_met() ) {101 // Include files.102 require_once plugin_dir_path( __FILE__ ) . '/includes/class-public.php';103 require_once plugin_dir_path( __FILE__ ) . '/includes/class-admin.php';104 } else {105 add_action( 'admin_notices', 'wces_requirements_error' );106 }
Note: See TracChangeset
for help on using the changeset viewer.