Showing with 8,106 additions and 6,871 deletions.
  1. BIN .wordpress-org/screenshot-1.png
  2. BIN .wordpress-org/screenshot-2.png
  3. BIN .wordpress-org/screenshot-3.png
  4. BIN .wordpress-org/screenshot-4.png
  5. BIN .wordpress-org/screenshot-5.png
  6. BIN .wordpress-org/screenshot-6.png
  7. BIN .wordpress-org/screenshot-7.png
  8. BIN .wordpress-org/screenshot-8.png
  9. BIN .wordpress-org/screenshot-9.png
  10. +11 −0 CHANGELOG.md
  11. +14 −15 backend/options.php
  12. +62 −53 backend/settings-panel.class.php
  13. +288 −281 backend/templates/admin-settings.php
  14. +25 −26 backend/templates/inputs/checkbox.php
  15. +9 −10 backend/templates/inputs/color.php
  16. +32 −31 backend/templates/inputs/select.php
  17. +7 −8 backend/templates/inputs/text.php
  18. +7 −8 backend/templates/inputs/textarea.php
  19. +36 −36 backend/templates/inputs/typography.php
  20. +291 −261 classes/admin.class.php
  21. +177 −169 classes/fields.class.php
  22. +19 −20 classes/form.class.php
  23. +137 −0 classes/freemium.class.php
  24. +26 −30 classes/frontend-scripts.class.php
  25. +21 −20 classes/input-meta.class.php
  26. +18 −19 classes/input.class.php
  27. +32 −32 classes/inputs/input.audio.php
  28. +39 −39 classes/inputs/input.checkbox.php
  29. +26 −23 classes/inputs/input.color.php
  30. +42 −39 classes/inputs/input.cropper.php
  31. +34 −34 classes/inputs/input.date.php
  32. +32 −29 classes/inputs/input.daterange.php
  33. +11 −11 classes/inputs/input.divider.php
  34. +27 −27 classes/inputs/input.email.php
  35. +62 −62 classes/inputs/input.file.php
  36. +11 −11 classes/inputs/input.hidden.php
  37. +31 −31 classes/inputs/input.image.php
  38. +41 −41 classes/inputs/input.measure.php
  39. +39 −39 classes/inputs/input.number.php
  40. +23 −23 classes/inputs/input.palettes.php
  41. +39 −36 classes/inputs/input.pricematrix.php
  42. +28 −28 classes/inputs/input.quantities.php
  43. +33 −33 classes/inputs/input.radio.php
  44. +13 −13 classes/inputs/input.section.php
  45. +25 −25 classes/inputs/input.select.php
  46. +31 −31 classes/inputs/input.text.php
  47. +37 −37 classes/inputs/input.textarea.php
  48. +19 −19 classes/inputs/input.timezone.php
  49. +2 −2 classes/integrations/elementor/elementor.class.php
  50. +1 −1 classes/integrations/elementor/shortcode-widget.php
  51. +3 −3 classes/legacy-meta.class.php
  52. +678 −661 classes/plugin.class.php
  53. +48 −36 classes/ppom.class.php
  54. +2 −13 classes/scripts.class.php
  55. +5 −1 composer.json
  56. +577 −2 composer.lock
  57. +48 −4 css/ppom-admin.css
  58. +565 −537 inc/admin.php
  59. +120 −116 inc/arrays.php
  60. +1 −2 inc/deprecated.php
  61. +75 −66 inc/files.php
  62. +193 −127 inc/functions.php
  63. +737 −707 inc/hooks.php
  64. +139 −135 inc/nmInput.class.php
  65. +64 −51 inc/prices.php
  66. +108 −77 inc/rest.class.php
  67. +4 −4 inc/validation.php
  68. +85 −57 inc/woocommerce.php
  69. +20 −0 js/admin/ppom-admin.js
  70. +69 −52 js/admin/ppom-meta-table.js
  71. +3 −2 js/ppom-conditions-v2.js
  72. +1 −1 package.json
  73. +56 −0 phpcs.xml
  74. +28 −14 readme.txt
  75. +42 −42 templates/admin/addons-list.php
  76. +110 −122 templates/admin/existing-meta.php
  77. +378 −354 templates/admin/ppom-fields.php
  78. +71 −71 templates/admin/products-list.php
  79. +4 −4 templates/frontend/component/form-data.php
  80. +15 −15 templates/frontend/component/image/image-modals.php
  81. +80 −79 templates/frontend/component/quantities/grid-layout.php
  82. +78 −75 templates/frontend/component/quantities/horizontal-layout.php
  83. +88 −86 templates/frontend/component/quantities/vertical-layout.php
  84. +77 −75 templates/frontend/inputs/audio.php
  85. +103 −97 templates/frontend/inputs/checkbox.php
  86. +33 −32 templates/frontend/inputs/color.php
  87. +82 −81 templates/frontend/inputs/cropper.php
  88. +35 −34 templates/frontend/inputs/date.php
  89. +33 −32 templates/frontend/inputs/daterange.php
  90. +53 −49 templates/frontend/inputs/divider.php
  91. +33 −32 templates/frontend/inputs/email.php
  92. +65 −64 templates/frontend/inputs/file.php
  93. +7 −6 templates/frontend/inputs/hidden.php
  94. +265 −259 templates/frontend/inputs/image.php
  95. +51 −49 templates/frontend/inputs/measure.php
  96. +33 −32 templates/frontend/inputs/number.php
  97. +107 −106 templates/frontend/inputs/palettes.php
  98. +96 −96 templates/frontend/inputs/pricematrix.php
  99. +29 −29 templates/frontend/inputs/quantities.php
  100. +69 −68 templates/frontend/inputs/radio.php
  101. +12 −12 templates/frontend/inputs/section.php
  102. +77 −76 templates/frontend/inputs/select.php
  103. +35 −34 templates/frontend/inputs/text.php
  104. +42 −39 templates/frontend/inputs/textarea.php
  105. +37 −36 templates/frontend/inputs/timezone.php
  106. +32 −29 templates/frontend/ppom-fields.php
  107. +226 −221 templates/input/quantities.php
  108. +40 −44 templates/render-fields.php
  109. +16 −16 templates/v10/file-modals.php
  110. +14 −14 templates/v10/image-modals.php
  111. +51 −40 woocommerce-product-addon.php
Binary file modified .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#### [Version 32.0.0](https://github.com/Codeinwp/woocommerce-product-addon/compare/v31.0.1...v32.0.0) (2022-10-18)


- [Fix] Order Again PPOM compatibility support has been added. [#47](https://github.com/Codeinwp/woocommerce-product-addon/issues/47)
- [Fix] [Pro compatibility] Fix the conditional field issue of the PPOM Pro Image Dropdown field [#48](https://github.com/Codeinwp/woocommerce-product-addon/issues/48)
- [Fix] [Pro compatibility] Fix for PPOM Pro (Image Cropper doesn't work with some AJAX add to cart plugins)
- [Fix] Reload the PPOM Field Group Listing screen if a field is deleted.
- [Fix] [Pro compatibility] Conditional Field Support of the Image Dropdown field of the PPOM Pro has been fixed.
- [Fix] [Pro compatibility] Product featured image is replaced by the ImageSelect field without making a selection
- Promote locked fields

##### [Version 31.0.1](https://github.com/Codeinwp/woocommerce-product-addon/compare/v31.0.0...v31.0.1) (2022-09-16)

- Themeisle-SDK upgraded to latest version (v3.2.30)
Expand Down
29 changes: 14 additions & 15 deletions backend/options.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
/**
* Plugin Admin Settings
*
*/

/*
Expand All @@ -11,15 +10,15 @@
exit;
}

/*** Check if class exist ***/
/*** Check if class exist */
if ( ! class_exists( 'PPOM_SettingsFramework' ) ) {
return;
}

/**
* Register Panel Fieds Against Panel ID
* --------------------------------------
**/
*/
$core_settings = array(
'ppom_general_section1' => array(
'type' => 'section',
Expand All @@ -34,22 +33,22 @@
'ppom_enable_legacy_inputs_rendering' => array(
'type' => 'checkbox',
'title' => __( 'Legacy Inputs Rendering', 'ppom' ),
'desc' => __( "PPOM Version 22.0 is major update, if some issues occur you can revert back to old version by this.", 'ppom' ),
'desc' => __( 'PPOM Version 22.0 is major update, if some issues occur you can revert back to old version by this.', 'ppom' ),
),
'ppom_new_conditions' => array(
'type' => 'checkbox',
'title' => __( 'Legacy Conditions Script', 'ppom' ),
'desc' => __( 'If you found any issue in conditions you may enable this option.', 'ppom' ),
),
'ppom_legacy_price' => array(
'type' => 'checkbox',
'title' => __( 'Enable Legacy Price Calculations', 'ppom' ),
// 'reference' => array(
// 'ref_title' => __( 'See reference', 'ppom' ),
// 'ref_link' => 'https://najeebmedia.com/blog/ppom-version-18-0-better-price-manipulation-currency-switcher/',
'type' => 'checkbox',
'title' => __( 'Enable Legacy Price Calculations', 'ppom' ),
// 'reference' => array(
// 'ref_title' => __( 'See reference', 'ppom' ),
// 'ref_link' => 'https://najeebmedia.com/blog/ppom-version-18-0-better-price-manipulation-currency-switcher/',
// 'ref_video_title' => __( 'Quick Video', 'ppom' ),
// 'ref_video_link' => 'https://www.youtube.com/watch?v=0wCC3aLXdOw',
// ),
// ),
),
'ppom_permission_mfields' => array(
'type' => 'select',
Expand All @@ -58,7 +57,7 @@
'default' => 'administrator',
'placeholder' => __( 'choose role', 'ppom' ),
'options' => ppom_get_all_editable_roles(),
'style' => 'multiselect'
'style' => 'multiselect',
),
'ppom_restricted_file_type' => array(
'type' => 'text',
Expand Down Expand Up @@ -99,7 +98,7 @@
/**
* Register Panel Against Tab ID
* -------------------------------
**/
*/
$panel_meta = array(
'ppom_admin_core_settings' => array(
'id' => 'ppom_admin_core_settings',
Expand All @@ -114,7 +113,7 @@
/**
* Register Main Tabs
* --------------------------
**/
*/
$register_tabs = array(
'ppom_general_tab' => array(
'tab_id' => 'ppom_general_tab',
Expand All @@ -129,6 +128,6 @@
/**
* Register Settings Panel
* --------------------------
**/
*/
PPOMSETTINGS()->register_tabs( $register_tabs )->register_panel( 'ppom_general_tab', $panel_meta );
PPOMSETTINGS()->register_setting( 'ppom_admin_core_settings', $core_settings );
PPOMSETTINGS()->register_setting( 'ppom_admin_core_settings', $core_settings );
Loading