Plugin Directory

Changeset 3010597


Ignore:
Timestamp:
12/15/2023 03:06:08 PM (2 years ago)
Author:
tinysolution
Message:

Version release

Location:
cpt-woo-integration
Files:
8 added
1 deleted
8 edited
47 copied

Legend:

Unmodified
Added
Removed
  • cpt-woo-integration/tags/1.2.1/README.txt

    r3008335 r3010597  
    11=== Custom Post Type Woocommerce Integration ===
    22Contributors: tinysolution
    3 Tags: add custom post type to wooCommerce, sell custom post type without coding, cpt to woo product, woocommerce integration, woocommerce custom post type linking, woocommerce custom post type relationship, connecting custom post types in woocommerce, integrating CPTs with woocommerce products, woocommerce CPT integration tutorial, linking custom post types to woocommerce products, woocommerce product custom post type, extending woocommerce with custom post types, woocommerce CPT sync, custom post type display in woocommerce, woocommerce and custom post type relationships, woocommerce and external custom post types, custom post type product display in woocommerce, woocommerce custom post type support, integrating custom post types with woocommerce templates, adding custom post type to woocommerce, integration, sell posts, sell pages, custom post type to woocommerce migration, sale custom post types
     3Tags: add custom post type to wooCommerce, cpt to woo product, woocommerce integration, woocommerce custom post type linking, learnPress woocommerce integration, woocommerce custom post type support, adding custom post type to woocommerce, sale custom post types
    44Requires at least: 6.0
    55Tested up to: 6.4
     
    2727Quickly and easily sell pages, posts and custom post types through WooCommerce with this plugin.
    2828
     29== 🏆 Plugin Compatibility ==
     30* LearnPress WooCommerce Integration : When the WooCommerce order status change to 'complete,' user access to the course will be automatically generated.
     31
    2932== 🏆 Free Features ==
    3033
     
    3841* Provided shortcode for display "Short description"
    3942
    40 
    4143== 🏆 PRO Features ==
    4244
    4345* All free Features Included
     46* Product Type - Simple product
     47* Product Type - Variable product
     48* Product Type - External/Affiliate product
     49* Product Type - Grouped Product
    4450* Add sale price dates
    4551* Inventory - Add SKU
     
    4955* Shipping product data
    5056* Product Gallery Images
    51 * Product Type - Simple product
    5257* Add Downloadable Product
    5358* Download file form WooCommerce user account.
     
    5762* CPT Upsells.
    5863* CPT Cross-sells.
    59 * Product Type - Variable product
    60 * Product Type - External/Affiliate product
    6164* Provided Shortcode for Display "SKU"
    6265* Provided Shortcode for Display "Attributes"
     
    148151== Changelog ==
    149152
     153= 1.2.1 ( 15 December, 2023 ) =
     154* Added: Addons Support For Grouped Product
     155* Added: LearnPress WooCommerce Integration
     156
    150157= 1.2.0 ( 11 December, 2023 ) =
    151158* Added: Addons Support For Variation CPT
  • cpt-woo-integration/tags/1.2.1/TinyApp/Controllers/Notice/SpecialDiscount.php

    r3008300 r3010597  
    3232        return [
    3333            //'plugin_name'    => 'Exciting News: Custom Post Type Woocommerce Integration Pro',
    34             'option_name'    => 'special_offer_2023',
     34            'option_name'    => 'cptwooint_special_offer_2023',
    3535            'start_date'     => '10 December 2023',
    3636            'end_date'       => '10 January 2024',
    3737            'notice_for'     => 'New Feature Released!!',
    38             'notice_message' => "<b>Exciting News:</b> Product Type - <b> Variable product </b> feature released, Prior to returning to our regular pricing plan, here's a coupon for you.</b>
     38            'notice_message' => "<b>Exciting News:</b> Product Type - <b> Variable product/Grouped Product </b> feature released, Prior to returning to our regular pricing plan, here's a coupon for you.</b>
    3939            with <b>UP TO 20% OFF</b>! Limited time offer!!"
    4040        ];
  • cpt-woo-integration/tags/1.2.1/TinyApp/Hooks/FilterHooks.php

    r3008300 r3010597  
    4444        // Add suggestions to the product tabs.
    4545        add_filter( 'woocommerce_product_data_tabs', [ $this, 'product_data_tabs' ], 20 );
    46         add_filter( 'product_type_selector', [ $this, 'product_type_selector' ], 20 );
     46        // add_filter( 'product_type_selector', [ $this, 'product_type_selector' ], 20 );
    4747        add_filter( 'woocommerce_format_sale_price', [ $this, 'format_sale_price' ], 20 );
    4848        // add_filter( 'body_class', [ $this, 'wc_body_class' ], 20 );
     
    208208            return $price;
    209209        }
    210 //      $is_add_price_meta = Fns::is_add_cpt_meta( $post_type, 'default_price_meta_field' );
    211 //      if ( $is_add_price_meta ) {
    212 //          $price = $product->get_sale_price() ?: $product->get_regular_price();
    213 //      }
     210
    214211        if ( ! $price ) {
    215212            $price = Fns::cptwoo_get_price( $product->get_id(), 'sale_price' ) ?: Fns::cptwoo_get_price( $product->get_id() );
    216213        }
    217214
    218         return apply_filters( 'cptwoo_product_get_price', wc_format_decimal( $price ), $product );
     215        return apply_filters( 'cptwoo_product_get_price', wc_format_decimal( $price ), $product, $post_type );
    219216    }
    220217
  • cpt-woo-integration/tags/1.2.1/TinyApp/Modal/CPTProductDataStore.php

    r3001653 r3010597  
    2727     */
    2828    public function search_products( $term, $type = '', $include_variations = false, $all_statuses = false, $limit = null, $include = null, $exclude = null ) {
    29          $post_type = get_post_type( $_REQUEST['exclude'] ?? '' );
    30         if(
    31             'woocommerce_json_search_products_and_variations' !== ( $_REQUEST['action'] ?? '' ) ||
    32             ! Fns::is_supported( $post_type )
    33         ){
     29        $post_type = get_post_type( $_REQUEST['exclude'] ?? '' );
     30
     31        if( ! Fns::is_supported( $post_type ) ){
    3432            return parent::search_products( $term, $type, $include_variations, $all_statuses, $limit, $include, $exclude );
    3533        }
  • cpt-woo-integration/tags/1.2.1/TinyApp/cptwooint.php

    r3008300 r3010597  
    2525use TinySolutions\cptwooint\Hooks\ActionHooks;
    2626use TinySolutions\cptwooint\Hooks\FilterHooks;
     27use TinySolutions\cptwooint\PluginsSupport\RootSupport;
    2728use TinySolutions\cptwooint\Traits\SingletonTrait;
    2829
     
    5657        private function __construct() {
    5758
    58             add_action( 'init', [ $this, 'language' ] );
     59            add_action( 'init', [ $this, 'init' ] );
    5960            add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ], 11 );
    6061
     
    107108         * Load Text Domain
    108109         */
    109         public function language() {
     110        public function init() {
    110111            load_plugin_textdomain( 'cptwooint', false, CPTWI_ABSPATH . '/languages/' );
    111112        }
     
    134135            FilterHooks::instance();
    135136            ActionHooks::instance();
     137            RootSupport::instance();
    136138            Api::instance();
    137139
  • cpt-woo-integration/tags/1.2.1/assets/css/frontend/frontend.css

    r3008300 r3010597  
    1 .cpt-price-and-cart-button,.cptwooint-cart-btn-wrapper{display:flex;flex-direction:column;gap:10px}.cpt-price-and-cart-button .cart,.cptwooint-cart-btn-wrapper .cart{gap:10px}.cpt-price-and-cart-button .cart:not(.variations_form),.cptwooint-cart-btn-wrapper .cart:not(.variations_form){display:flex}.cpt-price-and-cart-button .cart .qty,.cpt-price-and-cart-button .cart button,.cptwooint-cart-btn-wrapper .cart .qty,.cptwooint-cart-btn-wrapper .cart button{align-items:center;display:flex;height:50px;justify-content:center}.cpt-price-and-cart-button .cart .qty,.cptwooint-cart-btn-wrapper .cart .qty{min-width:70px}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th{background:transparent;border:none;padding:0;text-align:left}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td p,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th p{margin:0}
     1.cpt-price-and-cart-button,.cptwooint-cart-btn-wrapper{display:flex;flex-direction:column;gap:10px}.cpt-price-and-cart-button .cart,.cptwooint-cart-btn-wrapper .cart{gap:10px}.cpt-price-and-cart-button .cart:not(.variations_form,.grouped_form),.cptwooint-cart-btn-wrapper .cart:not(.variations_form,.grouped_form){display:flex}.cpt-price-and-cart-button .cart .qty,.cpt-price-and-cart-button .cart button,.cptwooint-cart-btn-wrapper .cart .qty,.cptwooint-cart-btn-wrapper .cart button{align-items:center;display:flex;height:50px;justify-content:center}.cpt-price-and-cart-button .cart .qty,.cptwooint-cart-btn-wrapper .cart .qty{min-width:70px}.cpt-price-and-cart-button table tbody>tr:nth-child(odd)>td,.cpt-price-and-cart-button table tbody>tr:nth-child(odd)>th,.cptwooint-cart-btn-wrapper table tbody>tr:nth-child(odd)>td,.cptwooint-cart-btn-wrapper table tbody>tr:nth-child(odd)>th{background-color:initial}.lp-course-buttons .cptwooint-cart-btn-wrapper .cart .qty{cursor:not-allowed;display:none;pointer-events:none}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th{background:transparent;border:none;padding:0;text-align:left}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td p,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th p{margin:0}
  • cpt-woo-integration/tags/1.2.1/cpt-woo-integration.php

    r3008300 r3010597  
    55 * Plugin URI:        https://www.wptinysolutions.com/tiny-products/cpt-woo-integration
    66 * Description:       Integrate custom post type with woocommerce. Sell Any Kind Of Custom Post
    7  * Version:           1.2.0
     7 * Version:           1.2.1
    88 * Author:            Tiny Solutions
    99 * Author URI:        https://www.wptinysolutions.com/
    1010 * Tested up to:      6.4
    11  * WC tested up to:   8.3
     11 * WC tested up to:   8.4
    1212 * Text Domain:       cptwooint
    1313 * Domain Path:       /languages
     
    2525 */
    2626
    27 define( 'CPTWI_VERSION', '1.2.0' );
     27define( 'CPTWI_VERSION', '1.2.1' );
    2828
    2929define( 'CPTWI_FILE', __FILE__ );
  • cpt-woo-integration/tags/1.2.1/languages/cpt-woo-integration.pot

    r3008300 r3010597  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2023-12-11 17:17+0000\n"
     9"POT-Creation-Date: 2023-12-15 14:52+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    6464msgstr ""
    6565
    66 #: ../TinyApp/Hooks/FilterHooks.php:252
     66#: ../TinyApp/Hooks/FilterHooks.php:249
    6767msgid "Settings"
    6868msgstr ""
    6969
    70 #: ../TinyApp/Hooks/FilterHooks.php:254
     70#: ../TinyApp/Hooks/FilterHooks.php:251
    7171msgid "Go Pro"
    7272msgstr ""
  • cpt-woo-integration/trunk/README.txt

    r3008335 r3010597  
    11=== Custom Post Type Woocommerce Integration ===
    22Contributors: tinysolution
    3 Tags: add custom post type to wooCommerce, sell custom post type without coding, cpt to woo product, woocommerce integration, woocommerce custom post type linking, woocommerce custom post type relationship, connecting custom post types in woocommerce, integrating CPTs with woocommerce products, woocommerce CPT integration tutorial, linking custom post types to woocommerce products, woocommerce product custom post type, extending woocommerce with custom post types, woocommerce CPT sync, custom post type display in woocommerce, woocommerce and custom post type relationships, woocommerce and external custom post types, custom post type product display in woocommerce, woocommerce custom post type support, integrating custom post types with woocommerce templates, adding custom post type to woocommerce, integration, sell posts, sell pages, custom post type to woocommerce migration, sale custom post types
     3Tags: add custom post type to wooCommerce, cpt to woo product, woocommerce integration, woocommerce custom post type linking, learnPress woocommerce integration, woocommerce custom post type support, adding custom post type to woocommerce, sale custom post types
    44Requires at least: 6.0
    55Tested up to: 6.4
     
    2727Quickly and easily sell pages, posts and custom post types through WooCommerce with this plugin.
    2828
     29== 🏆 Plugin Compatibility ==
     30* LearnPress WooCommerce Integration : When the WooCommerce order status change to 'complete,' user access to the course will be automatically generated.
     31
    2932== 🏆 Free Features ==
    3033
     
    3841* Provided shortcode for display "Short description"
    3942
    40 
    4143== 🏆 PRO Features ==
    4244
    4345* All free Features Included
     46* Product Type - Simple product
     47* Product Type - Variable product
     48* Product Type - External/Affiliate product
     49* Product Type - Grouped Product
    4450* Add sale price dates
    4551* Inventory - Add SKU
     
    4955* Shipping product data
    5056* Product Gallery Images
    51 * Product Type - Simple product
    5257* Add Downloadable Product
    5358* Download file form WooCommerce user account.
     
    5762* CPT Upsells.
    5863* CPT Cross-sells.
    59 * Product Type - Variable product
    60 * Product Type - External/Affiliate product
    6164* Provided Shortcode for Display "SKU"
    6265* Provided Shortcode for Display "Attributes"
     
    148151== Changelog ==
    149152
     153= 1.2.1 ( 15 December, 2023 ) =
     154* Added: Addons Support For Grouped Product
     155* Added: LearnPress WooCommerce Integration
     156
    150157= 1.2.0 ( 11 December, 2023 ) =
    151158* Added: Addons Support For Variation CPT
  • cpt-woo-integration/trunk/TinyApp/Controllers/Notice/SpecialDiscount.php

    r3008300 r3010597  
    3232        return [
    3333            //'plugin_name'    => 'Exciting News: Custom Post Type Woocommerce Integration Pro',
    34             'option_name'    => 'special_offer_2023',
     34            'option_name'    => 'cptwooint_special_offer_2023',
    3535            'start_date'     => '10 December 2023',
    3636            'end_date'       => '10 January 2024',
    3737            'notice_for'     => 'New Feature Released!!',
    38             'notice_message' => "<b>Exciting News:</b> Product Type - <b> Variable product </b> feature released, Prior to returning to our regular pricing plan, here's a coupon for you.</b>
     38            'notice_message' => "<b>Exciting News:</b> Product Type - <b> Variable product/Grouped Product </b> feature released, Prior to returning to our regular pricing plan, here's a coupon for you.</b>
    3939            with <b>UP TO 20% OFF</b>! Limited time offer!!"
    4040        ];
  • cpt-woo-integration/trunk/TinyApp/Hooks/FilterHooks.php

    r3008300 r3010597  
    4444        // Add suggestions to the product tabs.
    4545        add_filter( 'woocommerce_product_data_tabs', [ $this, 'product_data_tabs' ], 20 );
    46         add_filter( 'product_type_selector', [ $this, 'product_type_selector' ], 20 );
     46        // add_filter( 'product_type_selector', [ $this, 'product_type_selector' ], 20 );
    4747        add_filter( 'woocommerce_format_sale_price', [ $this, 'format_sale_price' ], 20 );
    4848        // add_filter( 'body_class', [ $this, 'wc_body_class' ], 20 );
     
    208208            return $price;
    209209        }
    210 //      $is_add_price_meta = Fns::is_add_cpt_meta( $post_type, 'default_price_meta_field' );
    211 //      if ( $is_add_price_meta ) {
    212 //          $price = $product->get_sale_price() ?: $product->get_regular_price();
    213 //      }
     210
    214211        if ( ! $price ) {
    215212            $price = Fns::cptwoo_get_price( $product->get_id(), 'sale_price' ) ?: Fns::cptwoo_get_price( $product->get_id() );
    216213        }
    217214
    218         return apply_filters( 'cptwoo_product_get_price', wc_format_decimal( $price ), $product );
     215        return apply_filters( 'cptwoo_product_get_price', wc_format_decimal( $price ), $product, $post_type );
    219216    }
    220217
  • cpt-woo-integration/trunk/TinyApp/Modal/CPTProductDataStore.php

    r3001653 r3010597  
    2727     */
    2828    public function search_products( $term, $type = '', $include_variations = false, $all_statuses = false, $limit = null, $include = null, $exclude = null ) {
    29          $post_type = get_post_type( $_REQUEST['exclude'] ?? '' );
    30         if(
    31             'woocommerce_json_search_products_and_variations' !== ( $_REQUEST['action'] ?? '' ) ||
    32             ! Fns::is_supported( $post_type )
    33         ){
     29        $post_type = get_post_type( $_REQUEST['exclude'] ?? '' );
     30
     31        if( ! Fns::is_supported( $post_type ) ){
    3432            return parent::search_products( $term, $type, $include_variations, $all_statuses, $limit, $include, $exclude );
    3533        }
  • cpt-woo-integration/trunk/TinyApp/cptwooint.php

    r3008300 r3010597  
    2525use TinySolutions\cptwooint\Hooks\ActionHooks;
    2626use TinySolutions\cptwooint\Hooks\FilterHooks;
     27use TinySolutions\cptwooint\PluginsSupport\RootSupport;
    2728use TinySolutions\cptwooint\Traits\SingletonTrait;
    2829
     
    5657        private function __construct() {
    5758
    58             add_action( 'init', [ $this, 'language' ] );
     59            add_action( 'init', [ $this, 'init' ] );
    5960            add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ], 11 );
    6061
     
    107108         * Load Text Domain
    108109         */
    109         public function language() {
     110        public function init() {
    110111            load_plugin_textdomain( 'cptwooint', false, CPTWI_ABSPATH . '/languages/' );
    111112        }
     
    134135            FilterHooks::instance();
    135136            ActionHooks::instance();
     137            RootSupport::instance();
    136138            Api::instance();
    137139
  • cpt-woo-integration/trunk/assets/css/frontend/frontend.css

    r3008300 r3010597  
    1 .cpt-price-and-cart-button,.cptwooint-cart-btn-wrapper{display:flex;flex-direction:column;gap:10px}.cpt-price-and-cart-button .cart,.cptwooint-cart-btn-wrapper .cart{gap:10px}.cpt-price-and-cart-button .cart:not(.variations_form),.cptwooint-cart-btn-wrapper .cart:not(.variations_form){display:flex}.cpt-price-and-cart-button .cart .qty,.cpt-price-and-cart-button .cart button,.cptwooint-cart-btn-wrapper .cart .qty,.cptwooint-cart-btn-wrapper .cart button{align-items:center;display:flex;height:50px;justify-content:center}.cpt-price-and-cart-button .cart .qty,.cptwooint-cart-btn-wrapper .cart .qty{min-width:70px}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th{background:transparent;border:none;padding:0;text-align:left}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td p,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th p{margin:0}
     1.cpt-price-and-cart-button,.cptwooint-cart-btn-wrapper{display:flex;flex-direction:column;gap:10px}.cpt-price-and-cart-button .cart,.cptwooint-cart-btn-wrapper .cart{gap:10px}.cpt-price-and-cart-button .cart:not(.variations_form,.grouped_form),.cptwooint-cart-btn-wrapper .cart:not(.variations_form,.grouped_form){display:flex}.cpt-price-and-cart-button .cart .qty,.cpt-price-and-cart-button .cart button,.cptwooint-cart-btn-wrapper .cart .qty,.cptwooint-cart-btn-wrapper .cart button{align-items:center;display:flex;height:50px;justify-content:center}.cpt-price-and-cart-button .cart .qty,.cptwooint-cart-btn-wrapper .cart .qty{min-width:70px}.cpt-price-and-cart-button table tbody>tr:nth-child(odd)>td,.cpt-price-and-cart-button table tbody>tr:nth-child(odd)>th,.cptwooint-cart-btn-wrapper table tbody>tr:nth-child(odd)>td,.cptwooint-cart-btn-wrapper table tbody>tr:nth-child(odd)>th{background-color:initial}.lp-course-buttons .cptwooint-cart-btn-wrapper .cart .qty{cursor:not-allowed;display:none;pointer-events:none}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th{background:transparent;border:none;padding:0;text-align:left}.cptwooint-product-attributes table tbody>tr:nth-child(odd)>td p,.cptwooint-product-attributes table tbody>tr:nth-child(odd)>th p{margin:0}
  • cpt-woo-integration/trunk/cpt-woo-integration.php

    r3008300 r3010597  
    55 * Plugin URI:        https://www.wptinysolutions.com/tiny-products/cpt-woo-integration
    66 * Description:       Integrate custom post type with woocommerce. Sell Any Kind Of Custom Post
    7  * Version:           1.2.0
     7 * Version:           1.2.1
    88 * Author:            Tiny Solutions
    99 * Author URI:        https://www.wptinysolutions.com/
    1010 * Tested up to:      6.4
    11  * WC tested up to:   8.3
     11 * WC tested up to:   8.4
    1212 * Text Domain:       cptwooint
    1313 * Domain Path:       /languages
     
    2525 */
    2626
    27 define( 'CPTWI_VERSION', '1.2.0' );
     27define( 'CPTWI_VERSION', '1.2.1' );
    2828
    2929define( 'CPTWI_FILE', __FILE__ );
  • cpt-woo-integration/trunk/languages/cpt-woo-integration.pot

    r3008300 r3010597  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2023-12-11 17:17+0000\n"
     9"POT-Creation-Date: 2023-12-15 14:52+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    6464msgstr ""
    6565
    66 #: ../TinyApp/Hooks/FilterHooks.php:252
     66#: ../TinyApp/Hooks/FilterHooks.php:249
    6767msgid "Settings"
    6868msgstr ""
    6969
    70 #: ../TinyApp/Hooks/FilterHooks.php:254
     70#: ../TinyApp/Hooks/FilterHooks.php:251
    7171msgid "Go Pro"
    7272msgstr ""
Note: See TracChangeset for help on using the changeset viewer.