Plugin Directory

Changeset 2849598


Ignore:
Timestamp:
01/17/2023 07:28:17 AM (3 years ago)
Author:
om4
Message:

Update to version 0.2.0 from GitHub

Location:
copycraft
Files:
4 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • copycraft/tags/0.2.0/copycraft.php

    r2849557 r2849598  
    33 * Plugin Name:     CopyCraft
    44 * Plugin URI:      http://copycraft.ai
    5  * Description:     AI-powered accurate and compelling product descriptions for your WooCommerce products using OpenAI's GPT-3.
    6  * Author:          OM4 Software
    7  * Author URI:      https://om4.io/
     5 * Description:     AI-powered compelling product descriptions for your WooCommerce products using OpenAI GPT-3.
     6 * Author:          Tectalic
     7 * Author URI:      https://tectalic.com/
    88 * Text Domain:     copycraft
    99 * Domain Path:     /languages
    10  * Version:         0.1.1
     10 * Version:         0.2
    1111 */
    1212
  • copycraft/tags/0.2.0/includes/Modal/OpenAi_Generator.php

    r2849557 r2849598  
    170170        if ( ! empty( $product->get_attributes() ) ) {
    171171            $prompt .= '- Attributes: ';
     172
     173            /**
     174             * Product Attributes can be store-wide or custom per-product attributes.
     175             *
     176             * Logic based on wc_display_product_attributes() function.
     177             *
     178             * @see wc_display_product_attributes()
     179             */
     180
    172181            foreach ( $product->get_attributes() as $attribute ) {
    173                 $prompt .= $attribute->get_name() . ': ' . implode( ', ', $attribute->get_options() ) . '. ';
     182                $attribute_name   = '';
     183                $attribute_values = array();
     184                if ( $attribute->is_taxonomy() ) {
     185                    // Storewide attribute.
     186                    $attribute_taxonomy = $attribute->get_taxonomy_object();
     187                    $attribute_name     = $attribute_taxonomy->attribute_label;
     188                    $values             = wc_get_product_terms( $product->get_id(), $attribute->get_name(), array( 'fields' => 'all' ) );
     189                    foreach ( $values as $attribute_value ) {
     190                        $attribute_values[] = esc_html( $attribute_value->name );
     191                    }
     192                } else {
     193                    // Custom per-product attribute.
     194                    $attribute_name   = $attribute->get_name();
     195                    $attribute_values = $attribute->get_options();
     196                    foreach ( $attribute_values as &$value ) {
     197                        $value = esc_html( $value );
     198                    }
     199                }
     200
     201                $prompt .= esc_html( $attribute_name ) . ': ' . implode( ', ', $attribute_values ) . '. ';
    174202            }
    175203            $prompt = rtrim( $prompt ) . "\n";
  • copycraft/tags/0.2.0/readme.txt

    r2849557 r2849598  
    1 === CopyCraft: AI-Powered Copywriting and Content Generator ===
     1=== CopyCraft: AI-Powered WooCommerce Product Descriptions Using OpenAI GPT-3 ===
    22Contributors: jamescollins, om4csaba, OM4
    33Donate link: http://copycraft.ai
    4 Tags: WooCommerce, Product descriptions, Artificial intelligence, AI, Copywriting, OpenAI
     4Tags: WooCommerce, AI, OpenAI, GPT-3, Copywriting
    55Requires at least: 5.9.0
    66Tested up to: 6.1.0
    77Requires PHP: 7.4
    8 Stable tag: 0.1.1
     8Stable tag: 0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 CopyCraft is an AI-powered WordPress plugin that helps you create accurate and compelling product descriptions for your WooCommerce products.
     12Create compelling WooCommerce product descriptions using OpenAI GPT-3.
    1313
    1414== Description ==
    1515
    16 CopyCraft is designed to make the task of writing product descriptions easier and more efficient. It uses advanced AI algorithms to analyze your products and generate descriptions that are informative and engaging. With CopyCraft, you can save time and effort while still ensuring that your product descriptions are of the highest quality.
     16CopyCraft is designed to make the task of writing WooCommerce product descriptions easier and more efficient. It uses advanced AI algorithms to analyze your products and generate descriptions that are informative and engaging. With CopyCraft, you can save time and effort while still ensuring that your product descriptions are of the highest quality.
    1717
    1818Uses OpenAI's GPT-3 API to generate product descriptions.
     
    2121
    2222- AI-powered product description generator
    23 - Accurate and compelling descriptions
    24 - Easy to use interface
     23- Generates compelling product descriptions
     24- Easy to use interface - integrates with the WooCommerce Add Product or Edit Product screens
    2525- Works with WooCommerce
    2626
     
    4848= Can I customize the generated product descriptions? =
    4949
    50 Yes, you can edit the generated descriptions to suit your needs. The plugin provides a convenient WYSIWYG editor for this purpose.
     50Yes, you can edit the generated descriptions to suit your needs. The plugin integrates with the WooCommerce product editing screen for this purpose.
     51
     52= What AI Engine is Used? =
     53
     54OpenAI's GPT-3 API is used to generate the product descriptions. We also plan on supporting OpenAI's ChatGPT in the future.
    5155
    5256= Is the plugin compatible with other e-commerce platforms besides WooCommerce? =
     
    5559
    5660== Changelog ==
     61
     62= 0.2 =
     63* Add support for global store-wide product attributes.
    5764
    5865= 0.1.1 =
     
    6471== Upgrade Notice ==
    6572
     73= 0.2 =
     74* Add support for global store-wide product attributes.
     75
    6676= 0.1.1 =
    6777* Public release for WordPress.org plugin repository.
  • copycraft/trunk/copycraft.php

    r2849557 r2849598  
    33 * Plugin Name:     CopyCraft
    44 * Plugin URI:      http://copycraft.ai
    5  * Description:     AI-powered accurate and compelling product descriptions for your WooCommerce products using OpenAI's GPT-3.
    6  * Author:          OM4 Software
    7  * Author URI:      https://om4.io/
     5 * Description:     AI-powered compelling product descriptions for your WooCommerce products using OpenAI GPT-3.
     6 * Author:          Tectalic
     7 * Author URI:      https://tectalic.com/
    88 * Text Domain:     copycraft
    99 * Domain Path:     /languages
    10  * Version:         0.1.1
     10 * Version:         0.2
    1111 */
    1212
  • copycraft/trunk/includes/Modal/OpenAi_Generator.php

    r2849557 r2849598  
    170170        if ( ! empty( $product->get_attributes() ) ) {
    171171            $prompt .= '- Attributes: ';
     172
     173            /**
     174             * Product Attributes can be store-wide or custom per-product attributes.
     175             *
     176             * Logic based on wc_display_product_attributes() function.
     177             *
     178             * @see wc_display_product_attributes()
     179             */
     180
    172181            foreach ( $product->get_attributes() as $attribute ) {
    173                 $prompt .= $attribute->get_name() . ': ' . implode( ', ', $attribute->get_options() ) . '. ';
     182                $attribute_name   = '';
     183                $attribute_values = array();
     184                if ( $attribute->is_taxonomy() ) {
     185                    // Storewide attribute.
     186                    $attribute_taxonomy = $attribute->get_taxonomy_object();
     187                    $attribute_name     = $attribute_taxonomy->attribute_label;
     188                    $values             = wc_get_product_terms( $product->get_id(), $attribute->get_name(), array( 'fields' => 'all' ) );
     189                    foreach ( $values as $attribute_value ) {
     190                        $attribute_values[] = esc_html( $attribute_value->name );
     191                    }
     192                } else {
     193                    // Custom per-product attribute.
     194                    $attribute_name   = $attribute->get_name();
     195                    $attribute_values = $attribute->get_options();
     196                    foreach ( $attribute_values as &$value ) {
     197                        $value = esc_html( $value );
     198                    }
     199                }
     200
     201                $prompt .= esc_html( $attribute_name ) . ': ' . implode( ', ', $attribute_values ) . '. ';
    174202            }
    175203            $prompt = rtrim( $prompt ) . "\n";
  • copycraft/trunk/readme.txt

    r2849557 r2849598  
    1 === CopyCraft: AI-Powered Copywriting and Content Generator ===
     1=== CopyCraft: AI-Powered WooCommerce Product Descriptions Using OpenAI GPT-3 ===
    22Contributors: jamescollins, om4csaba, OM4
    33Donate link: http://copycraft.ai
    4 Tags: WooCommerce, Product descriptions, Artificial intelligence, AI, Copywriting, OpenAI
     4Tags: WooCommerce, AI, OpenAI, GPT-3, Copywriting
    55Requires at least: 5.9.0
    66Tested up to: 6.1.0
    77Requires PHP: 7.4
    8 Stable tag: 0.1.1
     8Stable tag: 0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 CopyCraft is an AI-powered WordPress plugin that helps you create accurate and compelling product descriptions for your WooCommerce products.
     12Create compelling WooCommerce product descriptions using OpenAI GPT-3.
    1313
    1414== Description ==
    1515
    16 CopyCraft is designed to make the task of writing product descriptions easier and more efficient. It uses advanced AI algorithms to analyze your products and generate descriptions that are informative and engaging. With CopyCraft, you can save time and effort while still ensuring that your product descriptions are of the highest quality.
     16CopyCraft is designed to make the task of writing WooCommerce product descriptions easier and more efficient. It uses advanced AI algorithms to analyze your products and generate descriptions that are informative and engaging. With CopyCraft, you can save time and effort while still ensuring that your product descriptions are of the highest quality.
    1717
    1818Uses OpenAI's GPT-3 API to generate product descriptions.
     
    2121
    2222- AI-powered product description generator
    23 - Accurate and compelling descriptions
    24 - Easy to use interface
     23- Generates compelling product descriptions
     24- Easy to use interface - integrates with the WooCommerce Add Product or Edit Product screens
    2525- Works with WooCommerce
    2626
     
    4848= Can I customize the generated product descriptions? =
    4949
    50 Yes, you can edit the generated descriptions to suit your needs. The plugin provides a convenient WYSIWYG editor for this purpose.
     50Yes, you can edit the generated descriptions to suit your needs. The plugin integrates with the WooCommerce product editing screen for this purpose.
     51
     52= What AI Engine is Used? =
     53
     54OpenAI's GPT-3 API is used to generate the product descriptions. We also plan on supporting OpenAI's ChatGPT in the future.
    5155
    5256= Is the plugin compatible with other e-commerce platforms besides WooCommerce? =
     
    5559
    5660== Changelog ==
     61
     62= 0.2 =
     63* Add support for global store-wide product attributes.
    5764
    5865= 0.1.1 =
     
    6471== Upgrade Notice ==
    6572
     73= 0.2 =
     74* Add support for global store-wide product attributes.
     75
    6676= 0.1.1 =
    6777* Public release for WordPress.org plugin repository.
Note: See TracChangeset for help on using the changeset viewer.