Plugin Directory

Changeset 2994746


Ignore:
Timestamp:
11/12/2023 04:38:33 PM (2 years ago)
Author:
tinysolution
Message:

Fix Sale Price issue

Location:
cpt-woo-integration
Files:
60 added
4 edited

Legend:

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

    r2994727 r2994746  
    44Requires at least: 6.0
    55Tested up to: 6.4
    6 Stable tag: 1.1.2
     6Stable tag: 1.1.3
    77Requires PHP: 7.4
    88License: GPLv3
     
    122122== Changelog ==
    123123
     124= 1.1.3 ( November 12, 2023 ) =
     125* Fixed: Sale Price Issue
     126
    124127= 1.1.2 ( November 12, 2023 ) =
    125128* Added: Regular Price and Sale Price Field Added
  • cpt-woo-integration/trunk/TinyApp/Helpers/Fns.php

    r2994720 r2994746  
    107107        } else {
    108108            $options = self::get_options();
    109             $meta_key = ! empty( $options['selected_post_types'][ $current_post_type ][ $key ] ) ? $options['selected_post_types'][ $current_post_type ][ $key ] : '_regular_price';
     109            $meta_key = ! empty( $options['selected_post_types'][ $current_post_type ][ $key ] ) ? $options['selected_post_types'][ $current_post_type ][ $key ] : '';
    110110        }
    111111
     
    146146     */
    147147    public static function cptwoo_get_price_meta_value( $product_id, $key = 'regular_price' ) {
    148         $price = 0;
     148        $price = '';
    149149        if ( ! $product_id ) {
    150150            return $price;
     
    155155        }
    156156        $meta_key = Fns::price_meta_key( $current_post_type, $key );
     157
    157158        if ( $meta_key ) {
    158159            $price = get_post_meta( $product_id, $meta_key, true );
  • cpt-woo-integration/trunk/cpt-woo-integration.php

    r2994720 r2994746  
    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.1.2
     7 * Version:           1.1.3
    88 * Author:            Tiny Solutions
    99 * Author URI:        https://www.wptinysolutions.com/
    10  * Tested up to:        6.4
    11  * WC tested up to:     8.2.1
     10 * Tested up to:      6.4
     11 * WC tested up to:   8.2.2
    1212 * Text Domain:       cptwooint
    1313 * Domain Path:       /languages
     
    2525 */
    2626
    27 define( 'CPTWI_VERSION', '1.1.2' );
     27define( 'CPTWI_VERSION', '1.1.3' );
    2828
    2929define( 'CPTWI_FILE', __FILE__ );
  • cpt-woo-integration/trunk/languages/cpt-woo-integration.pot

    r2994720 r2994746  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2023-11-12 14:52+0000\n"
     9"POT-Creation-Date: 2023-11-12 16:34+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"
Note: See TracChangeset for help on using the changeset viewer.