Changeset 3462529
- Timestamp:
- 02/16/2026 01:11:25 PM (7 weeks ago)
- Location:
- amaspace
- Files:
-
- 5 edited
- 12 copied
-
tags/1.0.7 (copied) (copied from amaspace/trunk)
-
tags/1.0.7/.htaccess (copied) (copied from amaspace/trunk/.htaccess)
-
tags/1.0.7/README.md (copied) (copied from amaspace/trunk/README.md)
-
tags/1.0.7/ama_customizer.php (copied) (copied from amaspace/trunk/ama_customizer.php) (1 diff)
-
tags/1.0.7/assets/css/frontend.css (copied) (copied from amaspace/trunk/assets/css/frontend.css)
-
tags/1.0.7/assets/js/template_script.js (copied) (copied from amaspace/trunk/assets/js/template_script.js)
-
tags/1.0.7/includes/class-ama-ajax-handler.php (copied) (copied from amaspace/trunk/includes/class-ama-ajax-handler.php) (1 diff)
-
tags/1.0.7/includes/class-ama-api.php (copied) (copied from amaspace/trunk/includes/class-ama-api.php)
-
tags/1.0.7/includes/class-ama-product.php (copied) (copied from amaspace/trunk/includes/class-ama-product.php) (3 diffs)
-
tags/1.0.7/includes/class-frontend.php (copied) (copied from amaspace/trunk/includes/class-frontend.php) (1 diff)
-
tags/1.0.7/readme.txt (copied) (copied from amaspace/trunk/readme.txt) (1 diff)
-
tags/1.0.7/templates/template-ama-iframe.php (copied) (copied from amaspace/trunk/templates/template-ama-iframe.php)
-
trunk/ama_customizer.php (modified) (1 diff)
-
trunk/includes/class-ama-ajax-handler.php (modified) (1 diff)
-
trunk/includes/class-ama-product.php (modified) (3 diffs)
-
trunk/includes/class-frontend.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amaspace/tags/1.0.7/ama_customizer.php
r3450697 r3462529 4 4 * Plugin Name: Amaspace 5 5 * Description: Custom WordPress plugin for AMA project 6 * Version: 1.0. 66 * Version: 1.0.7 7 7 * Author: Amaspace Team 8 8 * Author URI: https://amaspace.co -
amaspace/tags/1.0.7/includes/class-ama-ajax-handler.php
r3391846 r3462529 163 163 'wp_product_parrent_id' => isset($post_data['wp_product_parrent_id']) ? intval($post_data['wp_product_parrent_id']) : null, 164 164 'wp_config' => isset($post_data['wp_config']) ? wp_kses_post($post_data['wp_config']) : '', 165 'wp_config_description' => isset($post_data['wp_config_description']) ? wp_kses_post($post_data['wp_config_description']) : '', 165 166 'ama_product_id' => isset($post_data['ama_product_id']) ? intval($post_data['ama_product_id']) : null, 166 167 ); -
amaspace/tags/1.0.7/includes/class-ama-product.php
r3391846 r3462529 118 118 'token' => $token, 119 119 'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "", 120 'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "", 120 121 ]; 121 122 $precompose = $this->ama_api->amaspace_create_precompose($precompose_data); … … 224 225 $this->ama_api->amaspace_create_integration_product($product_id, $precompose_id, $token); 225 226 227 do_action('amaspace_product_created', $product_id); 228 226 229 return $product_id; 227 230 } … … 313 316 'token' => $token, 314 317 'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "", 318 'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "", 315 319 ]; 316 320 $precompose_id = $this->ama_api->amaspace_create_precompose($precompose_data); -
amaspace/tags/1.0.7/includes/class-frontend.php
r3450697 r3462529 36 36 add_filter('woocommerce_product_get_price', array($this, 'custom_price_display'), 10, 2); 37 37 add_action('woocommerce_before_single_product', array($this, 'custom_product_modifications')); 38 add_action('woocommerce_after_single_product_summary', array($this, 'show_amaspace_iframe_block'), 20); 38 // Используем woocommerce_after_single_product - стандартный хук, который вызывается в любом шаблоне 39 add_action('woocommerce_after_single_product', array($this, 'show_amaspace_iframe_block'), 20); 39 40 40 41 // Add assets - проверяем контент и подключаем скрипты -
amaspace/tags/1.0.7/readme.txt
r3450697 r3462529 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
amaspace/trunk/ama_customizer.php
r3450697 r3462529 4 4 * Plugin Name: Amaspace 5 5 * Description: Custom WordPress plugin for AMA project 6 * Version: 1.0. 66 * Version: 1.0.7 7 7 * Author: Amaspace Team 8 8 * Author URI: https://amaspace.co -
amaspace/trunk/includes/class-ama-ajax-handler.php
r3391846 r3462529 163 163 'wp_product_parrent_id' => isset($post_data['wp_product_parrent_id']) ? intval($post_data['wp_product_parrent_id']) : null, 164 164 'wp_config' => isset($post_data['wp_config']) ? wp_kses_post($post_data['wp_config']) : '', 165 'wp_config_description' => isset($post_data['wp_config_description']) ? wp_kses_post($post_data['wp_config_description']) : '', 165 166 'ama_product_id' => isset($post_data['ama_product_id']) ? intval($post_data['ama_product_id']) : null, 166 167 ); -
amaspace/trunk/includes/class-ama-product.php
r3391846 r3462529 118 118 'token' => $token, 119 119 'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "", 120 'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "", 120 121 ]; 121 122 $precompose = $this->ama_api->amaspace_create_precompose($precompose_data); … … 224 225 $this->ama_api->amaspace_create_integration_product($product_id, $precompose_id, $token); 225 226 227 do_action('amaspace_product_created', $product_id); 228 226 229 return $product_id; 227 230 } … … 313 316 'token' => $token, 314 317 'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "", 318 'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "", 315 319 ]; 316 320 $precompose_id = $this->ama_api->amaspace_create_precompose($precompose_data); -
amaspace/trunk/includes/class-frontend.php
r3450697 r3462529 36 36 add_filter('woocommerce_product_get_price', array($this, 'custom_price_display'), 10, 2); 37 37 add_action('woocommerce_before_single_product', array($this, 'custom_product_modifications')); 38 add_action('woocommerce_after_single_product_summary', array($this, 'show_amaspace_iframe_block'), 20); 38 // Используем woocommerce_after_single_product - стандартный хук, который вызывается в любом шаблоне 39 add_action('woocommerce_after_single_product', array($this, 'show_amaspace_iframe_block'), 20); 39 40 40 41 // Add assets - проверяем контент и подключаем скрипты -
amaspace/trunk/readme.txt
r3450697 r3462529 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.