Changeset 3310410
- Timestamp:
- 06/12/2025 10:18:56 AM (9 months ago)
- Location:
- woocommerce-email-inquiry-cart-options/trunk
- Files:
-
- 4 edited
-
classes/class-wc-email-inquiry-hook.php (modified) (12 diffs)
-
includes/wc-qo-product-addons-compatibility.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
woocommerce-email-inquiry-cart-options.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-email-inquiry-cart-options/trunk/classes/class-wc-email-inquiry-hook.php
r2964018 r3310410 38 38 global $product; 39 39 if ($template_name == 'loop/add-to-cart.php') { 40 if ( ! ( $product instanceof WC_Product ) ) { 41 return; 42 } 43 40 44 $product_id = $product->get_id(); 41 45 … … 82 86 global $product; 83 87 if ($template_name == 'loop/add-to-cart.php') { 88 if ( ! ( $product instanceof WC_Product ) ) { 89 return; 90 } 91 84 92 $product_id = $product->get_id(); 85 93 … … 91 99 public static function details_before_hide_add_to_cart_button() { 92 100 global $post, $product; 101 102 if ( ! ( $product instanceof WC_Product ) ) { 103 return; 104 } 105 93 106 $product_id = $product->get_id(); 94 107 … … 100 113 public static function details_after_hide_add_to_cart_button() { 101 114 global $post, $product; 115 116 if ( ! ( $product instanceof WC_Product ) ) { 117 return; 118 } 119 102 120 $product_id = $product->get_id(); 103 121 … … 109 127 public static function grouped_product_hide_add_to_cart_style() { 110 128 global $product; 129 130 if ( ! ( $product instanceof WC_Product ) ) { 131 return; 132 } 133 111 134 $product_id = $product->get_id(); 112 135 … … 118 141 public static function grouped_product_hide_add_to_cart( $add_to_cart='', $product_type='' ) { 119 142 global $product; 143 144 if ( ! ( $product instanceof WC_Product ) ) { 145 return $add_to_cart; 146 } 147 120 148 $product_id = $product->get_id(); 121 149 … … 130 158 global $product; 131 159 if ( $template_name == 'single-product/add-to-cart/quantity.php' ) { 160 161 if ( ! ( $product instanceof WC_Product ) ) { 162 return; 163 } 164 132 165 $product_id = $product->get_id(); 133 166 … … 141 174 global $product; 142 175 if ( $template_name == 'single-product/add-to-cart/quantity.php' ) { 176 177 if ( ! ( $product instanceof WC_Product ) ) { 178 return; 179 } 180 143 181 $product_id = $product->get_id(); 144 182 … … 293 331 global $product; 294 332 if ( $template_name == 'loop/add-to-cart.php' ) { 333 if ( ! ( $product instanceof WC_Product ) ) { 334 return; 335 } 336 295 337 $product_id = $product->get_id(); 296 338 … … 305 347 global $product; 306 348 global $wc_email_inquiry_customize_email_button_settings; 349 350 if ( ! ( $product instanceof WC_Product ) ) { 351 return; 352 } 353 307 354 $product_id = $product->get_id(); 308 355 … … 317 364 global $post; 318 365 global $product; 366 367 if ( ! ( $product instanceof WC_Product ) ) { 368 return; 369 } 319 370 320 371 $addtocart_templates = apply_filters( 'wc_ei_addtocart_templates', array( … … 341 392 global $product; 342 393 394 if ( ! ( $product instanceof WC_Product ) ) { 395 return; 396 } 397 343 398 $addtocart_templates = apply_filters( 'wc_ei_addtocart_templates', array( 344 399 'simple' => 'single-product/add-to-cart/simple.php', -
woocommerce-email-inquiry-cart-options/trunk/includes/wc-qo-product-addons-compatibility.php
r2581955 r3310410 23 23 add_filter( 'woocommerce_product_addons_option_price', function( $price_for_display, $option ) { 24 24 global $product; 25 26 if ( ! ( $product instanceof WC_Product ) ) { 27 return $price_for_display; 28 } 25 29 26 30 $hide_price = \A3Rev\WCEmailInquiry\Functions::check_hide_price( $product->get_id() ); -
woocommerce-email-inquiry-cart-options/trunk/readme.txt
r3272180 r3310410 3 3 Tags: WooCommerce, WooCommerce Email Inquiry, WooCommerce Catalog Visibility, WooCommerce add to cart, WooCommerce Brochure Page, WooCommerce product Emails 4 4 Requires at least: 6.0 5 Tested up to: 6.8 6 Stable tag: 3.4. 15 Tested up to: 6.8.1 6 Stable tag: 3.4.2 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 132 132 133 133 == Changelog == 134 135 = 3.4.2 - 2025/06/12 = 136 * This maintenance release has 1 bug fix and compatibility with WordPress 6.8.1 and WooCommerce 9.9.3 137 * Tweak - Tested for compatibility with WordPress 6.8.1 138 * Tweak - Tested for compatibility with WooCommerce 9.9.3 139 * Fix - Validate product variable is instance of WC_Product classic 134 140 135 141 = 3.4.1 - 2024/07/13 = … … 797 803 == Upgrade Notice == 798 804 805 = 3.4.2 = 806 This maintenance release has 1 bug fix and compatibility with WordPress 6.8.1 and WooCommerce 9.9.3 807 799 808 = 3.4.1 = 800 809 This release has various tweaks for compatibility with WordPress 6.6 and WooCommerce 8.9.3 -
woocommerce-email-inquiry-cart-options/trunk/woocommerce-email-inquiry-cart-options.php
r3272189 r3310410 3 3 Plugin Name: Email Inquiry & Cart Options for WooCommerce 4 4 Description: Transform your entire WooCommerce products catalog or any individual product into an online brochure with Product Email Inquiry button and pop-up email form. Add product email inquiry functionality to any product either with WooCommerce functionality or hide that functionality and the page becomes a brochure. 5 Version: 3.4. 15 Version: 3.4.2 6 6 Requires at least: 6.0 7 Tested up to: 6.8 7 Tested up to: 6.8.1 8 8 Author: a3rev Software 9 9 Author URI: https://a3rev.com/ … … 11 11 Domain Path: /languages 12 12 WC requires at least: 6.0.0 13 WC tested up to: 9. 8.013 WC tested up to: 9.9.3 14 14 License: This software is under commercial license and copyright to A3 Revolution Software Development team 15 15 … … 40 40 define( 'WC_EMAIL_INQUIRY_KEY', 'wc_email_inquiry' ); 41 41 define( 'WC_EMAIL_INQUIRY_PREFIX', 'wc_ei_' ); 42 define( 'WC_EMAIL_INQUIRY_VERSION', '3.4. 1' );42 define( 'WC_EMAIL_INQUIRY_VERSION', '3.4.2' ); 43 43 define( 'WC_EMAIL_INQUIRY_G_FONTS', true ); 44 44
Note: See TracChangeset
for help on using the changeset viewer.