Changeset 3010597
- Timestamp:
- 12/15/2023 03:06:08 PM (2 years ago)
- Location:
- cpt-woo-integration
- Files:
-
- 8 added
- 1 deleted
- 8 edited
- 47 copied
-
tags/1.2.1 (copied) (copied from cpt-woo-integration/trunk)
-
tags/1.2.1/README.txt (copied) (copied from cpt-woo-integration/trunk/README.txt) (6 diffs)
-
tags/1.2.1/TinyApp/Abs (copied) (copied from cpt-woo-integration/trunk/TinyApp/Abs)
-
tags/1.2.1/TinyApp/Abs/Discount.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Abs/Discount.php)
-
tags/1.2.1/TinyApp/Controllers/Admin/AdminMenu.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Admin/AdminMenu.php)
-
tags/1.2.1/TinyApp/Controllers/Admin/Api.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Admin/Api.php)
-
tags/1.2.1/TinyApp/Controllers/Admin/ProductAdminAssets.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Admin/ProductAdminAssets.php)
-
tags/1.2.1/TinyApp/Controllers/Admin/ProductMetaBoxes.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Admin/ProductMetaBoxes.php)
-
tags/1.2.1/TinyApp/Controllers/Admin/Review.php (deleted)
-
tags/1.2.1/TinyApp/Controllers/AdminController.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/AdminController.php)
-
tags/1.2.1/TinyApp/Controllers/AssetsController.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/AssetsController.php)
-
tags/1.2.1/TinyApp/Controllers/Dependencies.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Dependencies.php)
-
tags/1.2.1/TinyApp/Controllers/Installation.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Installation.php)
-
tags/1.2.1/TinyApp/Controllers/Notice (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Notice)
-
tags/1.2.1/TinyApp/Controllers/Notice/BlackFriday.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Notice/BlackFriday.php)
-
tags/1.2.1/TinyApp/Controllers/Notice/Review.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Notice/Review.php)
-
tags/1.2.1/TinyApp/Controllers/Notice/SpecialDiscount.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/Notice/SpecialDiscount.php) (1 diff)
-
tags/1.2.1/TinyApp/Controllers/ShortCodes.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Controllers/ShortCodes.php)
-
tags/1.2.1/TinyApp/Helpers/Fns.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Helpers/Fns.php)
-
tags/1.2.1/TinyApp/Hooks/ActionHooks.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Hooks/ActionHooks.php)
-
tags/1.2.1/TinyApp/Hooks/FilterHooks.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Hooks/FilterHooks.php) (2 diffs)
-
tags/1.2.1/TinyApp/Modal/CPTOrderItemProduct.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Modal/CPTOrderItemProduct.php)
-
tags/1.2.1/TinyApp/Modal/CPTProductDataStore.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Modal/CPTProductDataStore.php) (1 diff)
-
tags/1.2.1/TinyApp/PluginsSupport (added)
-
tags/1.2.1/TinyApp/PluginsSupport/LearnPress (added)
-
tags/1.2.1/TinyApp/PluginsSupport/LearnPress/LPInit.php (added)
-
tags/1.2.1/TinyApp/PluginsSupport/RootSupport.php (added)
-
tags/1.2.1/TinyApp/Traits/CptProductDataStoreReadTrait.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Traits/CptProductDataStoreReadTrait.php)
-
tags/1.2.1/TinyApp/Traits/SingletonTrait.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/Traits/SingletonTrait.php)
-
tags/1.2.1/TinyApp/cptwooint.php (copied) (copied from cpt-woo-integration/trunk/TinyApp/cptwooint.php) (4 diffs)
-
tags/1.2.1/assets/css/backend/admin-settings.css (copied) (copied from cpt-woo-integration/trunk/assets/css/backend/admin-settings.css)
-
tags/1.2.1/assets/css/frontend (copied) (copied from cpt-woo-integration/trunk/assets/css/frontend)
-
tags/1.2.1/assets/css/frontend/frontend.css (copied) (copied from cpt-woo-integration/trunk/assets/css/frontend/frontend.css) (1 diff)
-
tags/1.2.1/assets/images (copied) (copied from cpt-woo-integration/trunk/assets/images)
-
tags/1.2.1/assets/images/cpt-woo-icon-150x150.png (copied) (copied from cpt-woo-integration/trunk/assets/images/cpt-woo-icon-150x150.png)
-
tags/1.2.1/assets/js/backend/admin-settings.js (copied) (copied from cpt-woo-integration/trunk/assets/js/backend/admin-settings.js)
-
tags/1.2.1/assets/js/backend/cptwooint-metabox-scripts.js (copied) (copied from cpt-woo-integration/trunk/assets/js/backend/cptwooint-metabox-scripts.js)
-
tags/1.2.1/assets/js/frontend (copied) (copied from cpt-woo-integration/trunk/assets/js/frontend)
-
tags/1.2.1/cpt-woo-integration.php (copied) (copied from cpt-woo-integration/trunk/cpt-woo-integration.php) (2 diffs)
-
tags/1.2.1/languages/cpt-woo-integration.pot (copied) (copied from cpt-woo-integration/trunk/languages/cpt-woo-integration.pot) (2 diffs)
-
tags/1.2.1/uninstall.php (copied) (copied from cpt-woo-integration/trunk/uninstall.php)
-
tags/1.2.1/vendor/autoload.php (copied) (copied from cpt-woo-integration/trunk/vendor/autoload.php)
-
tags/1.2.1/vendor/composer/ClassLoader.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/ClassLoader.php)
-
tags/1.2.1/vendor/composer/InstalledVersions.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/InstalledVersions.php)
-
tags/1.2.1/vendor/composer/LICENSE (copied) (copied from cpt-woo-integration/trunk/vendor/composer/LICENSE)
-
tags/1.2.1/vendor/composer/autoload_classmap.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/autoload_classmap.php)
-
tags/1.2.1/vendor/composer/autoload_namespaces.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/autoload_namespaces.php)
-
tags/1.2.1/vendor/composer/autoload_psr4.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/autoload_psr4.php)
-
tags/1.2.1/vendor/composer/autoload_real.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/autoload_real.php)
-
tags/1.2.1/vendor/composer/autoload_static.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/autoload_static.php)
-
tags/1.2.1/vendor/composer/installed.json (copied) (copied from cpt-woo-integration/trunk/vendor/composer/installed.json)
-
tags/1.2.1/vendor/composer/installed.php (copied) (copied from cpt-woo-integration/trunk/vendor/composer/installed.php)
-
trunk/README.txt (modified) (6 diffs)
-
trunk/TinyApp/Controllers/Notice/SpecialDiscount.php (modified) (1 diff)
-
trunk/TinyApp/Hooks/FilterHooks.php (modified) (2 diffs)
-
trunk/TinyApp/Modal/CPTProductDataStore.php (modified) (1 diff)
-
trunk/TinyApp/PluginsSupport (added)
-
trunk/TinyApp/PluginsSupport/LearnPress (added)
-
trunk/TinyApp/PluginsSupport/LearnPress/LPInit.php (added)
-
trunk/TinyApp/PluginsSupport/RootSupport.php (added)
-
trunk/TinyApp/cptwooint.php (modified) (4 diffs)
-
trunk/assets/css/frontend/frontend.css (modified) (1 diff)
-
trunk/cpt-woo-integration.php (modified) (2 diffs)
-
trunk/languages/cpt-woo-integration.pot (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpt-woo-integration/tags/1.2.1/README.txt
r3008335 r3010597 1 1 === Custom Post Type Woocommerce Integration === 2 2 Contributors: 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 types3 Tags: 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 4 4 Requires at least: 6.0 5 5 Tested up to: 6.4 … … 27 27 Quickly and easily sell pages, posts and custom post types through WooCommerce with this plugin. 28 28 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 29 32 == 🏆 Free Features == 30 33 … … 38 41 * Provided shortcode for display "Short description" 39 42 40 41 43 == 🏆 PRO Features == 42 44 43 45 * 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 44 50 * Add sale price dates 45 51 * Inventory - Add SKU … … 49 55 * Shipping product data 50 56 * Product Gallery Images 51 * Product Type - Simple product52 57 * Add Downloadable Product 53 58 * Download file form WooCommerce user account. … … 57 62 * CPT Upsells. 58 63 * CPT Cross-sells. 59 * Product Type - Variable product60 * Product Type - External/Affiliate product61 64 * Provided Shortcode for Display "SKU" 62 65 * Provided Shortcode for Display "Attributes" … … 148 151 == Changelog == 149 152 153 = 1.2.1 ( 15 December, 2023 ) = 154 * Added: Addons Support For Grouped Product 155 * Added: LearnPress WooCommerce Integration 156 150 157 = 1.2.0 ( 11 December, 2023 ) = 151 158 * Added: Addons Support For Variation CPT -
cpt-woo-integration/tags/1.2.1/TinyApp/Controllers/Notice/SpecialDiscount.php
r3008300 r3010597 32 32 return [ 33 33 //'plugin_name' => 'Exciting News: Custom Post Type Woocommerce Integration Pro', 34 'option_name' => ' special_offer_2023',34 'option_name' => 'cptwooint_special_offer_2023', 35 35 'start_date' => '10 December 2023', 36 36 'end_date' => '10 January 2024', 37 37 '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> 39 39 with <b>UP TO 20% OFF</b>! Limited time offer!!" 40 40 ]; -
cpt-woo-integration/tags/1.2.1/TinyApp/Hooks/FilterHooks.php
r3008300 r3010597 44 44 // Add suggestions to the product tabs. 45 45 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 ); 47 47 add_filter( 'woocommerce_format_sale_price', [ $this, 'format_sale_price' ], 20 ); 48 48 // add_filter( 'body_class', [ $this, 'wc_body_class' ], 20 ); … … 208 208 return $price; 209 209 } 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 214 211 if ( ! $price ) { 215 212 $price = Fns::cptwoo_get_price( $product->get_id(), 'sale_price' ) ?: Fns::cptwoo_get_price( $product->get_id() ); 216 213 } 217 214 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 ); 219 216 } 220 217 -
cpt-woo-integration/tags/1.2.1/TinyApp/Modal/CPTProductDataStore.php
r3001653 r3010597 27 27 */ 28 28 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 ) ){ 34 32 return parent::search_products( $term, $type, $include_variations, $all_statuses, $limit, $include, $exclude ); 35 33 } -
cpt-woo-integration/tags/1.2.1/TinyApp/cptwooint.php
r3008300 r3010597 25 25 use TinySolutions\cptwooint\Hooks\ActionHooks; 26 26 use TinySolutions\cptwooint\Hooks\FilterHooks; 27 use TinySolutions\cptwooint\PluginsSupport\RootSupport; 27 28 use TinySolutions\cptwooint\Traits\SingletonTrait; 28 29 … … 56 57 private function __construct() { 57 58 58 add_action( 'init', [ $this, ' language' ] );59 add_action( 'init', [ $this, 'init' ] ); 59 60 add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ], 11 ); 60 61 … … 107 108 * Load Text Domain 108 109 */ 109 public function language() {110 public function init() { 110 111 load_plugin_textdomain( 'cptwooint', false, CPTWI_ABSPATH . '/languages/' ); 111 112 } … … 134 135 FilterHooks::instance(); 135 136 ActionHooks::instance(); 137 RootSupport::instance(); 136 138 Api::instance(); 137 139 -
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 5 5 * Plugin URI: https://www.wptinysolutions.com/tiny-products/cpt-woo-integration 6 6 * Description: Integrate custom post type with woocommerce. Sell Any Kind Of Custom Post 7 * Version: 1.2. 07 * Version: 1.2.1 8 8 * Author: Tiny Solutions 9 9 * Author URI: https://www.wptinysolutions.com/ 10 10 * Tested up to: 6.4 11 * WC tested up to: 8. 311 * WC tested up to: 8.4 12 12 * Text Domain: cptwooint 13 13 * Domain Path: /languages … … 25 25 */ 26 26 27 define( 'CPTWI_VERSION', '1.2. 0' );27 define( 'CPTWI_VERSION', '1.2.1' ); 28 28 29 29 define( 'CPTWI_FILE', __FILE__ ); -
cpt-woo-integration/tags/1.2.1/languages/cpt-woo-integration.pot
r3008300 r3010597 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2023-12-1 1 17:17+0000\n"9 "POT-Creation-Date: 2023-12-15 14:52+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "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" … … 64 64 msgstr "" 65 65 66 #: ../TinyApp/Hooks/FilterHooks.php:2 5266 #: ../TinyApp/Hooks/FilterHooks.php:249 67 67 msgid "Settings" 68 68 msgstr "" 69 69 70 #: ../TinyApp/Hooks/FilterHooks.php:25 470 #: ../TinyApp/Hooks/FilterHooks.php:251 71 71 msgid "Go Pro" 72 72 msgstr "" -
cpt-woo-integration/trunk/README.txt
r3008335 r3010597 1 1 === Custom Post Type Woocommerce Integration === 2 2 Contributors: 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 types3 Tags: 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 4 4 Requires at least: 6.0 5 5 Tested up to: 6.4 … … 27 27 Quickly and easily sell pages, posts and custom post types through WooCommerce with this plugin. 28 28 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 29 32 == 🏆 Free Features == 30 33 … … 38 41 * Provided shortcode for display "Short description" 39 42 40 41 43 == 🏆 PRO Features == 42 44 43 45 * 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 44 50 * Add sale price dates 45 51 * Inventory - Add SKU … … 49 55 * Shipping product data 50 56 * Product Gallery Images 51 * Product Type - Simple product52 57 * Add Downloadable Product 53 58 * Download file form WooCommerce user account. … … 57 62 * CPT Upsells. 58 63 * CPT Cross-sells. 59 * Product Type - Variable product60 * Product Type - External/Affiliate product61 64 * Provided Shortcode for Display "SKU" 62 65 * Provided Shortcode for Display "Attributes" … … 148 151 == Changelog == 149 152 153 = 1.2.1 ( 15 December, 2023 ) = 154 * Added: Addons Support For Grouped Product 155 * Added: LearnPress WooCommerce Integration 156 150 157 = 1.2.0 ( 11 December, 2023 ) = 151 158 * Added: Addons Support For Variation CPT -
cpt-woo-integration/trunk/TinyApp/Controllers/Notice/SpecialDiscount.php
r3008300 r3010597 32 32 return [ 33 33 //'plugin_name' => 'Exciting News: Custom Post Type Woocommerce Integration Pro', 34 'option_name' => ' special_offer_2023',34 'option_name' => 'cptwooint_special_offer_2023', 35 35 'start_date' => '10 December 2023', 36 36 'end_date' => '10 January 2024', 37 37 '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> 39 39 with <b>UP TO 20% OFF</b>! Limited time offer!!" 40 40 ]; -
cpt-woo-integration/trunk/TinyApp/Hooks/FilterHooks.php
r3008300 r3010597 44 44 // Add suggestions to the product tabs. 45 45 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 ); 47 47 add_filter( 'woocommerce_format_sale_price', [ $this, 'format_sale_price' ], 20 ); 48 48 // add_filter( 'body_class', [ $this, 'wc_body_class' ], 20 ); … … 208 208 return $price; 209 209 } 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 214 211 if ( ! $price ) { 215 212 $price = Fns::cptwoo_get_price( $product->get_id(), 'sale_price' ) ?: Fns::cptwoo_get_price( $product->get_id() ); 216 213 } 217 214 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 ); 219 216 } 220 217 -
cpt-woo-integration/trunk/TinyApp/Modal/CPTProductDataStore.php
r3001653 r3010597 27 27 */ 28 28 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 ) ){ 34 32 return parent::search_products( $term, $type, $include_variations, $all_statuses, $limit, $include, $exclude ); 35 33 } -
cpt-woo-integration/trunk/TinyApp/cptwooint.php
r3008300 r3010597 25 25 use TinySolutions\cptwooint\Hooks\ActionHooks; 26 26 use TinySolutions\cptwooint\Hooks\FilterHooks; 27 use TinySolutions\cptwooint\PluginsSupport\RootSupport; 27 28 use TinySolutions\cptwooint\Traits\SingletonTrait; 28 29 … … 56 57 private function __construct() { 57 58 58 add_action( 'init', [ $this, ' language' ] );59 add_action( 'init', [ $this, 'init' ] ); 59 60 add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ], 11 ); 60 61 … … 107 108 * Load Text Domain 108 109 */ 109 public function language() {110 public function init() { 110 111 load_plugin_textdomain( 'cptwooint', false, CPTWI_ABSPATH . '/languages/' ); 111 112 } … … 134 135 FilterHooks::instance(); 135 136 ActionHooks::instance(); 137 RootSupport::instance(); 136 138 Api::instance(); 137 139 -
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 5 5 * Plugin URI: https://www.wptinysolutions.com/tiny-products/cpt-woo-integration 6 6 * Description: Integrate custom post type with woocommerce. Sell Any Kind Of Custom Post 7 * Version: 1.2. 07 * Version: 1.2.1 8 8 * Author: Tiny Solutions 9 9 * Author URI: https://www.wptinysolutions.com/ 10 10 * Tested up to: 6.4 11 * WC tested up to: 8. 311 * WC tested up to: 8.4 12 12 * Text Domain: cptwooint 13 13 * Domain Path: /languages … … 25 25 */ 26 26 27 define( 'CPTWI_VERSION', '1.2. 0' );27 define( 'CPTWI_VERSION', '1.2.1' ); 28 28 29 29 define( 'CPTWI_FILE', __FILE__ ); -
cpt-woo-integration/trunk/languages/cpt-woo-integration.pot
r3008300 r3010597 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2023-12-1 1 17:17+0000\n"9 "POT-Creation-Date: 2023-12-15 14:52+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "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" … … 64 64 msgstr "" 65 65 66 #: ../TinyApp/Hooks/FilterHooks.php:2 5266 #: ../TinyApp/Hooks/FilterHooks.php:249 67 67 msgid "Settings" 68 68 msgstr "" 69 69 70 #: ../TinyApp/Hooks/FilterHooks.php:25 470 #: ../TinyApp/Hooks/FilterHooks.php:251 71 71 msgid "Go Pro" 72 72 msgstr ""
Note: See TracChangeset
for help on using the changeset viewer.