Changeset 3202307
- Timestamp:
- 12/04/2024 11:06:41 AM (16 months ago)
- Location:
- woo-custom-stock-status
- Files:
-
- 30 added
- 3 edited
-
tags/1.6.2 (added)
-
tags/1.6.2/assets (added)
-
tags/1.6.2/assets/js (added)
-
tags/1.6.2/assets/js/woo-custom-stock-status.js (added)
-
tags/1.6.2/includes (added)
-
tags/1.6.2/includes/class-wc-stock-base.php (added)
-
tags/1.6.2/includes/class-wc-stock-general.php (added)
-
tags/1.6.2/includes/class-wc-stock-product.php (added)
-
tags/1.6.2/includes/class-wc-stock-setting.php (added)
-
tags/1.6.2/includes/class-wc-stock-status.php (added)
-
tags/1.6.2/includes/index.html (added)
-
tags/1.6.2/index.html (added)
-
tags/1.6.2/integration (added)
-
tags/1.6.2/integration/class-wp-all-import.php (added)
-
tags/1.6.2/integration/class-yith-wishlist.php (added)
-
tags/1.6.2/integration/class-yoast-seo.php (added)
-
tags/1.6.2/readme.txt (added)
-
tags/1.6.2/screenshots (added)
-
tags/1.6.2/screenshots/screenshot-1.png (added)
-
tags/1.6.2/screenshots/screenshot-10.png (added)
-
tags/1.6.2/screenshots/screenshot-11.png (added)
-
tags/1.6.2/screenshots/screenshot-2.png (added)
-
tags/1.6.2/screenshots/screenshot-3.png (added)
-
tags/1.6.2/screenshots/screenshot-4.png (added)
-
tags/1.6.2/screenshots/screenshot-5.png (added)
-
tags/1.6.2/screenshots/screenshot-6.png (added)
-
tags/1.6.2/screenshots/screenshot-7.png (added)
-
tags/1.6.2/screenshots/screenshot-8.png (added)
-
tags/1.6.2/screenshots/screenshot-9.png (added)
-
tags/1.6.2/woo-custom-stock-status.php (added)
-
trunk/includes/class-wc-stock-product.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/woo-custom-stock-status.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-custom-stock-status/trunk/includes/class-wc-stock-product.php
r3199888 r3202307 125 125 add_action( 'woocommerce_available_variation', array($this,'custom_variation_display') ); 126 126 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; 127 143 } 128 144 -
woo-custom-stock-status/trunk/readme.txt
r3199888 r3202307 5 5 Requires at least: 5.8 6 6 Tested up to: 6.7 7 Stable tag: 1.6. 17 Stable tag: 1.6.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 260 260 * Fix - Fixed Duplicate stock status issue in Variation product detail page. 261 261 262 = 1.6.2 - 03/12/24 = 263 * Fix - Resolved the "Learn more" shortcode display issue on Porto theme. 264 262 265 == Upgrade Notice == 263 266 … … 425 428 Fix - Fixed Duplicate stock status issue in Variation product detail page. 426 429 430 = 1.6.2 - 03/12/24 = 431 Fix - Resolved the "Learn more" shortcode display issue on Porto theme. 432 -
woo-custom-stock-status/trunk/woo-custom-stock-status.php
r3199888 r3202307 4 4 Plugin URI: https://www.softound.com/ 5 5 Description: Write the custom stock status with different colors for each woocommerce product, to show in product details and listing pages. 6 Version: 1.6. 16 Version: 1.6.2 7 7 Author: Softound Solutions 8 8 Author URI: https://www.softound.com/ … … 15 15 define( 'WCSS_PLUGIN_PATH', plugin_dir_path( __FILE__ )); 16 16 define( 'WCSS_PLUGIN_URL', plugin_dir_url(__FILE__)); 17 define( 'WCSS_PLUGIN_VER', '1.6. 1');17 define( 'WCSS_PLUGIN_VER', '1.6.2'); 18 18 19 19 /**
Note: See TracChangeset
for help on using the changeset viewer.