Plugin Directory

Changeset 3462529


Ignore:
Timestamp:
02/16/2026 01:11:25 PM (7 weeks ago)
Author:
amaspace
Message:

Release 1.0.7

Location:
amaspace
Files:
5 edited
12 copied

Legend:

Unmodified
Added
Removed
  • amaspace/tags/1.0.7/ama_customizer.php

    r3450697 r3462529  
    44 * Plugin Name: Amaspace
    55 * Description: Custom WordPress plugin for AMA project
    6  * Version: 1.0.6
     6 * Version: 1.0.7
    77 * Author: Amaspace Team
    88 * Author URI: https://amaspace.co
  • amaspace/tags/1.0.7/includes/class-ama-ajax-handler.php

    r3391846 r3462529  
    163163            'wp_product_parrent_id' => isset($post_data['wp_product_parrent_id']) ? intval($post_data['wp_product_parrent_id']) : null,
    164164            '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']) : '',
    165166            'ama_product_id' => isset($post_data['ama_product_id']) ? intval($post_data['ama_product_id']) : null,
    166167        );
  • amaspace/tags/1.0.7/includes/class-ama-product.php

    r3391846 r3462529  
    118118            'token' => $token,
    119119            'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "",
     120            'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "",
    120121        ];
    121122        $precompose = $this->ama_api->amaspace_create_precompose($precompose_data);
     
    224225        $this->ama_api->amaspace_create_integration_product($product_id, $precompose_id, $token);
    225226
     227        do_action('amaspace_product_created', $product_id);
     228
    226229        return $product_id;
    227230    }
     
    313316            'token' => $token,
    314317            'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "",
     318            'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "",
    315319        ];
    316320        $precompose_id = $this->ama_api->amaspace_create_precompose($precompose_data);
  • amaspace/tags/1.0.7/includes/class-frontend.php

    r3450697 r3462529  
    3636        add_filter('woocommerce_product_get_price', array($this, 'custom_price_display'), 10, 2);
    3737        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);
    3940
    4041        // Add assets - проверяем контент и подключаем скрипты
  • amaspace/tags/1.0.7/readme.txt

    r3450697 r3462529  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • amaspace/trunk/ama_customizer.php

    r3450697 r3462529  
    44 * Plugin Name: Amaspace
    55 * Description: Custom WordPress plugin for AMA project
    6  * Version: 1.0.6
     6 * Version: 1.0.7
    77 * Author: Amaspace Team
    88 * Author URI: https://amaspace.co
  • amaspace/trunk/includes/class-ama-ajax-handler.php

    r3391846 r3462529  
    163163            'wp_product_parrent_id' => isset($post_data['wp_product_parrent_id']) ? intval($post_data['wp_product_parrent_id']) : null,
    164164            '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']) : '',
    165166            'ama_product_id' => isset($post_data['ama_product_id']) ? intval($post_data['ama_product_id']) : null,
    166167        );
  • amaspace/trunk/includes/class-ama-product.php

    r3391846 r3462529  
    118118            'token' => $token,
    119119            'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "",
     120            'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "",
    120121        ];
    121122        $precompose = $this->ama_api->amaspace_create_precompose($precompose_data);
     
    224225        $this->ama_api->amaspace_create_integration_product($product_id, $precompose_id, $token);
    225226
     227        do_action('amaspace_product_created', $product_id);
     228
    226229        return $product_id;
    227230    }
     
    313316            'token' => $token,
    314317            'configurator_data' => !empty($data['wp_config']) ? $data['wp_config'] : "",
     318            'configurator_description' => !empty($data['wp_config_description']) ? $data['wp_config_description'] : "",
    315319        ];
    316320        $precompose_id = $this->ama_api->amaspace_create_precompose($precompose_data);
  • amaspace/trunk/includes/class-frontend.php

    r3450697 r3462529  
    3636        add_filter('woocommerce_product_get_price', array($this, 'custom_price_display'), 10, 2);
    3737        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);
    3940
    4041        // Add assets - проверяем контент и подключаем скрипты
  • amaspace/trunk/readme.txt

    r3450697 r3462529  
    55Tested up to: 6.8
    66Requires PHP: 7.2
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.