Changeset 3062775
- Timestamp:
- 04/02/2024 03:26:05 PM (22 months ago)
- Location:
- woocommerce-product-payments
- Files:
-
- 309 added
- 2 edited
-
tags/3.3.1 (added)
-
tags/3.3.1/css (added)
-
tags/3.3.1/css/addons-style.min.css (added)
-
tags/3.3.1/css/addons.css (added)
-
tags/3.3.1/css/style.css (added)
-
tags/3.3.1/freemius (added)
-
tags/3.3.1/freemius/LICENSE.txt (added)
-
tags/3.3.1/freemius/assets (added)
-
tags/3.3.1/freemius/assets/css (added)
-
tags/3.3.1/freemius/assets/css/admin (added)
-
tags/3.3.1/freemius/assets/css/admin/account.css (added)
-
tags/3.3.1/freemius/assets/css/admin/add-ons.css (added)
-
tags/3.3.1/freemius/assets/css/admin/affiliation.css (added)
-
tags/3.3.1/freemius/assets/css/admin/checkout.css (added)
-
tags/3.3.1/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/3.3.1/freemius/assets/css/admin/common.css (added)
-
tags/3.3.1/freemius/assets/css/admin/connect.css (added)
-
tags/3.3.1/freemius/assets/css/admin/debug.css (added)
-
tags/3.3.1/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/3.3.1/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/3.3.1/freemius/assets/css/admin/index.php (added)
-
tags/3.3.1/freemius/assets/css/admin/optout.css (added)
-
tags/3.3.1/freemius/assets/css/admin/plugins.css (added)
-
tags/3.3.1/freemius/assets/css/customizer.css (added)
-
tags/3.3.1/freemius/assets/css/index.php (added)
-
tags/3.3.1/freemius/assets/img (added)
-
tags/3.3.1/freemius/assets/img/dfm-payment-gateway-per-product-for-woocommerce.png (added)
-
tags/3.3.1/freemius/assets/img/index.php (added)
-
tags/3.3.1/freemius/assets/img/plugin-icon.png (added)
-
tags/3.3.1/freemius/assets/img/theme-icon.png (added)
-
tags/3.3.1/freemius/assets/index.php (added)
-
tags/3.3.1/freemius/assets/js (added)
-
tags/3.3.1/freemius/assets/js/index.php (added)
-
tags/3.3.1/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/3.3.1/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/3.3.1/freemius/assets/js/postmessage.js (added)
-
tags/3.3.1/freemius/config.php (added)
-
tags/3.3.1/freemius/includes (added)
-
tags/3.3.1/freemius/includes/class-freemius-abstract.php (added)
-
tags/3.3.1/freemius/includes/class-freemius.php (added)
-
tags/3.3.1/freemius/includes/class-fs-admin-notices.php (added)
-
tags/3.3.1/freemius/includes/class-fs-api.php (added)
-
tags/3.3.1/freemius/includes/class-fs-garbage-collector.php (added)
-
tags/3.3.1/freemius/includes/class-fs-lock.php (added)
-
tags/3.3.1/freemius/includes/class-fs-logger.php (added)
-
tags/3.3.1/freemius/includes/class-fs-options.php (added)
-
tags/3.3.1/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/3.3.1/freemius/includes/class-fs-security.php (added)
-
tags/3.3.1/freemius/includes/class-fs-storage.php (added)
-
tags/3.3.1/freemius/includes/class-fs-user-lock.php (added)
-
tags/3.3.1/freemius/includes/customizer (added)
-
tags/3.3.1/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/3.3.1/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/3.3.1/freemius/includes/customizer/index.php (added)
-
tags/3.3.1/freemius/includes/debug (added)
-
tags/3.3.1/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/3.3.1/freemius/includes/debug/debug-bar-start.php (added)
-
tags/3.3.1/freemius/includes/debug/index.php (added)
-
tags/3.3.1/freemius/includes/entities (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-billing.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-entity.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-payment.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-site.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/3.3.1/freemius/includes/entities/class-fs-user.php (added)
-
tags/3.3.1/freemius/includes/entities/index.php (added)
-
tags/3.3.1/freemius/includes/fs-core-functions.php (added)
-
tags/3.3.1/freemius/includes/fs-essential-functions.php (added)
-
tags/3.3.1/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/3.3.1/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/3.3.1/freemius/includes/index.php (added)
-
tags/3.3.1/freemius/includes/l10n.php (added)
-
tags/3.3.1/freemius/includes/managers (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/3.3.1/freemius/includes/managers/index.php (added)
-
tags/3.3.1/freemius/includes/sdk (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/3.3.1/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/3.3.1/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/3.3.1/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/3.3.1/freemius/includes/sdk/LICENSE.txt (added)
-
tags/3.3.1/freemius/includes/sdk/index.php (added)
-
tags/3.3.1/freemius/includes/supplements (added)
-
tags/3.3.1/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/3.3.1/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/3.3.1/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/3.3.1/freemius/includes/supplements/index.php (added)
-
tags/3.3.1/freemius/index.php (added)
-
tags/3.3.1/freemius/languages (added)
-
tags/3.3.1/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/3.3.1/freemius/languages/freemius-da_DK.mo (added)
-
tags/3.3.1/freemius/languages/freemius-de_DE.mo (added)
-
tags/3.3.1/freemius/languages/freemius-en.mo (added)
-
tags/3.3.1/freemius/languages/freemius-es_ES.mo (added)
-
tags/3.3.1/freemius/languages/freemius-fr_FR.mo (added)
-
tags/3.3.1/freemius/languages/freemius-he_IL.mo (added)
-
tags/3.3.1/freemius/languages/freemius-hu_HU.mo (added)
-
tags/3.3.1/freemius/languages/freemius-it_IT.mo (added)
-
tags/3.3.1/freemius/languages/freemius-ja.mo (added)
-
tags/3.3.1/freemius/languages/freemius-nl_NL.mo (added)
-
tags/3.3.1/freemius/languages/freemius-ru_RU.mo (added)
-
tags/3.3.1/freemius/languages/freemius-ta.mo (added)
-
tags/3.3.1/freemius/languages/freemius-zh_CN.mo (added)
-
tags/3.3.1/freemius/languages/freemius.pot (added)
-
tags/3.3.1/freemius/languages/index.php (added)
-
tags/3.3.1/freemius/require.php (added)
-
tags/3.3.1/freemius/start.php (added)
-
tags/3.3.1/freemius/templates (added)
-
tags/3.3.1/freemius/templates/account (added)
-
tags/3.3.1/freemius/templates/account.php (added)
-
tags/3.3.1/freemius/templates/account/billing.php (added)
-
tags/3.3.1/freemius/templates/account/index.php (added)
-
tags/3.3.1/freemius/templates/account/partials (added)
-
tags/3.3.1/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/3.3.1/freemius/templates/account/partials/addon.php (added)
-
tags/3.3.1/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/3.3.1/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/3.3.1/freemius/templates/account/partials/index.php (added)
-
tags/3.3.1/freemius/templates/account/partials/site.php (added)
-
tags/3.3.1/freemius/templates/account/payments.php (added)
-
tags/3.3.1/freemius/templates/add-ons.php (added)
-
tags/3.3.1/freemius/templates/add-trial-to-pricing.php (added)
-
tags/3.3.1/freemius/templates/admin-notice.php (added)
-
tags/3.3.1/freemius/templates/ajax-loader.php (added)
-
tags/3.3.1/freemius/templates/api-connectivity-message-js.php (added)
-
tags/3.3.1/freemius/templates/auto-installation.php (added)
-
tags/3.3.1/freemius/templates/checkout.php (added)
-
tags/3.3.1/freemius/templates/clone-resolution-js.php (added)
-
tags/3.3.1/freemius/templates/connect (added)
-
tags/3.3.1/freemius/templates/connect.php (added)
-
tags/3.3.1/freemius/templates/connect/index.php (added)
-
tags/3.3.1/freemius/templates/connect/permission.php (added)
-
tags/3.3.1/freemius/templates/connect/permissions-group.php (added)
-
tags/3.3.1/freemius/templates/contact.php (added)
-
tags/3.3.1/freemius/templates/debug (added)
-
tags/3.3.1/freemius/templates/debug.php (added)
-
tags/3.3.1/freemius/templates/debug/api-calls.php (added)
-
tags/3.3.1/freemius/templates/debug/index.php (added)
-
tags/3.3.1/freemius/templates/debug/logger.php (added)
-
tags/3.3.1/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/3.3.1/freemius/templates/debug/scheduled-crons.php (added)
-
tags/3.3.1/freemius/templates/email.php (added)
-
tags/3.3.1/freemius/templates/forms (added)
-
tags/3.3.1/freemius/templates/forms/affiliation.php (added)
-
tags/3.3.1/freemius/templates/forms/data-debug-mode.php (added)
-
tags/3.3.1/freemius/templates/forms/deactivation (added)
-
tags/3.3.1/freemius/templates/forms/deactivation/contact.php (added)
-
tags/3.3.1/freemius/templates/forms/deactivation/form.php (added)
-
tags/3.3.1/freemius/templates/forms/deactivation/index.php (added)
-
tags/3.3.1/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/3.3.1/freemius/templates/forms/email-address-update.php (added)
-
tags/3.3.1/freemius/templates/forms/index.php (added)
-
tags/3.3.1/freemius/templates/forms/license-activation.php (added)
-
tags/3.3.1/freemius/templates/forms/optout.php (added)
-
tags/3.3.1/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/3.3.1/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/3.3.1/freemius/templates/forms/resend-key.php (added)
-
tags/3.3.1/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/3.3.1/freemius/templates/forms/trial-start.php (added)
-
tags/3.3.1/freemius/templates/forms/user-change.php (added)
-
tags/3.3.1/freemius/templates/gdpr-optin-js.php (added)
-
tags/3.3.1/freemius/templates/index.php (added)
-
tags/3.3.1/freemius/templates/js (added)
-
tags/3.3.1/freemius/templates/js/index.php (added)
-
tags/3.3.1/freemius/templates/js/jquery.content-change.php (added)
-
tags/3.3.1/freemius/templates/js/open-license-activation.php (added)
-
tags/3.3.1/freemius/templates/js/permissions.php (added)
-
tags/3.3.1/freemius/templates/js/style-premium-theme.php (added)
-
tags/3.3.1/freemius/templates/partials (added)
-
tags/3.3.1/freemius/templates/partials/index.php (added)
-
tags/3.3.1/freemius/templates/partials/network-activation.php (added)
-
tags/3.3.1/freemius/templates/plugin-icon.php (added)
-
tags/3.3.1/freemius/templates/plugin-info (added)
-
tags/3.3.1/freemius/templates/plugin-info/description.php (added)
-
tags/3.3.1/freemius/templates/plugin-info/features.php (added)
-
tags/3.3.1/freemius/templates/plugin-info/index.php (added)
-
tags/3.3.1/freemius/templates/plugin-info/screenshots.php (added)
-
tags/3.3.1/freemius/templates/powered-by.php (added)
-
tags/3.3.1/freemius/templates/pricing.php (added)
-
tags/3.3.1/freemius/templates/secure-https-header.php (added)
-
tags/3.3.1/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/3.3.1/freemius/templates/tabs-capture-js.php (added)
-
tags/3.3.1/freemius/templates/tabs.php (added)
-
tags/3.3.1/images (added)
-
tags/3.3.1/images/close-icon.png (added)
-
tags/3.3.1/images/help.png (added)
-
tags/3.3.1/img (added)
-
tags/3.3.1/img/attention.png (added)
-
tags/3.3.1/img/close-icon.png (added)
-
tags/3.3.1/img/cross-flat.png (added)
-
tags/3.3.1/img/help.png (added)
-
tags/3.3.1/img/pgpp1.png (added)
-
tags/3.3.1/img/pgpp2.png (added)
-
tags/3.3.1/inc (added)
-
tags/3.3.1/inc/functions.php (added)
-
tags/3.3.1/inc/per_categories.php (added)
-
tags/3.3.1/inc/per_tags.php (added)
-
tags/3.3.1/inc/settings.php (added)
-
tags/3.3.1/js (added)
-
tags/3.3.1/js/dd_horizontal_tabs.js (added)
-
tags/3.3.1/js/setting.js (added)
-
tags/3.3.1/languages (added)
-
tags/3.3.1/languages/dfm-payment-gateway-per-product-for-woocommerce-nl_NL.mo (added)
-
tags/3.3.1/languages/dfm-payment-gateway-per-product-for-woocommerce-nl_NL.po (added)
-
tags/3.3.1/languages/dfm-payment-gateway-per-product-for-woocommerce.pot (added)
-
tags/3.3.1/readme.txt (added)
-
tags/3.3.1/vendor (added)
-
tags/3.3.1/vendor/select2 (added)
-
tags/3.3.1/vendor/select2/css (added)
-
tags/3.3.1/vendor/select2/css/select2.css (added)
-
tags/3.3.1/vendor/select2/css/select2.min.css (added)
-
tags/3.3.1/vendor/select2/js (added)
-
tags/3.3.1/vendor/select2/js/i18n (added)
-
tags/3.3.1/vendor/select2/js/i18n/af.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ar.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/az.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/bg.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/bn.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/bs.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ca.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/cs.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/da.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/de.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/dsb.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/el.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/en.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/eo.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/es.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/et.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/eu.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/fa.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/fi.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/fr.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/gl.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/he.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/hi.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/hr.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/hsb.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/hu.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/hy.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/id.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/is.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/it.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ja.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ka.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/km.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ko.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/lt.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/lv.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/mk.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ms.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/nb.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ne.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/nl.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/pa.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/pl.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ps.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/pt-BR.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/pt.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ro.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/ru.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/sk.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/sl.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/sq.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/sr-Cyrl.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/sr.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/sv.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/th.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/tk.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/tr.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/uk.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/vi.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/zh-CN.js (added)
-
tags/3.3.1/vendor/select2/js/i18n/zh-TW.js (added)
-
tags/3.3.1/vendor/select2/js/select2.full.js (added)
-
tags/3.3.1/vendor/select2/js/select2.full.min.js (added)
-
tags/3.3.1/vendor/select2/js/select2.js (added)
-
tags/3.3.1/vendor/select2/js/select2.min.js (added)
-
tags/3.3.1/woocommerce-product-payments.php (added)
-
trunk/freemius/assets/img/dfm-payment-gateway-per-product-for-woocommerce.png (added)
-
trunk/inc/settings.php (added)
-
trunk/languages (added)
-
trunk/languages/dfm-payment-gateway-per-product-for-woocommerce-nl_NL.mo (added)
-
trunk/languages/dfm-payment-gateway-per-product-for-woocommerce-nl_NL.po (added)
-
trunk/languages/dfm-payment-gateway-per-product-for-woocommerce.pot (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-product-payments.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-product-payments/trunk/readme.txt
r3025576 r3062775 1 1 === Payment gateway per Product for WooCommerce === 2 Contributors: dreamfox 2 Contributors: dreamfox, freemius 3 3 Tags: WooCommerce, payment gateway, product 4 4 Requires at least: 6.0 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4.2 7 Stable tag: 3.3. 07 Stable tag: 3.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 74 74 == Changelog == 75 = 3.3.1 = 76 * tested with latest woocommerce 77 * tested with latest wordpress 78 * minor changes 79 75 80 76 81 = 3.3.0 = -
woocommerce-product-payments/trunk/woocommerce-product-payments.php
r3025576 r3062775 5 5 * Plugin URI: https://www.dreamfoxmedia.com/project/woocommerce-payment-gateway-per-product-premium/ 6 6 * Description: Extend WooCommerce plugin to add different payments methods to a product 7 * Version: 3.3. 07 * Version: 3.3.1 8 8 * WC tested up to: 7.8 9 9 * WC tested up to: 8.5.1 10 10 * Author: Dreamfox 11 11 * Author URI: www.dreamfoxmedia.com 12 * Text Domain: d reamfoxmedia13 * Domain Path: /languages 12 * Text Domain: dfm-payment-gateway-per-product-for-woocommerce 13 * Domain Path: /languages/ 14 14 * @Developer : Hoang Xuan Hao / Marco van Loghum Slaterus ( Dreamfoxmedia ) 15 15 */ … … 17 17 exit; 18 18 } 19 define( 'DFM_PGPPFW__FILE__', __FILE__ ); 19 20 require_once dirname( __FILE__ ) . '/inc/functions.php'; 21 require_once dirname( __FILE__ ) . '/inc/settings.php'; 20 22 21 23 if ( function_exists( 'dfm_pgppfw_fs' ) ) { … … 50 52 'menu' => array( 51 53 'slug' => 'dfm-pgppfw', 52 'contact' => false,54 'contact' => true, 53 55 'support' => false, 54 56 'affiliation' => false, … … 70 72 } 71 73 74 } 75 76 dfm_pgppfw_fs()->add_filter( 'hide_account_tabs', 'dfm_pgppfw_hide_account_tabs' ); 77 function dfm_pgppfw_hide_account_tabs() 78 { 79 return true; 72 80 } 73 81 … … 110 118 add_submenu_page( 111 119 'woocommerce', 112 __( 'Product Payment', ' softsdev' ),113 __( 'Product Payment', ' softsdev' ),120 __( 'Product Payment', 'dfm-payment-gateway-per-product-for-woocommerce' ), 121 __( 'Product Payment', 'dfm-payment-gateway-per-product-for-woocommerce' ), 114 122 'manage_options', 115 123 'dfm-pgppfw', … … 150 158 { 151 159 if ( isset( $_GET['page'] ) && strpos( plugin_basename( wp_unslash( $_GET['page'] ) ), 'dfm-pgppfw' ) === 0 ) { 152 $text = 'Version 1.4.3';160 $text = 'Version 3.3.1'; 153 161 } 154 162 return $text; … … 161 169 function softsdev_notice( $message, $type ) 162 170 { 163 $html = <<<EOD 164 <div class="{$type} notice"> 165 <p>{$message}</p> 166 </div> 167 EOD; 168 echo $html ; 171 ?> 172 <div class="<?php 173 echo $type ; 174 ?> notice"> 175 <p><?php 176 echo $message ; 177 ?></p> 178 </div> 179 <?php 169 180 } 170 181 … … 413 424 ?> 414 425 415 <select class="js-softsdev_selected_cats" name="sdwpp_setting[softsdev_selected_cats][]" multiple="multiple" style="width: 100%;">416 <?php426 <select class="js-softsdev_selected_cats" name="sdwpp_setting[softsdev_selected_cats][]" multiple="multiple" style="width: 100%;"> 427 <?php 417 428 foreach ( $categories as $category ) { 418 429 ?> 419 <option value="<?php430 <option value="<?php 420 431 echo $category->term_id ; 421 432 ?>"<?php … … 424 435 echo $category->name ; 425 436 ?></option> 426 <?php437 <?php 427 438 } 428 439 ?> 429 </select> 430 <p>You can select any 2 categories for this functionality due to free plugin.</p> 431 432 <script> 433 (function($) { 434 var softsdev = { 435 select2: function() { 436 $('.js-softsdev_selected_cats').select2({ 437 maximumSelectionLength: 2 440 </select> 441 <p>You can select any 2 categories for this functionality due to free plugin.</p> 442 443 <script> 444 (function($) { 445 var softsdev = { 446 select2: function() { 447 $('.js-softsdev_selected_cats').select2({ 448 maximumSelectionLength: 2 449 }); 450 }, 451 } 452 453 $(document).ready(function() { 454 for (var func in softsdev) { 455 if (softsdev[func] instanceof Function) { 456 softsdev[func](); 457 } 458 } 438 459 }); 439 }, 440 } 441 442 $(document).ready(function() { 443 for (var func in softsdev) { 444 if (softsdev[func] instanceof Function) { 445 softsdev[func](); 446 } 447 } 448 }); 449 })(jQuery); 450 </script> 451 <?php 460 })(jQuery); 461 </script> 462 <?php 452 463 $additional_html = ob_get_clean(); 453 464 softsdev_product_payments_settings_part( $additional_html ); … … 465 476 } 466 477 467 function softsdev_product_payments_settings_part( $additional_html = '' )468 {469 wp_enqueue_style( 'softsdev_select2_css', plugins_url( '/vendor/select2/css/select2.min.css', __FILE__ ) );470 wp_enqueue_script( 'softsdev_select2_js', plugins_url( '/vendor/select2/js/select2.min.js', __FILE__ ) );471 wp_register_script( 'dd_horztab_script', plugins_url( '/js/dd_horizontal_tabs.js', __FILE__ ) );472 wp_enqueue_script( 'dd_horztab_script' );473 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );474 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );475 echo '<div class="wrap fs-section fs-full-size-wrapper wrap-mc-paid" id="dd-wc-product-payments"><div id="icon-tools" class="icon32"></div>' ;476 $setting_url = get_bloginfo( 'url' ) . '/wp-admin/admin.php?page=dfm-pgppfw';477 echo <<<EOD478 <h2 class="nav-tab-wrapper" id="settings">479 <a href="{$setting_url}" class="nav-tab fs-tab nav-tab-active home">Settings</a>480 </h2>481 EOD482 ;483 echo '<h2 class="title">' . __( 'Woocommerce Product Payments', 'softsdev' ) . '</h2>' ;484 ?>485 486 <div class="left-dd-paid ">487 <div class="left_box_container">488 <ul class="horz_tabs">489 <li <?php490 if ( !isset( $_GET['tab'] ) ) {491 ?> class="active" <?php492 }493 ?> id="payment_information">494 <a href="javascript:;">Information</a>495 </li>496 <li id="payment_settings" <?php497 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_settings' ) {498 ?>class="active" <?php499 }500 ?>>501 <a href="javascript:;">Settings</a>502 </li>503 <li id="payment_per_categories" <?php504 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_per_categories' ) {505 ?>class="active" <?php506 }507 ?>>508 <a href="javascript:;">Per Categories</a>509 </li>510 <li id="payment_per_tags" <?php511 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_per_tags' ) {512 ?>class="active" <?php513 }514 ?>>515 <a href="javascript:;">Per Tags</a>516 </li>517 <li id="payment_newsletter" <?php518 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_newsletter' ) {519 ?>class="active" <?php520 }521 ?>>522 <a href="javascript:;">Newsletter</a>523 </li>524 <li id="payment_faq" >525 <a href="javascript:;">FAQ</a>526 </li>527 <li id="payment_support" <?php528 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_support' ) {529 ?>class="active" <?php530 }531 ?>>532 <a href="javascript:;">Support</a>533 </li>534 <li id="payment_dfmplugins">535 <a href="javascript:;">DFM Plugins</a>536 </li>537 </ul>538 </div>539 </div>540 541 <div class="right-dd-paid ">542 <div id="tab_payment_information" class="postbox <?php543 if ( !isset( $_GET['tab'] ) ) {544 ?>active<?php545 }546 ?>" style="padding: 10px; margin: 10px 0px;">547 <?php548 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );549 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );550 echo '<div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>' ;551 echo '<h2 class="title">' . __( 'Woocommerce Product Payments - Information', 'softsdev' ) . '</h2>' ;552 ?>553 <img src="<?php554 echo plugins_url( 'img/attention.png', __FILE__ ) ;555 ?>"><br>556 IMPORTANT: We are using a new license system. If you have trouble with your license then see this link:<br>557 <a href="https://dreamfoxmedia.freshdesk.com/support/solutions/articles/72000533747-transferring-our-licenses-from-dreamfoxmedia-to-freemius" target="_blank">Click here to see the complete article</a>558 559 <p>This plugin for WooCommerce Payment Gateway per Product, by tag or per category and lets you select the available payment method for each (individual) product.<br>560 This plugin will allow the admin to select the available payment gateway for each individual product. This is done by <a href="edit.php?post_type=product" >products</a><br>561 <p><img src="<?php562 echo plugins_url( 'img/pgpp1.png', __FILE__ ) ;563 ?>"> <img src="<?php564 echo plugins_url( 'img/pgpp2.png', __FILE__ ) ;565 ?>"></p>566 For TAG and CATEGORIES you can set these by clicking the menu items on the left.<br>567 Admin can select for each (individual) product the payment gateway that will be used by checkout. If no selection is made, then the default payment gateways are displayed.<br>568 If you for example only select paypal then only paypal will available for that product by checking out.</p>569 570 </div>571 572 <div id="tab_payment_settings" class="postbox <?php573 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_settings' ) {574 ?>active<?php575 }576 ?>" style="padding: 10px; margin: 10px 0px;">577 <?php578 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );579 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );580 echo '<div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>' ;581 echo '<h2 class="title">' . __( 'Woocommerce Product Payments - Settings', 'softsdev' ) . '</h2>' ;582 ?>583 584 585 <?php586 /**587 * Settings default588 */589 $softsdev_wpp_plugin_settings = get_option( 'sdwpp_plugin_settings', array(590 'softsdev_selected_cats' => '',591 'default_payment' => '',592 ) );593 $default_payment = unserialize( $softsdev_wpp_plugin_settings['default_payment'] );594 ?>595 <form id="woo_sdwpp" action="<?php596 echo get_admin_url( null, 'admin.php' ) . '?page=dfm-pgppfw&tab=payment_settings' ;597 ?>" method="post">598 <div style="padding: 10px 0; margin: 10px 0px;">599 <?php600 echo $additional_html ;601 ?>602 603 604 605 <h3 class="hndle"><?php606 echo __( 'Default Payment option( If not match any.)', 'softsdev' ) ;607 ?></h3>608 <?php609 $woo = new WC_Payment_Gateways();610 $payments = $woo->payment_gateways;611 ?>612 <select id="sdwpp_default_payment" name="sdwpp_setting[default_payment]">613 <option value="none" <?php614 selected( $default_payment, 'none' );615 ?>>None</option>616 <?php617 foreach ( $payments as $pay ) {618 /**619 * skip if payment in disbled from admin620 */621 if ( $pay->enabled === 'no' ) {622 continue;623 }624 echo "<option value = '" . $pay->id . "' " . selected( $default_payment, $pay->id ) . ">" . $pay->title . "</option>" ;625 }626 ?>627 </select>628 <br />629 <small><?php630 echo __( 'If in some case payment option not show then this will default one set', 'softsdev' ) ;631 ?></small>632 </div>633 <input class="button-large button-primary" type="submit" value="Save changes" />634 </form>635 </div>636 <?php637 ?>638 <p>This option is a premium feature</p>639 <?php640 ?>641 <div id="tab_payment_newsletter" class="postbox" style="padding: 10px; margin: 10px 0px;">642 <?php643 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );644 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );645 echo '<div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>' ;646 echo '<h2 class="title">' . __( 'Woocommerce Product Payments - Newsletter', 'softsdev' ) . '</h2>' ;647 ?>648 <!-- Begin Sendinblue Form -->649 <iframe width="540" height="505" src="https://322fdba5.sibforms.com/serve/MUIEADPSqc91xZQAhD93GZEuPI0STBa6IDtiRPRy1s2sWDXpIahq0YCn_hTynzANungZ-IBXlkdiqtxS5LWTX2PnNO4HXf3zdrDPhYfqPMOU5dTl_slePr-U4hKHdS0HY622pFWMdMMfj40dLxrwCm1gCkrwuC5SLHSNKOfjzFKVX5WkfG6W2aOhHybGkbdXqxCZmXoHswZbB_uJ" frameborder="0" scrolling="auto" allowfullscreen style="display: block;margin-left: auto;margin-right: auto;max-width: 100%;"></iframe>650 <!-- END - Sendinblue form -->651 </div>652 653 <div id="tab_payment_faq" class="postbox" style="padding: 10px; margin: 10px 0px;">654 <?php655 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );656 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );657 echo '<div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>' ;658 echo '<h2 class="title">' . __( 'Woocommerce Product Payments - FAQ', 'softsdev' ) . '</h2>' ;659 ?>660 <h4 class="mc4wp-title"><?php661 echo __( 'Looking for help?', 'Woocommerce Payment Gateway Per Product' ) ;662 ?></h4>663 <p>Below you see the link to the complete FAQ available at: <a href="https://dreamfoxmedia.com?utm_source=wp-plugin&utm_medium=wcpgpp-p&utm_campaign=faqall" target="_blank">dreamfoxmedia.com</a></p>664 <ul class="ul-square">665 <li><a href="https://dreamfoxmedia.freshdesk.com/support/solutions?utm_source=wp-plugin&utm_medium=wcpgpp-p&utm_campaign=faqall" target="_blank">Click here to see the complete FAQ section</a></li>666 </ul>667 668 <p>Or see this link to the most read FAQs for the payment plugin available at: <a href="https://dreamfoxmedia.freshdesk.com/support/solutions/72000275598?utm_source=wp-plugin&utm_medium=wcpgpp-p&utm_campaign=faqall" target="_blank">Dreamfoxmedia.com</a></p>669 670 671 <p><?php672 echo sprintf( __( 'If your answer can not be found in the resources listed above, please use our supportsystem <a href="%s">here</a>.' ), 'https://support.dreamfoxmedia.com' ) ;673 ?></p>674 <p>Found a bug? Please open an issue <a href="https://dreamfoxmedia.freshdesk.com/support/tickets/new#utm_source=wp-plugin&utm_medium=wcpgpp-p&utm_campaign=issue" target="_blank">here.</a></p>675 </div>676 677 <div id="tab_payment_support" class="postbox <?php678 if ( isset( $_GET['tab'] ) && $_GET['tab'] == 'payment_support' ) {679 ?>active<?php680 }681 ?>" style="padding: 10px; margin: 10px 0px;">682 <?php683 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );684 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );685 echo '<div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>' ;686 echo '<h2 class="title">' . __( 'Woocommerce Product Payments - Support Form', 'softsdev' ) . '</h2>' ;687 $user = wp_get_current_user();688 $plugin_data = get_plugin_data( __FILE__ );689 ?>690 <div class="supportform" style="display:block; background-color:#FFF; margin:20px; padding:10px;">691 <form action="admin.php?page=dfm-pgppfw&tab=payment_support" id="support_form" method="post" class="mymail-form-2 mymail-form mymail-form-submit extern">692 693 <table width="100%" class="form-table">694 <tr>695 <th>696 <label><?php697 echo __( 'Name', 'dreamfox_dd' ) ;698 ?></label>699 <img width="16" height="16" src="<?php700 echo plugins_url( 'img/help.png', __FILE__ ) ;701 ?>" class="help_tip" title="<?php702 echo __( 'Name', 'dreamfox_dd' ) ;703 ?>">704 </th>705 <td>706 <input id="name" name="name" type="textbox" size="30" value="<?php707 echo $user->data->user_nicename ;708 ?>" />709 </td>710 </tr>711 712 713 <tr>714 <th>715 <label><?php716 echo __( 'Email', 'dreamfox_dd' ) ;717 ?></label>718 <img width="16" height="16" src="<?php719 echo plugins_url( 'img/help.png', __FILE__ ) ;720 ?>" class="help_tip" title="<?php721 echo __( 'Email', 'dreamfox_dd' ) ;722 ?>">723 </th>724 <td>725 <input id="email" name="email" type="textbox" size="30" value="<?php726 echo $user->data->user_email ;727 ?>" />728 </td>729 </tr>730 <tr>731 <th>732 <label><?php733 echo __( 'Plugin Name', 'dreamfox_dd' ) ;734 ?></label>735 <img width="16" height="16" src="<?php736 echo plugins_url( 'img/help.png', __FILE__ ) ;737 ?>" class="help_tip" title="<?php738 echo __( 'Plugin Name', 'dreamfox_dd' ) ;739 ?>">740 </th>741 <td>742 <input readonly id="plugin_name" name="plugin_name" type="textbox" size="60" value="Woocommerce Payment Gateway Per Product Premium" />743 744 </td>745 </tr>746 <tr>747 <th>748 <label><?php749 echo __( 'Version Number', 'dreamfox_dd' ) ;750 ?></label>751 <img width="16" height="16" src="<?php752 echo plugins_url( 'img/help.png', __FILE__ ) ;753 ?>" class="help_tip" title="<?php754 echo __( 'Plugin Name', 'dreamfox_dd' ) ;755 ?>">756 </th>757 <td>758 <input readonly id="version_number" name="version_number" type="textbox" size="30" value="<?php759 echo $plugin_data['Version'] ;760 ?>761 " />762 763 </td>764 </tr>765 <tr>766 <th>767 <label><?php768 echo __( 'License', 'dreamfox_dd' ) ;769 ?></label>770 <img width="16" height="16" src="<?php771 echo plugins_url( 'img/help.png', __FILE__ ) ;772 ?>" class="help_tip" title="<?php773 echo __( 'License', 'dreamfox_dd' ) ;774 ?>">775 </th>776 <td>777 <input readonly id="license" name="license" type="textbox" size="30" value="<?php778 echo get_option( 'product_payments_license_key' ) ;779 ?>" />780 781 </td>782 </tr>783 784 <tr>785 <th>786 <label><?php787 echo __( 'Details of Problem', 'dreamfox_dd' ) ;788 ?></label>789 <img width="16" height="16" src="<?php790 echo plugins_url( 'img/help.png', __FILE__ ) ;791 ?>" class="help_tip" title="<?php792 echo __( 'Details of Problem', 'dreamfox_dd' ) ;793 ?>">794 </th>795 <td>796 797 <textarea name="detail_problem" id="detail_problem" style="width:300px;height:300px"></textarea>798 <input type="hidden" name="action" value="raise_product_payment_support_email" />799 </td>800 </tr>801 802 <tr>803 <th> </th>804 <td align="left">805 <button onclick="support_form();" type="button" class="button-large button-primary">Submit Support Ticket</button>806 </td>807 </tr>808 </table>809 810 </form>811 </div>812 </div>813 814 <div id="tab_payment_dfmplugins" class="postbox" style="padding: 10px; margin: 10px 0px;">815 <?php816 add_filter( 'admin_footer_text', 'softsdev_product_payments_footer_text' );817 add_filter( 'update_footer', 'softsdev_product_payments_update_footer' );818 echo '<div class="wrap wrap-mc-paid"><div id="icon-tools" class="icon32"></div></div>' ;819 echo '<h2 class="title">' . __( 'Woocommerce Product Payments - Dreamfox Media Plugins', 'softsdev' ) . '</h2>' ;820 ?>821 <?php822 $url = 'https://raw.githubusercontent.com/dreamfoxmedia/dreamfoxmedia/gh-pages/plugins/dfmplugins.json';823 $response = wp_remote_get( $url, array() );824 $response_code = wp_remote_retrieve_response_code( $response );825 $response_body = wp_remote_retrieve_body( $response );826 827 if ( $response_code != 200 || is_wp_error( $response ) ) {828 echo '<div class="error below-h2"><p>There was an error retrieving the list from the server.</p></div>' ;829 switch ( $response_code ) {830 case '403':831 echo '<div class="error below-h2"><p>Seems your host is blocking <strong>' . dirname( $url ) . '</strong>. Please request to white list this domain </p></div>' ;832 break;833 }834 wp_die();835 }836 837 $addons = json_decode( $response_body );838 // set_transient( 'mymail_addons', $addons, 3600 );839 $plugin_http_path = plugins_url();840 ?>841 <div class="wrap">842 <h3>Here you see our great Free and Premium Plugins of Dreamfox Media</h3>843 <link href="<?php844 echo $plugin_http_path ;845 ?>/woocommerce-delivery-date-premium/css/addons-style.min.css?ver=2.1.23" rel="stylesheet" type="text/css">846 847 <ul class="addons-wrap">848 <?php849 foreach ( $addons as $addon ) {850 if ( !empty($addon->hidden) ) {851 continue;852 }853 $addon->link = ( isset( $addon->link ) ? add_query_arg( array(854 'utm_source' => 'Dreamfox Media Plugin Page',855 'utm_medium' => 'link',856 'utm_campaign' => 'Dreamfox Plugins Add Ons',857 ), $addon->link ) : '' );858 ?>859 <li class="mymail-addon <?php860 if ( !empty($addon->is_free) ) {861 echo ' is-free' ;862 }863 if ( !empty($addon->is_feature) ) {864 echo ' is-feature' ;865 }866 867 if ( isset( $addon->image ) ) {868 $image = str_replace( 'http//', '//', $addon->image );869 } elseif ( isset( $addon->image_ ) ) {870 $image = str_replace( 'http//', '//', $addon->image_ );871 }872 873 ?>">874 <div class="bgimage" style="min-height: 500px; background-repeat: no-repeat; background-image:url(<?php875 echo $image ;876 ?>)">877 <?php878 879 if ( isset( $addon->wpslug ) ) {880 ?>881 <a href="plugin-install.php?tab=plugin-information&plugin=<?php882 echo dirname( $addon->wpslug ) ;883 ?>&from=import&TB_iframe=true&width=745&height=745" class="thickbox"> </a>884 <?php885 } else {886 ?>887 <a href="<?php888 echo $addon->link ;889 ?>"> </a>890 <?php891 }892 893 ?>894 </div>895 <h4><?php896 echo $addon->name ;897 ?></h4>898 <p class="author">by899 <?php900 901 if ( $addon->author_url ) {902 echo '<a href="' . $addon->author_url . '">' . $addon->author . '</a>' ;903 } else {904 echo $addon->author ;905 }906 907 ?>908 </p>909 <p class="description"><?php910 echo $addon->description ;911 ?></p>912 <div class="action-links">913 <?php914 915 if ( !empty($addon->wpslug) ) {916 ?>917 <?php918 919 if ( is_dir( dirname( WP_PLUGIN_DIR . '/' . $addon->wpslug ) ) ) {920 ?>921 <?php922 923 if ( is_plugin_active( $addon->wpslug ) ) {924 ?>925 <a class="button" href="<?php926 echo wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $addon->wpslug, 'deactivate-plugin_' . $addon->wpslug ) ;927 ?>"><?php928 _e( 'Deactivate', 'mymail' );929 ?></a>930 <?php931 } elseif ( is_plugin_inactive( $addon->wpslug ) ) {932 ?>933 <a class="button" href="<?php934 echo wp_nonce_url( 'plugins.php?action=activate&plugin=' . $addon->wpslug, 'activate-plugin_' . $addon->wpslug ) ;935 ?>"><?php936 _e( 'Activate', 'mymail' );937 ?></a>938 <?php939 }940 941 ?>942 <?php943 } else {944 ?>945 <?php946 947 if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) {948 ?>949 <a class="button button-primary" href="<?php950 echo wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . dirname( $addon->wpslug ) . '&mymail-addon' ), 'install-plugin_' . dirname( $addon->wpslug ) ) ;951 ?>"><?php952 _e( 'Install', 'mymail' );953 ?></a>954 <?php955 }956 957 ?>958 <?php959 }960 961 ?>962 <?php963 } else {964 ?>965 <a class="button button-primary" href="<?php966 echo $addon->link ;967 ?>"><?php968 _e( 'Purchase', 'mymail' );969 ?></a>970 <?php971 }972 973 ?>974 </div>975 </li>976 <?php977 }978 ?>979 </ul>980 </div>981 </div>982 </div>983 984 985 986 <?php987 }988 989 function product_payment_support_email()990 {991 global $dreamfox_dd_version ;992 993 if ( isset( $_POST['action'] ) && $_POST['action'] == 'raise_product_payment_support_email' ) {994 $name = $_POST['name'];995 $email = $_POST['email'];996 $plugin_name = $_POST['plugin_name'];997 $license = $_POST['license'];998 $detail_problem = $_POST['detail_problem'];999 $to_email = '[email protected]';1000 $sep = "\n\n";1001 $subject = 'Support Ticket for the Plugin : Woocommerce Payment Gateway Per Product Premium';1002 $message = "Hi there," . $sep . "Here are the details of the support ticket : " . $sep . " Name : " . $name . $sep . " Email : " . $email . $sep . " Plugin : " . $plugin_name . $sep . " Version : " . $dreamfox_dd_version . $sep . " License Code : " . $license . $sep . " Details of Problem : " . $sep . $detail_problem . $sep . " Thanks," . $sep . "Admin";1003 wp_mail( $to_email, $subject, $message );1004 softsdev_notice( 'Support email has been sent successfully', 'updated' );1005 reset( $_POST );1006 }1007 1008 }1009 1010 add_action( 'init', 'product_payment_support_email' );1011 478 /** 1012 479 *
Note: See TracChangeset
for help on using the changeset viewer.