Changeset 3157078
- Timestamp:
- 09/24/2024 05:25:18 PM (19 months ago)
- Location:
- woo-custom-stock-status
- Files:
-
- 30 added
- 4 edited
-
tags/1.5.8 (added)
-
tags/1.5.8/assets (added)
-
tags/1.5.8/assets/js (added)
-
tags/1.5.8/assets/js/woo-custom-stock-status.js (added)
-
tags/1.5.8/includes (added)
-
tags/1.5.8/includes/class-wc-stock-base.php (added)
-
tags/1.5.8/includes/class-wc-stock-general.php (added)
-
tags/1.5.8/includes/class-wc-stock-product.php (added)
-
tags/1.5.8/includes/class-wc-stock-setting.php (added)
-
tags/1.5.8/includes/class-wc-stock-status.php (added)
-
tags/1.5.8/includes/index.html (added)
-
tags/1.5.8/index.html (added)
-
tags/1.5.8/integration (added)
-
tags/1.5.8/integration/class-wp-all-import.php (added)
-
tags/1.5.8/integration/class-yith-wishlist.php (added)
-
tags/1.5.8/integration/class-yoast-seo.php (added)
-
tags/1.5.8/readme.txt (added)
-
tags/1.5.8/screenshots (added)
-
tags/1.5.8/screenshots/screenshot-1.png (added)
-
tags/1.5.8/screenshots/screenshot-10.png (added)
-
tags/1.5.8/screenshots/screenshot-11.png (added)
-
tags/1.5.8/screenshots/screenshot-2.png (added)
-
tags/1.5.8/screenshots/screenshot-3.png (added)
-
tags/1.5.8/screenshots/screenshot-4.png (added)
-
tags/1.5.8/screenshots/screenshot-5.png (added)
-
tags/1.5.8/screenshots/screenshot-6.png (added)
-
tags/1.5.8/screenshots/screenshot-7.png (added)
-
tags/1.5.8/screenshots/screenshot-8.png (added)
-
tags/1.5.8/screenshots/screenshot-9.png (added)
-
tags/1.5.8/woo-custom-stock-status.php (added)
-
trunk/includes/class-wc-stock-product.php (modified) (4 diffs)
-
trunk/includes/class-wc-stock-setting.php (modified) (2 diffs)
-
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
r3153290 r3157078 131 131 */ 132 132 public function prevent_stock_html_duplication($html,$product){ 133 if ( (get_option('b2bking_plugin_status_setting', 'disabled') !== 'disabled') &&133 if ( is_plugin_active( 'b2bking-private-store-for-woocommerce/b2bking.php' ) && (get_option('b2bking_plugin_status_setting', 'disabled') !== 'disabled') && 134 134 (get_option('b2bking_guest_access_restriction_setting', 'hide_prices') === 'hide_prices')){ 135 135 if(is_product() && !is_user_logged_in()){ 136 136 global $product; 137 if($product->is_type('variable') ){137 if($product->is_type('variable') || $product->is_type('variation')){ 138 138 $html = ''; 139 139 } … … 711 711 */ 712 712 public function add_stack_status_before_after_price($price ,$product ){ 713 if (is_shop() || is_product_category() || is_archive() || (!is_product() && !is_cart() && !is_checkout())) {713 if (is_shop() || is_product_category() || is_archive() ) { 714 714 //Compatible with b2bking-pro plugin 715 715 if(is_plugin_active( 'b2bking/b2bking.php' )){ … … 785 785 } 786 786 787 $availability_html = empty( $availability['availability'] ) ? '' : '<p class="stock ' . esc_attr( $availability['class'] ) . '" style="padding:0px 10px!important;">' . __($availability['availability'],'woo-custom-stock-status') . '</p>';787 $availability_html = empty( $availability['availability'] ) ? '' : '<p class="stock ' . esc_attr( $availability['class'] ) . '">' . __($availability['availability'],'woo-custom-stock-status') . '</p>'; 788 788 } 789 789 } … … 801 801 } 802 802 $availability = $product->get_availability(); 803 if (strpos($availability['availability'], '[wcss_learn_more') !== false) { 804 $availability['availability'] = do_shortcode($availability['availability']); 805 } 806 807 if (strpos($availability['availability'], '[wcss_delivery_date') !== false) { 808 $availability['availability'] = do_shortcode($availability['availability']); 809 } 810 803 811 $availability_html = empty( $availability['availability'] ) ? '' : '<p class="stock ' . esc_attr( $availability['class'] ) . ' woocss_shortcode">' . __(esc_html( $availability['availability'] ),'woo-custom-stock-status') . '</p>'; 804 812 -
woo-custom-stock-status/trunk/includes/class-wc-stock-setting.php
r3153290 r3157078 104 104 */ 105 105 public function woo_custom_stock_status_color() { 106 $css = '<style id="woo-custom-stock-status" >';106 $css = '<style id="woo-custom-stock-status" data-wcss-ver="'.WCSS_PLUGIN_VER.'">'; 107 107 108 108 $status_array = $this->status_array; … … 143 143 } 144 144 145 $css .= '.wd-product-stock.stock,.wc-block-grid .wc-block-grid__product .woo-custom-stock-status.woocss_shortcode{display:none}'; 145 $css .= '.wd-product-stock.stock{display:none}'; 146 147 $css .= '.woocommerce-variation-price:not(:empty)+.woocommerce-variation-availability { margin-left: 0px; }.woocommerce-variation-price, .woocommerce-variation-availability{ 148 display:block}'; 146 149 $css .= '</style><!-- woo-custom-stock-status-color-css -->'; 147 150 echo $css; -
woo-custom-stock-status/trunk/readme.txt
r3153290 r3157078 5 5 Requires at least: 5.8 6 6 Tested up to: 6.4 7 Stable tag: 1.5. 77 Stable tag: 1.5.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 247 247 * Fix - Fixed Woodmart theme compatibility issue 248 248 249 = 1.5.8 - 19/09/24 = 250 * Fix - Stock status duplication and css issue fixed 251 249 252 == Upgrade Notice == 250 253 … … 398 401 = 1.5.7 - 17/09/24 = 399 402 Fix - Fixed Woodmart theme compatibility issue 403 404 = 1.5.8 - 19/09/24 = 405 Fix - Stock status css issue fixed -
woo-custom-stock-status/trunk/woo-custom-stock-status.php
r3153290 r3157078 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.5. 76 Version: 1.5.8 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.5.8'); 17 18 18 19 /**
Note: See TracChangeset
for help on using the changeset viewer.