Plugin Directory

Changeset 3202307


Ignore:
Timestamp:
12/04/2024 11:06:41 AM (16 months ago)
Author:
softound
Message:

version 1.6.2

Location:
woo-custom-stock-status
Files:
30 added
3 edited

Legend:

Unmodified
Added
Removed
  • woo-custom-stock-status/trunk/includes/class-wc-stock-product.php

    r3199888 r3202307  
    125125        add_action( 'woocommerce_available_variation', array($this,'custom_variation_display') );
    126126
     127        //hook to update stock status html in porto theme
     128        add_filter( 'porto_woocommerce_stock_html', array($this,'modify_stock_status_on_porto_theme'),99,3);
     129
     130    }
     131
     132    /**
     133     * Used to update stock status HTML in Porto theme.
     134     * By default, Porto theme does not support links in stock status.
     135     * Removed esc_html to display the link in stock status.
     136     *
     137     * @since 1.6.2
     138     */
     139    public function modify_stock_status_on_porto_theme($availability_html, $availability, $product){
     140        $availability      = $product->get_availability();
     141        $availability_html = empty( $availability['availability'] ) ? '' : '<span class="product-stock ' . esc_attr( $availability['class'] ) . '">' . esc_html__( 'Availability', 'porto' ) . ': <span class="stock">' . $availability['availability'] . '</span></span>';
     142        return $availability_html;
    127143    }
    128144
  • woo-custom-stock-status/trunk/readme.txt

    r3199888 r3202307  
    55Requires at least: 5.8
    66Tested up to: 6.7
    7 Stable tag: 1.6.1
     7Stable tag: 1.6.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    260260* Fix - Fixed Duplicate stock status issue in Variation product detail page.
    261261
     262= 1.6.2 - 03/12/24 =
     263* Fix - Resolved the "Learn more" shortcode display issue on Porto theme.
     264
    262265== Upgrade Notice ==
    263266
     
    425428Fix - Fixed Duplicate stock status issue in Variation product detail page.
    426429
     430= 1.6.2 - 03/12/24 =
     431Fix - Resolved the "Learn more" shortcode display issue on Porto theme.
     432
  • woo-custom-stock-status/trunk/woo-custom-stock-status.php

    r3199888 r3202307  
    44Plugin URI:  https://www.softound.com/
    55Description: Write the custom stock status with different colors for each woocommerce product, to show in product details and listing pages.
    6 Version:     1.6.1
     6Version:     1.6.2
    77Author:      Softound Solutions
    88Author URI:  https://www.softound.com/
     
    1515define( 'WCSS_PLUGIN_PATH', plugin_dir_path( __FILE__ ));
    1616define( 'WCSS_PLUGIN_URL', plugin_dir_url(__FILE__));
    17 define( 'WCSS_PLUGIN_VER', '1.6.1');
     17define( 'WCSS_PLUGIN_VER', '1.6.2');
    1818
    1919/**
Note: See TracChangeset for help on using the changeset viewer.