Changeset 2423594
- Timestamp:
- 11/23/2020 02:02:35 PM (5 years ago)
- Location:
- wpshop/trunk
- Files:
-
- 254 added
- 12 edited
-
core/asset/js/backend.min.js (modified) (1 diff)
-
modules/dolibarr/doli-products/class/class-doli-products.php (modified) (2 diffs)
-
modules/dolibarr/doli-sync/class/class-doli-sync.php (modified) (1 diff)
-
modules/dolibarr/doli-sync/filter/class-doli-sync-filter.php (modified) (1 diff)
-
modules/products/asset/js/product.backend.js (modified) (2 diffs)
-
modules/products/view/metabox/configuration.view.php (modified) (1 diff)
-
modules/settings/asset/js/settings.backend.js (modified) (1 diff)
-
modules/settings/class/class-settings.php (modified) (1 diff)
-
modules/stripe/class/class-stripe.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
vendor (added)
-
vendor/autoload.php (added)
-
vendor/bin (added)
-
vendor/bin/phpunit (added)
-
vendor/bin/phpunit.bat (added)
-
vendor/composer (added)
-
vendor/composer/ClassLoader.php (added)
-
vendor/composer/LICENSE (added)
-
vendor/composer/autoload_classmap.php (added)
-
vendor/composer/autoload_files.php (added)
-
vendor/composer/autoload_namespaces.php (added)
-
vendor/composer/autoload_psr4.php (added)
-
vendor/composer/autoload_real.php (added)
-
vendor/composer/autoload_static.php (added)
-
vendor/composer/installed.json (added)
-
vendor/composer/installers (added)
-
vendor/composer/installers/LICENSE (added)
-
vendor/composer/installers/composer.json (added)
-
vendor/composer/installers/src (added)
-
vendor/composer/installers/src/Composer (added)
-
vendor/composer/installers/src/Composer/Installers (added)
-
vendor/composer/installers/src/Composer/Installers/AglInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/BaseInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ChefInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php (added)
-
vendor/composer/installers/src/Composer/Installers/CraftInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ElggInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/FuelInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/GravInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/HuradInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/Installer.php (added)
-
vendor/composer/installers/src/Composer/Installers/ItopInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MakoInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MauticInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MayaInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ModxInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/OxidInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PPIInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/Plugin.php (added)
-
vendor/composer/installers/src/Composer/Installers/PortoInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/SMFInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php (added)
-
vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/TuskInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/YawikInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ZendInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php (added)
-
vendor/composer/installers/src/bootstrap.php (added)
-
vendor/stripe (added)
-
vendor/stripe/stripe-php (added)
-
vendor/stripe/stripe-php/.gitignore (added)
-
vendor/stripe/stripe-php/CHANGELOG.md (added)
-
vendor/stripe/stripe-php/LICENSE (added)
-
vendor/stripe/stripe-php/README.md (added)
-
vendor/stripe/stripe-php/VERSION (added)
-
vendor/stripe/stripe-php/build.php (added)
-
vendor/stripe/stripe-php/composer.json (added)
-
vendor/stripe/stripe-php/data (added)
-
vendor/stripe/stripe-php/data/ca-certificates.crt (added)
-
vendor/stripe/stripe-php/init.php (added)
-
vendor/stripe/stripe-php/lib (added)
-
vendor/stripe/stripe-php/lib/Account.php (added)
-
vendor/stripe/stripe-php/lib/AccountLink.php (added)
-
vendor/stripe/stripe-php/lib/AlipayAccount.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/All.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/Create.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/Delete.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/NestedResource.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/Request.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/Retrieve.php (added)
-
vendor/stripe/stripe-php/lib/ApiOperations/Update.php (added)
-
vendor/stripe/stripe-php/lib/ApiRequestor.php (added)
-
vendor/stripe/stripe-php/lib/ApiResource.php (added)
-
vendor/stripe/stripe-php/lib/ApiResponse.php (added)
-
vendor/stripe/stripe-php/lib/ApplePayDomain.php (added)
-
vendor/stripe/stripe-php/lib/ApplicationFee.php (added)
-
vendor/stripe/stripe-php/lib/ApplicationFeeRefund.php (added)
-
vendor/stripe/stripe-php/lib/Balance.php (added)
-
vendor/stripe/stripe-php/lib/BalanceTransaction.php (added)
-
vendor/stripe/stripe-php/lib/BankAccount.php (added)
-
vendor/stripe/stripe-php/lib/BitcoinReceiver.php (added)
-
vendor/stripe/stripe-php/lib/BitcoinTransaction.php (added)
-
vendor/stripe/stripe-php/lib/Card.php (added)
-
vendor/stripe/stripe-php/lib/Charge.php (added)
-
vendor/stripe/stripe-php/lib/Checkout (added)
-
vendor/stripe/stripe-php/lib/Checkout/Session.php (added)
-
vendor/stripe/stripe-php/lib/Collection.php (added)
-
vendor/stripe/stripe-php/lib/CountrySpec.php (added)
-
vendor/stripe/stripe-php/lib/Coupon.php (added)
-
vendor/stripe/stripe-php/lib/Customer.php (added)
-
vendor/stripe/stripe-php/lib/Discount.php (added)
-
vendor/stripe/stripe-php/lib/Dispute.php (added)
-
vendor/stripe/stripe-php/lib/EphemeralKey.php (added)
-
vendor/stripe/stripe-php/lib/Error (added)
-
vendor/stripe/stripe-php/lib/Error/Api.php (added)
-
vendor/stripe/stripe-php/lib/Error/ApiConnection.php (added)
-
vendor/stripe/stripe-php/lib/Error/Authentication.php (added)
-
vendor/stripe/stripe-php/lib/Error/Base.php (added)
-
vendor/stripe/stripe-php/lib/Error/Card.php (added)
-
vendor/stripe/stripe-php/lib/Error/Idempotency.php (added)
-
vendor/stripe/stripe-php/lib/Error/InvalidRequest.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/InvalidClient.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/InvalidGrant.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/InvalidRequest.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/InvalidScope.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/OAuthBase.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/UnsupportedGrantType.php (added)
-
vendor/stripe/stripe-php/lib/Error/OAuth/UnsupportedResponseType.php (added)
-
vendor/stripe/stripe-php/lib/Error/Permission.php (added)
-
vendor/stripe/stripe-php/lib/Error/RateLimit.php (added)
-
vendor/stripe/stripe-php/lib/Error/SignatureVerification.php (added)
-
vendor/stripe/stripe-php/lib/Event.php (added)
-
vendor/stripe/stripe-php/lib/ExchangeRate.php (added)
-
vendor/stripe/stripe-php/lib/File.php (added)
-
vendor/stripe/stripe-php/lib/FileLink.php (added)
-
vendor/stripe/stripe-php/lib/FileUpload.php (added)
-
vendor/stripe/stripe-php/lib/HttpClient (added)
-
vendor/stripe/stripe-php/lib/HttpClient/ClientInterface.php (added)
-
vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php (added)
-
vendor/stripe/stripe-php/lib/Invoice.php (added)
-
vendor/stripe/stripe-php/lib/InvoiceItem.php (added)
-
vendor/stripe/stripe-php/lib/InvoiceLineItem.php (added)
-
vendor/stripe/stripe-php/lib/IssuerFraudRecord.php (added)
-
vendor/stripe/stripe-php/lib/Issuing (added)
-
vendor/stripe/stripe-php/lib/Issuing/Authorization.php (added)
-
vendor/stripe/stripe-php/lib/Issuing/Card.php (added)
-
vendor/stripe/stripe-php/lib/Issuing/CardDetails.php (added)
-
vendor/stripe/stripe-php/lib/Issuing/Cardholder.php (added)
-
vendor/stripe/stripe-php/lib/Issuing/Dispute.php (added)
-
vendor/stripe/stripe-php/lib/Issuing/Transaction.php (added)
-
vendor/stripe/stripe-php/lib/LoginLink.php (added)
-
vendor/stripe/stripe-php/lib/OAuth.php (added)
-
vendor/stripe/stripe-php/lib/Order.php (added)
-
vendor/stripe/stripe-php/lib/OrderItem.php (added)
-
vendor/stripe/stripe-php/lib/OrderReturn.php (added)
-
vendor/stripe/stripe-php/lib/PaymentIntent.php (added)
-
vendor/stripe/stripe-php/lib/PaymentMethod.php (added)
-
vendor/stripe/stripe-php/lib/Payout.php (added)
-
vendor/stripe/stripe-php/lib/Person.php (added)
-
vendor/stripe/stripe-php/lib/Plan.php (added)
-
vendor/stripe/stripe-php/lib/Product.php (added)
-
vendor/stripe/stripe-php/lib/Radar (added)
-
vendor/stripe/stripe-php/lib/Radar/ValueList.php (added)
-
vendor/stripe/stripe-php/lib/Radar/ValueListItem.php (added)
-
vendor/stripe/stripe-php/lib/Recipient.php (added)
-
vendor/stripe/stripe-php/lib/RecipientTransfer.php (added)
-
vendor/stripe/stripe-php/lib/Refund.php (added)
-
vendor/stripe/stripe-php/lib/Reporting (added)
-
vendor/stripe/stripe-php/lib/Reporting/ReportRun.php (added)
-
vendor/stripe/stripe-php/lib/Reporting/ReportType.php (added)
-
vendor/stripe/stripe-php/lib/RequestTelemetry.php (added)
-
vendor/stripe/stripe-php/lib/Review.php (added)
-
vendor/stripe/stripe-php/lib/SKU.php (added)
-
vendor/stripe/stripe-php/lib/Sigma (added)
-
vendor/stripe/stripe-php/lib/Sigma/ScheduledQueryRun.php (added)
-
vendor/stripe/stripe-php/lib/SingletonApiResource.php (added)
-
vendor/stripe/stripe-php/lib/Source.php (added)
-
vendor/stripe/stripe-php/lib/SourceTransaction.php (added)
-
vendor/stripe/stripe-php/lib/Stripe.php (added)
-
vendor/stripe/stripe-php/lib/StripeObject.php (added)
-
vendor/stripe/stripe-php/lib/Subscription.php (added)
-
vendor/stripe/stripe-php/lib/SubscriptionItem.php (added)
-
vendor/stripe/stripe-php/lib/SubscriptionSchedule.php (added)
-
vendor/stripe/stripe-php/lib/SubscriptionScheduleRevision.php (added)
-
vendor/stripe/stripe-php/lib/Terminal (added)
-
vendor/stripe/stripe-php/lib/Terminal/ConnectionToken.php (added)
-
vendor/stripe/stripe-php/lib/Terminal/Location.php (added)
-
vendor/stripe/stripe-php/lib/Terminal/Reader.php (added)
-
vendor/stripe/stripe-php/lib/ThreeDSecure.php (added)
-
vendor/stripe/stripe-php/lib/Token.php (added)
-
vendor/stripe/stripe-php/lib/Topup.php (added)
-
vendor/stripe/stripe-php/lib/Transfer.php (added)
-
vendor/stripe/stripe-php/lib/TransferReversal.php (added)
-
vendor/stripe/stripe-php/lib/UsageRecord.php (added)
-
vendor/stripe/stripe-php/lib/UsageRecordSummary.php (added)
-
vendor/stripe/stripe-php/lib/Util (added)
-
vendor/stripe/stripe-php/lib/Util/AutoPagingIterator.php (added)
-
vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php (added)
-
vendor/stripe/stripe-php/lib/Util/DefaultLogger.php (added)
-
vendor/stripe/stripe-php/lib/Util/LoggerInterface.php (added)
-
vendor/stripe/stripe-php/lib/Util/RandomGenerator.php (added)
-
vendor/stripe/stripe-php/lib/Util/RequestOptions.php (added)
-
vendor/stripe/stripe-php/lib/Util/Set.php (added)
-
vendor/stripe/stripe-php/lib/Util/Util.php (added)
-
vendor/stripe/stripe-php/lib/Webhook.php (added)
-
vendor/stripe/stripe-php/lib/WebhookEndpoint.php (added)
-
vendor/stripe/stripe-php/lib/WebhookSignature.php (added)
-
vendor/stripe/stripe-php/update_certs.php (added)
-
wpshop.config.json (modified) (1 diff)
-
wpshop.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpshop/trunk/core/asset/js/backend.min.js
r2406792 r2423594 1 window.eoxiaJS.wpshop={},window.eoxiaJS.wpshopFrontend={},window.eoxiaJS.wpshop.init=function(){window.eoxiaJS.wpshop.event(),jQuery(".wps-sync").length&&jQuery(".wps-sync").each(function(){var e={action:"check_sync_status",wp_id:jQuery(this).find(".button-synchro").data("wp-id"),type:jQuery(this).find(".button-synchro").data("type")};window.eoxiaJS.loader.display(jQuery(this));var o=jQuery(this);jQuery.post(ajaxurl,e,function(e){window.eoxiaJS.loader.remove(o),o.replaceWith(e.data.view),e.data.status&&"0x1"==e.data.status.status_code&&jQuery('.table-row[data-id="'+e.data.id+'"] .reference-id li:last').remove()}).fail(function(){window.eoxiaJS.loader.remove(o),o.find(".statut").attr("aria-label","500 (Internal Server Error)"),o.find(".statut").addClass("statut-red")})});var e={action:"check_erp_statut",_wpnonce:scriptParams.check_erp_statut_nonce};jQuery.post(ajaxurl,e,function(e){!e.data.statut&&e.data.view&&jQuery("body").append(e.data.view)})},window.eoxiaJS.wpshop.event=function(){jQuery(document).on("click",".wpeo-notification .notification-close",window.eoxiaJS.wpshop.close)},window.eoxiaJS.wpshop.close=function(e){jQuery(this).closest(".wpeo-notification").fadeOut()},window.eoxiaJS.wpshop.API={},window.eoxiaJS.wpshop.API.init=function(){},window.eoxiaJS.wpshop.API.generatedAPIKey=function(e,o){e.closest(".wpshop-fields").replaceWith(o.data.view)},window.eoxiaJS.wpshop.thirdParties={},window.eoxiaJS.wpshop.thirdParties.init=function(){window.eoxiaJS.wpshop.thirdParties.event()},window.eoxiaJS.wpshop.thirdParties.event=function(){jQuery(document).on("click","#wps-third-party-contact .add-contact",window.eoxiaJS.wpshop.thirdParties.toggleContactFormNew),jQuery(document).on("click",".wpeo-autocomplete.search-contact .autocomplete-search-list .autocomplete-result",window.eoxiaJS.wpshop.thirdParties.putContactID)},window.eoxiaJS.wpshop.thirdParties.toggleContactFormNew=function(){jQuery("#wps-third-party-contact .row.new").toggle()},window.eoxiaJS.wpshop.thirdParties.putContactID=function(){jQuery(this).closest(".wpeo-autocomplete").find(".button-associate-contact").attr("data-contact-id",jQuery(this).data("id")),jQuery(this).closest(".wpeo-autocomplete").find("input#search-contact").val(jQuery(this).data("result"))},window.eoxiaJS.wpshop.thirdParties.loaddedTitleEdit=function(e,o){e.closest("h2").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.savedThird=function(e,o){e.closest("h2").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.loaddedBillingAddressSuccess=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.savedBillingAddressSuccess=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.loaddedContactSuccess=function(e,o){e.closest("tr").replaceWith(o.data.view)},window.eoxiaJS.wpshop.thirdParties.savedContact=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.associatedContactSuccess=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.tools={},window.eoxiaJS.wpshop.tools.init=function(){jQuery(document).on("click",".import-third-party .wpeo-button.button-primary",window.eoxiaJS.wpshop.tools.importThirdParty),jQuery(document).on("click",".import-product .wpeo-button.button-primary",window.eoxiaJS.wpshop.tools.importProduct)},window.eoxiaJS.wpshop.tools.importThirdParty=function(e){var o=new FormData;e.preventDefault(),o.append("file",jQuery(".import-third-party input[type=file]")[0].files[0]),o.append("action","import_third_party"),o.append("_wpnonce",jQuery(this).closest("form").find('input[name="_wpnonce"]').val()),o.append("index_element",0),window.eoxiaJS.wpshop.tools.requestImportThirdParty(o)},window.eoxiaJS.wpshop.tools.importProduct=function(e){var o=new FormData;e.preventDefault(),o.append("file",jQuery(".import-product input[type=file]")[0].files[0]),o.append("action","import_third_party"),o.append("_wpnonce",jQuery(this).closest("form").find('input[name="_wpnonce"]').val()),o.append("index_element",0),window.eoxiaJS.wpshop.tools.requestImportProduct(o)},window.eoxiaJS.wpshop.tools.requestImportThirdParty=function(e){jQuery.ajax({url:ajaxurl,data:e,processData:!1,contentType:!1,type:"POST",beforeSend:function(){window.eoxiaJS.loader.display(jQuery(".import-third-party .wpeo-button")),jQuery(".import-details").html("In progress")},success:function(e){var o=new FormData;e.success&&(jQuery(".import-third-party progress").attr("max",e.data.count_element),jQuery(".import-third-party progress").val(e.data.index_element/e.data.count_element*e.data.count_element),e.data.end?(jQuery(".import-detail").html("Importation terminé"),window.eoxiaJS.loader.remove(jQuery(".import-third-party .wpeo-button"))):(o.append("action","import_third_party"),o.append("_wpnonce",jQuery(".import-third-party").find('input[name="_wpnonce"]').val()),o.append("path_to_json",e.data.path_to_json),o.append("index_element",e.data.index_element),o.append("count_element",e.data.count_element),jQuery(".import-detail").html("Progress"),window.eoxiaJS.wpshop.tools.requestImport(o)))}})},window.eoxiaJS.wpshop.tools.requestImportProduct=function(e){jQuery.ajax({url:ajaxurl,data:e,processData:!1,contentType:!1,type:"POST",beforeSend:function(){window.eoxiaJS.loader.display(jQuery(".import-product .wpeo-button")),jQuery(".import-details").html("In progress")},success:function(e){var o=new FormData;e.success&&(jQuery(".import-product progress").attr("max",e.data.count_element),jQuery(".import-product progress").val(e.data.index_element/e.data.count_element*e.data.count_element),e.data.end?(jQuery(".import-detail").html("Importation terminé"),window.eoxiaJS.loader.remove(jQuery(".import-product .wpeo-button"))):(o.append("action","import_product"),o.append("_wpnonce",jQuery(".import-product").find('input[name="_wpnonce"]').val()),o.append("path_to_json",e.data.path_to_json),o.append("index_element",e.data.index_element),o.append("count_element",e.data.count_element),jQuery(".import-detail").html("Progress"),window.eoxiaJS.wpshop.tools.requestImportProduct(o)))}})},jQuery(function(e){var t,e=e("#wps_product_gallery.postbox"),o=e.find(".upload-custom-img"),i=e.find(".delete-custom-img"),a=e.find(".wps-product-gallery-container"),n=e.find(".wps-product-gallery-attachments-hidden-id");o.on("click",function(e){e.preventDefault(),t||(t=wp.media({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!0})).on("select",function(){for(var e=t.state().get("selection").map(function(e){return e.toJSON(),e}),o=0;o<e.length;++o)a.append('<div class="myplugin-image-preview"><img src="'+e[o].attributes.url+'" alt="" style="max-width:100%;"></div>'),n.after('<input type="hidden" name="myplugin_attachment_id_array[]" value="'+e[o].id+'" id="myplugin-image-input'+e[o].id+'">')}),t.open()}),i.on("click",function(e){e.preventDefault(),a.html(""),o.removeClass("hidden"),i.addClass("hidden"),n.val("")})}),window.eoxiaJS.wpshop.doliDocument={},window.eoxiaJS.wpshop.doliDocument.init=function(){},window.eoxiaJS.wpshop.product={},window.eoxiaJS.wpshop.product.init=function(){window.eoxiaJS.wpshop.product.event()},window.eoxiaJS.wpshop.product.event=function(){jQuery(document).on(" wps-change-toggle",".stock-field .toggle",window.eoxiaJS.wpshop.product.displayBlockStock),jQuery(document).on("click",'.wps-list-product .table-header input[type="checkbox"]',window.eoxiaJS.wpshop.product.checkAll),jQuery(document).on("click",".button-apply",window.eoxiaJS.wpshop.product.apply),jQuery(document).ready(window.eoxiaJS.wpshop.product.autoSynchro),jQuery(".similar-product").select2({ajax:{url:scriptParams.url+"/wp-json/wpshop/v2/product/search",data:function(e){return{s:e.term}},processResults:function(e){var o,t=[];for(o in e){var i={id:e[o].id,text:e[o].title};t.push(i)}return{results:t}},cache:!0},minimumInputLength:1})},window.eoxiaJS.wpshop.product.displayBlockStock=function(e,o){o?jQuery(".stock-block").fadeIn():jQuery(".stock-block").fadeOut()},window.eoxiaJS.wpshop.product.checkAll=function(){jQuery(this).is(":checked")?jQuery('.wps-list-product .table-row:not(.table-header) input[type="checkbox"]').attr("checked",!0):jQuery('.wps-list-product .table-row:not(.table-header) input[type="checkbox"]').attr("checked",!1)},window.eoxiaJS.wpshop.product.apply=function(){"quick-edit"===jQuery(".select-apply").val()&&jQuery(".wps-list-product .table-row:not(.table-header)").each(function(){jQuery(this).find('input[type="checkbox"]').is(":checked")&&jQuery(this).find('.action-attribute[data-action="change_mode"]').click()})},window.eoxiaJS.wpshop.product.autoSynchro=function(e){jQuery(this).find('.button-synchro[data-entry-id="1"]')},window.eoxiaJS.wpshop.product.changeMode=function(e,o){jQuery(e).closest("div.table-row").replaceWith(o.data.view)},window.eoxiaJS.wpshop.settings={},window.eoxiaJS.wpshop.settings.init=function(){window.eoxiaJS.wpshop.settings.event()},window.eoxiaJS.wpshop.settings.event=function(){jQuery(document).on("click",".wpeo-form.payment-method .bloc-activate .button-toggle",window.eoxiaJS.wpshop.settings.buttonToggle)},window.eoxiaJS.wpshop.settings.buttonToggle=function(e){console.log("test");var o="";jQuery(this).hasClass("fa-toggle-on")?(o="false",jQuery(this).removeClass("fa-toggle-on").addClass("fa-toggle-off")):(o="true",jQuery(this).removeClass("fa-toggle-off").addClass("fa-toggle-on")),jQuery(this).closest(".wpeo-form.payment-method").find(".activate").attr("value",o)},window.eoxiaJS.wpshop.settings.dismiss=function(e,o){jQuery(".notice-erp").fadeOut()},window.eoxiaJS.wpshop.doliAssociate={},window.eoxiaJS.wpshop.doliAssociate.init=function(){jQuery(document).on("keyup",".synchro-single .filter-entry",window.eoxiaJS.wpshop.doliAssociate.filter),jQuery(document).on("click",".synchro-single li",window.eoxiaJS.wpshop.doliAssociate.clickEntry)},window.eoxiaJS.wpshop.doliAssociate.filter=function(e){var o=jQuery(".synchro-single ul.select li");o.show();for(var t=jQuery(this).val().toLowerCase(),i=0;i<o.length;i++)-1==jQuery(o[i]).text().toLowerCase().indexOf(t)&&jQuery(o[i]).hide()},window.eoxiaJS.wpshop.doliAssociate.clickEntry=function(e){jQuery(".synchro-single li.active").removeClass("active"),jQuery(this).addClass("active"),jQuery('.synchro-single input[name="entry_id"]').val(jQuery(this).data("id"))},window.eoxiaJS.wpshop.doliAssociate.goSync=function(e){return jQuery(e).closest(".wpeo-modal").addClass("modal-force-display"),!0},window.eoxiaJS.wpshop.doliAssociate.openModalCompareSuccess=function(e,o){o.data.error?jQuery(".wpeo-modal.modal-active ul.select").css("border-color","red"):(jQuery(".wpeo-modal.modal-active .modal-content").html(o.data.view),jQuery(".wpeo-modal.modal-active .modal-footer").html(o.data.footer_view))},window.eoxiaJS.wpshop.doliAssociate.associatedEntrySuccess=function(e,o){jQuery(".wpeo-modal.modal-active .modal-content").html(o.data.view),jQuery(".wpeo-modal.modal-active .modal-footer").html(o.data.modal_footer),jQuery('.table-row[data-id="'+o.data.id+'"]').replaceWith(o.data.line_view)},window.eoxiaJS.wpshop.doliOrder={},window.eoxiaJS.wpshop.doliOrder.init=function(){},window.eoxiaJS.wpshop.doliOrder.markedAsDelivery=function(e,o){jQuery(".wps-shipment-tracking").replaceWith(o.data.view)},window.eoxiaJS.wpshop.doliSync={},window.eoxiaJS.wpshop.doliSync.completed=!1,window.eoxiaJS.wpshop.doliSync.init=function(){jQuery(document).on("modal-opened",".modal-sync",function(){0<jQuery(".waiting-item").length&&(window.eoxiaJS.wpshop.doliSync.declareUpdateForm(),window.eoxiaJS.wpshop.doliSync.requestUpdate(),window.addEventListener("beforeunload",window.eoxiaJS.wpshop.doliSync.safeExit))})},window.eoxiaJS.wpshop.doliSync.declareUpdateForm=function(){jQuery(".item").find("form").ajaxForm({dataType:"json",success:function(e,o,t,i){e.data.updateComplete?window.eoxiaJS.wpshop.doliSync.completed||(i.find(".item-stats").html(e.data.progression),i.find('input[name="done_number"]').val(e.data.doneElementNumber),i.find(".item-progression").css("width",e.data.progressionPerCent+"%"),e.data.done&&(i.closest(".item").removeClass("waiting-item"),i.closest(".item").removeClass("in-progress-item"),i.closest(".item").addClass("done-item"),i.find(".item-stats").html(e.data.doneDescription)),window.eoxiaJS.wpshop.doliSync.completed=!0,jQuery(".general-message").html(e.data.doneDescription),window.removeEventListener("beforeunload",window.eoxiaJS.wpshop.doliSync.safeExit),jQuery(".wpeo-modal.modal-active").removeClass("modal-force-display")):(i.find(".item-stats").html(e.data.progression),i.find('input[name="done_number"]').val(e.data.doneElementNumber),i.find(".item-progression").css("width",e.data.progressionPerCent+"%"),e.data.done&&(i.closest(".item").removeClass("waiting-item"),i.closest(".item").removeClass("in-progress-item"),i.closest(".item").addClass("done-item"),i.find(".item-stats").html(e.data.doneDescription))),window.eoxiaJS.wpshop.doliSync.requestUpdate()}})},window.eoxiaJS.wpshop.doliSync.requestUpdate=function(){var e;window.eoxiaJS.wpshop.doliSync.completed||(e="#"+jQuery(".waiting-item:first").attr("id"),jQuery(e).addClass("in-progress-item"),jQuery(e).find("form").submit())},window.eoxiaJS.wpshop.doliSync.safeExit=function(e){var o=taskManager.wpshopconfirmExit;if(taskManager.wpshopUrlPage===e.currentTarget.adminpage)return e.returnValue=o},window.eoxiaJS.wpshop.doliSync.syncEntrySuccess=function(e,o){var t=jQuery(".wpeo-modal.modal-active");0<t.length?(t.addClass("modal-force-display"),t.find(".modal-content").html(o.data.modal_view),t.find(".modal-footer").html(o.data.modal_footer)):0<jQuery(e).closest(".table-row").length&&jQuery(e).closest(".table-row").replaceWith(o.data.item_view)};1 window.eoxiaJS.wpshop={},window.eoxiaJS.wpshopFrontend={},window.eoxiaJS.wpshop.init=function(){window.eoxiaJS.wpshop.event(),jQuery(".wps-sync").length&&jQuery(".wps-sync").each(function(){var e={action:"check_sync_status",wp_id:jQuery(this).find(".button-synchro").data("wp-id"),type:jQuery(this).find(".button-synchro").data("type")};window.eoxiaJS.loader.display(jQuery(this));var o=jQuery(this);jQuery.post(ajaxurl,e,function(e){window.eoxiaJS.loader.remove(o),o.replaceWith(e.data.view),e.data.status&&"0x1"==e.data.status.status_code&&jQuery('.table-row[data-id="'+e.data.id+'"] .reference-id li:last').remove()}).fail(function(){window.eoxiaJS.loader.remove(o),o.find(".statut").attr("aria-label","500 (Internal Server Error)"),o.find(".statut").addClass("statut-red")})});var e={action:"check_erp_statut",_wpnonce:scriptParams.check_erp_statut_nonce};jQuery.post(ajaxurl,e,function(e){!e.data.statut&&e.data.view&&jQuery("body").append(e.data.view)})},window.eoxiaJS.wpshop.event=function(){jQuery(document).on("click",".wpeo-notification .notification-close",window.eoxiaJS.wpshop.close)},window.eoxiaJS.wpshop.close=function(e){jQuery(this).closest(".wpeo-notification").fadeOut()},window.eoxiaJS.wpshop.API={},window.eoxiaJS.wpshop.API.init=function(){},window.eoxiaJS.wpshop.API.generatedAPIKey=function(e,o){e.closest(".wpshop-fields").replaceWith(o.data.view)},window.eoxiaJS.wpshop.thirdParties={},window.eoxiaJS.wpshop.thirdParties.init=function(){window.eoxiaJS.wpshop.thirdParties.event()},window.eoxiaJS.wpshop.thirdParties.event=function(){jQuery(document).on("click","#wps-third-party-contact .add-contact",window.eoxiaJS.wpshop.thirdParties.toggleContactFormNew),jQuery(document).on("click",".wpeo-autocomplete.search-contact .autocomplete-search-list .autocomplete-result",window.eoxiaJS.wpshop.thirdParties.putContactID)},window.eoxiaJS.wpshop.thirdParties.toggleContactFormNew=function(){jQuery("#wps-third-party-contact .row.new").toggle()},window.eoxiaJS.wpshop.thirdParties.putContactID=function(){jQuery(this).closest(".wpeo-autocomplete").find(".button-associate-contact").attr("data-contact-id",jQuery(this).data("id")),jQuery(this).closest(".wpeo-autocomplete").find("input#search-contact").val(jQuery(this).data("result"))},window.eoxiaJS.wpshop.thirdParties.loaddedTitleEdit=function(e,o){e.closest("h2").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.savedThird=function(e,o){e.closest("h2").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.loaddedBillingAddressSuccess=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.savedBillingAddressSuccess=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.loaddedContactSuccess=function(e,o){e.closest("tr").replaceWith(o.data.view)},window.eoxiaJS.wpshop.thirdParties.savedContact=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.thirdParties.associatedContactSuccess=function(e,o){e.closest(".inside").html(o.data.view)},window.eoxiaJS.wpshop.tools={},window.eoxiaJS.wpshop.tools.init=function(){jQuery(document).on("click",".import-third-party .wpeo-button.button-primary",window.eoxiaJS.wpshop.tools.importThirdParty),jQuery(document).on("click",".import-product .wpeo-button.button-primary",window.eoxiaJS.wpshop.tools.importProduct)},window.eoxiaJS.wpshop.tools.importThirdParty=function(e){var o=new FormData;e.preventDefault(),o.append("file",jQuery(".import-third-party input[type=file]")[0].files[0]),o.append("action","import_third_party"),o.append("_wpnonce",jQuery(this).closest("form").find('input[name="_wpnonce"]').val()),o.append("index_element",0),window.eoxiaJS.wpshop.tools.requestImportThirdParty(o)},window.eoxiaJS.wpshop.tools.importProduct=function(e){var o=new FormData;e.preventDefault(),o.append("file",jQuery(".import-product input[type=file]")[0].files[0]),o.append("action","import_third_party"),o.append("_wpnonce",jQuery(this).closest("form").find('input[name="_wpnonce"]').val()),o.append("index_element",0),window.eoxiaJS.wpshop.tools.requestImportProduct(o)},window.eoxiaJS.wpshop.tools.requestImportThirdParty=function(e){jQuery.ajax({url:ajaxurl,data:e,processData:!1,contentType:!1,type:"POST",beforeSend:function(){window.eoxiaJS.loader.display(jQuery(".import-third-party .wpeo-button")),jQuery(".import-details").html("In progress")},success:function(e){var o=new FormData;e.success&&(jQuery(".import-third-party progress").attr("max",e.data.count_element),jQuery(".import-third-party progress").val(e.data.index_element/e.data.count_element*e.data.count_element),e.data.end?(jQuery(".import-detail").html("Importation terminé"),window.eoxiaJS.loader.remove(jQuery(".import-third-party .wpeo-button"))):(o.append("action","import_third_party"),o.append("_wpnonce",jQuery(".import-third-party").find('input[name="_wpnonce"]').val()),o.append("path_to_json",e.data.path_to_json),o.append("index_element",e.data.index_element),o.append("count_element",e.data.count_element),jQuery(".import-detail").html("Progress"),window.eoxiaJS.wpshop.tools.requestImport(o)))}})},window.eoxiaJS.wpshop.tools.requestImportProduct=function(e){jQuery.ajax({url:ajaxurl,data:e,processData:!1,contentType:!1,type:"POST",beforeSend:function(){window.eoxiaJS.loader.display(jQuery(".import-product .wpeo-button")),jQuery(".import-details").html("In progress")},success:function(e){var o=new FormData;e.success&&(jQuery(".import-product progress").attr("max",e.data.count_element),jQuery(".import-product progress").val(e.data.index_element/e.data.count_element*e.data.count_element),e.data.end?(jQuery(".import-detail").html("Importation terminé"),window.eoxiaJS.loader.remove(jQuery(".import-product .wpeo-button"))):(o.append("action","import_product"),o.append("_wpnonce",jQuery(".import-product").find('input[name="_wpnonce"]').val()),o.append("path_to_json",e.data.path_to_json),o.append("index_element",e.data.index_element),o.append("count_element",e.data.count_element),jQuery(".import-detail").html("Progress"),window.eoxiaJS.wpshop.tools.requestImportProduct(o)))}})},jQuery(function(e){var t,e=e("#wps_product_gallery.postbox"),o=e.find(".upload-custom-img"),i=e.find(".delete-custom-img"),a=e.find(".wps-product-gallery-container"),n=e.find(".wps-product-gallery-attachments-hidden-id");o.on("click",function(e){e.preventDefault(),t||(t=wp.media({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!0})).on("select",function(){for(var e=t.state().get("selection").map(function(e){return e.toJSON(),e}),o=0;o<e.length;++o)a.append('<div class="myplugin-image-preview"><img src="'+e[o].attributes.url+'" alt="" style="max-width:100%;"></div>'),n.after('<input type="hidden" name="myplugin_attachment_id_array[]" value="'+e[o].id+'" id="myplugin-image-input'+e[o].id+'">')}),t.open()}),i.on("click",function(e){e.preventDefault(),a.html(""),o.removeClass("hidden"),i.addClass("hidden"),n.val("")})}),window.eoxiaJS.wpshop.doliDocument={},window.eoxiaJS.wpshop.doliDocument.init=function(){},window.eoxiaJS.wpshop.product={},window.eoxiaJS.wpshop.product.init=function(){window.eoxiaJS.wpshop.product.event()},window.eoxiaJS.wpshop.product.event=function(){jQuery(document).on("click",".stock-field .toggle",window.eoxiaJS.wpshop.product.displayBlockStock),jQuery(document).on("click",'.wps-list-product .table-header input[type="checkbox"]',window.eoxiaJS.wpshop.product.checkAll),jQuery(document).on("click",".button-apply",window.eoxiaJS.wpshop.product.apply),jQuery(document).ready(window.eoxiaJS.wpshop.product.autoSynchro),jQuery(".similar-product").select2({ajax:{url:scriptParams.url+"/wp-json/wpshop/v2/product/search",data:function(e){return{s:e.term}},processResults:function(e){var o,t=[];for(o in e){var i={id:e[o].id,text:e[o].title};t.push(i)}return{results:t}},cache:!0},minimumInputLength:1})},window.eoxiaJS.wpshop.product.displayBlockStock=function(){var e="";jQuery(this).hasClass("fa-toggle-on")?(e="false",jQuery(this).removeClass("fa-toggle-on").addClass("fa-toggle-off"),jQuery(".stock-block").fadeOut()):(e="true",jQuery(this).removeClass("fa-toggle-off").addClass("fa-toggle-on"),jQuery(".stock-block").fadeIn()),jQuery(this).closest(".wpeo-form").find(".manage_stock").attr("value",e)},window.eoxiaJS.wpshop.product.checkAll=function(){jQuery(this).is(":checked")?jQuery('.wps-list-product .table-row:not(.table-header) input[type="checkbox"]').attr("checked",!0):jQuery('.wps-list-product .table-row:not(.table-header) input[type="checkbox"]').attr("checked",!1)},window.eoxiaJS.wpshop.product.apply=function(){"quick-edit"===jQuery(".select-apply").val()&&jQuery(".wps-list-product .table-row:not(.table-header)").each(function(){jQuery(this).find('input[type="checkbox"]').is(":checked")&&jQuery(this).find('.action-attribute[data-action="change_mode"]').click()})},window.eoxiaJS.wpshop.product.autoSynchro=function(e){jQuery(this).find('.button-synchro[data-entry-id="1"]')},window.eoxiaJS.wpshop.product.changeMode=function(e,o){jQuery(e).closest("div.table-row").replaceWith(o.data.view)},window.eoxiaJS.wpshop.settings={},window.eoxiaJS.wpshop.settings.init=function(){window.eoxiaJS.wpshop.settings.event()},window.eoxiaJS.wpshop.settings.event=function(){jQuery(document).on("click",".wpeo-form.payment-method .bloc-activate .button-toggle",window.eoxiaJS.wpshop.settings.buttonToggle)},window.eoxiaJS.wpshop.settings.buttonToggle=function(e){var o="";jQuery(this).hasClass("fa-toggle-on")?(o="false",jQuery(this).removeClass("fa-toggle-on").addClass("fa-toggle-off")):(o="true",jQuery(this).removeClass("fa-toggle-off").addClass("fa-toggle-on")),jQuery(this).closest(".wpeo-form.payment-method").find(".activate").attr("value",o)},window.eoxiaJS.wpshop.settings.dismiss=function(e,o){jQuery(".notice-erp").fadeOut()},window.eoxiaJS.wpshop.doliAssociate={},window.eoxiaJS.wpshop.doliAssociate.init=function(){jQuery(document).on("keyup",".synchro-single .filter-entry",window.eoxiaJS.wpshop.doliAssociate.filter),jQuery(document).on("click",".synchro-single li",window.eoxiaJS.wpshop.doliAssociate.clickEntry)},window.eoxiaJS.wpshop.doliAssociate.filter=function(e){var o=jQuery(".synchro-single ul.select li");o.show();for(var t=jQuery(this).val().toLowerCase(),i=0;i<o.length;i++)-1==jQuery(o[i]).text().toLowerCase().indexOf(t)&&jQuery(o[i]).hide()},window.eoxiaJS.wpshop.doliAssociate.clickEntry=function(e){jQuery(".synchro-single li.active").removeClass("active"),jQuery(this).addClass("active"),jQuery('.synchro-single input[name="entry_id"]').val(jQuery(this).data("id"))},window.eoxiaJS.wpshop.doliAssociate.goSync=function(e){return jQuery(e).closest(".wpeo-modal").addClass("modal-force-display"),!0},window.eoxiaJS.wpshop.doliAssociate.openModalCompareSuccess=function(e,o){o.data.error?jQuery(".wpeo-modal.modal-active ul.select").css("border-color","red"):(jQuery(".wpeo-modal.modal-active .modal-content").html(o.data.view),jQuery(".wpeo-modal.modal-active .modal-footer").html(o.data.footer_view))},window.eoxiaJS.wpshop.doliAssociate.associatedEntrySuccess=function(e,o){jQuery(".wpeo-modal.modal-active .modal-content").html(o.data.view),jQuery(".wpeo-modal.modal-active .modal-footer").html(o.data.modal_footer),jQuery('.table-row[data-id="'+o.data.id+'"]').replaceWith(o.data.line_view)},window.eoxiaJS.wpshop.doliOrder={},window.eoxiaJS.wpshop.doliOrder.init=function(){},window.eoxiaJS.wpshop.doliOrder.markedAsDelivery=function(e,o){jQuery(".wps-shipment-tracking").replaceWith(o.data.view)},window.eoxiaJS.wpshop.doliSync={},window.eoxiaJS.wpshop.doliSync.completed=!1,window.eoxiaJS.wpshop.doliSync.init=function(){jQuery(document).on("modal-opened",".modal-sync",function(){0<jQuery(".waiting-item").length&&(window.eoxiaJS.wpshop.doliSync.declareUpdateForm(),window.eoxiaJS.wpshop.doliSync.requestUpdate(),window.addEventListener("beforeunload",window.eoxiaJS.wpshop.doliSync.safeExit))})},window.eoxiaJS.wpshop.doliSync.declareUpdateForm=function(){jQuery(".item").find("form").ajaxForm({dataType:"json",success:function(e,o,t,i){e.data.updateComplete?window.eoxiaJS.wpshop.doliSync.completed||(i.find(".item-stats").html(e.data.progression),i.find('input[name="done_number"]').val(e.data.doneElementNumber),i.find(".item-progression").css("width",e.data.progressionPerCent+"%"),e.data.done&&(i.closest(".item").removeClass("waiting-item"),i.closest(".item").removeClass("in-progress-item"),i.closest(".item").addClass("done-item"),i.find(".item-stats").html(e.data.doneDescription)),window.eoxiaJS.wpshop.doliSync.completed=!0,jQuery(".general-message").html(e.data.doneDescription),window.removeEventListener("beforeunload",window.eoxiaJS.wpshop.doliSync.safeExit),jQuery(".wpeo-modal.modal-active").removeClass("modal-force-display")):(i.find(".item-stats").html(e.data.progression),i.find('input[name="done_number"]').val(e.data.doneElementNumber),i.find(".item-progression").css("width",e.data.progressionPerCent+"%"),e.data.done&&(i.closest(".item").removeClass("waiting-item"),i.closest(".item").removeClass("in-progress-item"),i.closest(".item").addClass("done-item"),i.find(".item-stats").html(e.data.doneDescription))),window.eoxiaJS.wpshop.doliSync.requestUpdate()}})},window.eoxiaJS.wpshop.doliSync.requestUpdate=function(){var e;window.eoxiaJS.wpshop.doliSync.completed||(e="#"+jQuery(".waiting-item:first").attr("id"),jQuery(e).addClass("in-progress-item"),jQuery(e).find("form").submit())},window.eoxiaJS.wpshop.doliSync.safeExit=function(e){var o=taskManager.wpshopconfirmExit;if(taskManager.wpshopUrlPage===e.currentTarget.adminpage)return e.returnValue=o},window.eoxiaJS.wpshop.doliSync.syncEntrySuccess=function(e,o){var t=jQuery(".wpeo-modal.modal-active");0<t.length?(t.addClass("modal-force-display"),t.find(".modal-content").html(o.data.modal_view),t.find(".modal-footer").html(o.data.modal_footer)):0<jQuery(e).closest(".table-row").length&&jQuery(e).closest(".table-row").replaceWith(o.data.item_view)}; -
wpshop/trunk/modules/dolibarr/doli-products/class/class-doli-products.php
r2389544 r2423594 57 57 $wp_product->data['tva_amount'] = $doli_product->price_ttc - $doli_product->price; 58 58 $wp_product->data['tva_tx'] = $doli_product->tva_tx; 59 $wp_product->data['stock'] = (int) $doli_product->stock_reel; 59 60 $wp_product->data['barcode'] = $doli_product->barcode; 60 61 $wp_product->data['fk_product_type'] = (int) $doli_product->type; // Product 0 or Service 1. … … 73 74 $data_sha['price_ttc'] = $doli_product->price_ttc; 74 75 $data_sha['tva_tx'] = $doli_product->tva_tx; 76 $data_sha['stock'] = $doli_product->stock_reel; 75 77 $data_sha['status'] = $wp_product->data['status']; 76 78 -
wpshop/trunk/modules/dolibarr/doli-sync/class/class-doli-sync.php
r2418126 r2423594 281 281 //Start 282 282 echo '<pre>'; 283 print_r( 266);283 print_r('L266' ); 284 284 print_r($response); 285 print_r('check dolibarr ');286 print_r( 4);285 print_r('check dolibarr sync'); 286 print_r('4'); 287 287 echo '</pre>'; 288 288 //exit; -
wpshop/trunk/modules/dolibarr/doli-sync/filter/class-doli-sync-filter.php
r2392468 r2423594 97 97 $data_sha['price_ttc'] = $response->price_ttc; 98 98 $data_sha['tva_tx'] = $response->tva_tx; 99 $data_sha['stock'] = $response->stock_reel; 99 100 $data_sha['status'] = $response->array_options->options__wps_status; 100 101 -
wpshop/trunk/modules/products/asset/js/product.backend.js
r2389544 r2423594 24 24 */ 25 25 window.eoxiaJS.wpshop.product.event = function() { 26 jQuery( document ).on( ' wps-change-toggle', '.stock-field .toggle', window.eoxiaJS.wpshop.product.displayBlockStock );26 jQuery( document ).on( 'click', '.stock-field .toggle', window.eoxiaJS.wpshop.product.displayBlockStock ); 27 27 jQuery( document ).on( 'click', '.wps-list-product .table-header input[type="checkbox"]', window.eoxiaJS.wpshop.product.checkAll ); 28 28 jQuery( document ).on( 'click', '.button-apply', window.eoxiaJS.wpshop.product.apply ); … … 70 70 * @param {toggleState} L'état du toggle. 71 71 */ 72 window.eoxiaJS.wpshop.product.displayBlockStock = function( event, toggleState ) { 73 if ( toggleState ) { 72 window.eoxiaJS.wpshop.product.displayBlockStock = function() { 73 var toggleON = jQuery( this ).hasClass( 'fa-toggle-on' ); 74 var nextStep = ''; 75 if ( toggleON ) { 76 nextStep = 'false'; 77 jQuery( this ).removeClass( "fa-toggle-on" ).addClass( "fa-toggle-off" ); 78 jQuery( '.stock-block' ).fadeOut(); 79 } else { 80 nextStep = 'true'; 81 jQuery( this ).removeClass( "fa-toggle-off" ).addClass( "fa-toggle-on" ); 74 82 jQuery( '.stock-block' ).fadeIn(); 75 } else {76 jQuery( '.stock-block' ).fadeOut();77 83 } 84 jQuery( this ).closest( '.wpeo-form' ).find( '.manage_stock' ).attr( 'value' , nextStep ); 78 85 }; 79 86 -
wpshop/trunk/modules/products/view/metabox/configuration.view.php
r2406792 r2423594 41 41 <span class="form-label"><?php esc_html_e( 'Stock', 'wpshop' ); ?></span> 42 42 <label class="form-field-container"> 43 <input type="text" class="form-field" name="product_data[stock]" value="<?php echo esc_attr( $product->data['stock'] ); ?>" />43 <input type="text" class="form-field" name="product_data[stock]" value="<?php echo esc_attr( $product->data['stock'] ); ?>" readonly/> 44 44 </label> 45 45 </div> -
wpshop/trunk/modules/settings/asset/js/settings.backend.js
r2406792 r2423594 32 32 */ 33 33 window.eoxiaJS.wpshop.settings.buttonToggle = function( event ) { 34 console.log( 'test');35 34 var toggleON = jQuery( this ).hasClass( 'fa-toggle-on' ); 36 35 var nextStep = ''; -
wpshop/trunk/modules/settings/class/class-settings.php
r2418126 r2423594 122 122 public function display_general( $section = '' ) { 123 123 $dolibarr_option = get_option( 'wps_dolibarr', $this->default_settings ); 124 $debug_mode = get_option( 'debug_mode', $this->default_settings );124 $debug_mode = get_option( 'debug_mode', $this->default_settings['debug_mode'] ); 125 125 126 126 View_Util::exec( 'wpshop', 'settings', 'general', array( -
wpshop/trunk/modules/stripe/class/class-stripe.php
r2389544 r2423594 13 13 14 14 use eoxia\Singleton_Util; 15 use Stripe\Checkout\Session;16 15 17 16 defined( 'ABSPATH' ) || exit; … … 52 51 ); 53 52 54 $session = S ession::create( array(53 $session = Stripe\Checkout\Session::create( array( 55 54 'success_url' => Pages::g()->get_checkout_link() . '/received/order/' . $order->data['external_id'], 56 55 'cancel_url' => site_url(), -
wpshop/trunk/readme.txt
r2418126 r2423594 6 6 Tested up to: 5.5.3 7 7 Requires PHP: 7.0 8 Stable tag: 2.3. 18 Stable tag: 2.3.2 9 9 License: GPLv3 or later 10 10 License URI: https://spdx.org/licenses/GPL-3.0-or-later.html … … 30 30 == Installation == 31 31 32 Consultez notre [documentation en ligne](http://www.wpshop.fr/documentation s/presentation-wpshop"documentation wpshop").32 Consultez notre [documentation en ligne](http://www.wpshop.fr/documentation/ "documentation wpshop"). 33 33 L'installation du plugin peut se faire de 2 façons : 34 34 … … 65 65 66 66 == Changelog == 67 68 = Version 2.3.2 = 69 70 * Add - Add stock to product synchronisation. 71 72 * Fix - Stripe API request error. 73 * Fix - Media. 67 74 68 75 = Version 2.3.1 = -
wpshop/trunk/wpshop.config.json
r2418126 r2423594 3 3 "slug": "wpshop", 4 4 "since": "2.0.0", 5 "version": "2.3. 1",5 "version": "2.3.2", 6 6 "description": "L'application WPshop 2", 7 7 "externals": [], -
wpshop/trunk/wpshop.php
r2418126 r2423594 4 4 * Plugin URI: https://wpshop.fr/ 5 5 * Description: Simple, fast, efficient it will transform your WordPress into an internet sales site 6 * Version: 2.3. 16 * Version: 2.3.2 7 7 * Author: Eoxia <[email protected]> 8 8 * Author URI: http://www.eoxia.com/ … … 31 31 32 32 // Include composer component. 33 //require_once 'vendor/autoload.php';33 require_once 'vendor/autoload.php'; 34 34 35 35 // Boot your plugin.
Note: See TracChangeset
for help on using the changeset viewer.