Plugin Directory

Changeset 3310410


Ignore:
Timestamp:
06/12/2025 10:18:56 AM (9 months ago)
Author:
a3rev
Message:

Release new version 3.4.2

  • This maintenance release has 1 bug fix and compatibility with WordPress 6.8.1 and WooCommerce 9.9.3
  • Tweak - Tested for compatibility with WordPress 6.8.1
  • Tweak - Tested for compatibility with WooCommerce 9.9.3
  • Fix - Validate product variable is instance of WC_Product classic
Location:
woocommerce-email-inquiry-cart-options/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-email-inquiry-cart-options/trunk/classes/class-wc-email-inquiry-hook.php

    r2964018 r3310410  
    3838        global $product;
    3939        if ($template_name == 'loop/add-to-cart.php') {
     40            if ( ! ( $product instanceof WC_Product ) ) {
     41                return;
     42            }
     43
    4044            $product_id = $product->get_id();
    4145           
     
    8286        global $product;
    8387        if ($template_name == 'loop/add-to-cart.php') {
     88            if ( ! ( $product instanceof WC_Product ) ) {
     89                return;
     90            }
     91
    8492            $product_id = $product->get_id();
    8593           
     
    9199    public static function details_before_hide_add_to_cart_button() {
    92100        global $post, $product;
     101
     102        if ( ! ( $product instanceof WC_Product ) ) {
     103            return;
     104        }
     105
    93106        $product_id = $product->get_id();
    94107       
     
    100113    public static function details_after_hide_add_to_cart_button() {
    101114        global $post, $product;
     115
     116        if ( ! ( $product instanceof WC_Product ) ) {
     117            return;
     118        }
     119
    102120        $product_id = $product->get_id();
    103121       
     
    109127    public static function grouped_product_hide_add_to_cart_style() {
    110128        global $product;
     129
     130        if ( ! ( $product instanceof WC_Product ) ) {
     131            return;
     132        }
     133
    111134        $product_id = $product->get_id();
    112135       
     
    118141    public static function grouped_product_hide_add_to_cart( $add_to_cart='', $product_type='' ) {
    119142        global $product;
     143
     144        if ( ! ( $product instanceof WC_Product ) ) {
     145            return $add_to_cart;
     146        }
     147
    120148        $product_id = $product->get_id();
    121149       
     
    130158        global $product;
    131159        if ( $template_name == 'single-product/add-to-cart/quantity.php' ) {
     160
     161            if ( ! ( $product instanceof WC_Product ) ) {
     162                return;
     163            }
     164
    132165            $product_id = $product->get_id();
    133166           
     
    141174        global $product;
    142175        if ( $template_name == 'single-product/add-to-cart/quantity.php' ) {
     176
     177            if ( ! ( $product instanceof WC_Product ) ) {
     178                return;
     179            }
     180
    143181            $product_id = $product->get_id();
    144182           
     
    293331        global $product;
    294332        if ( $template_name == 'loop/add-to-cart.php' ) {
     333            if ( ! ( $product instanceof WC_Product ) ) {
     334                return;
     335            }
     336
    295337            $product_id = $product->get_id();
    296338           
     
    305347        global $product;
    306348        global $wc_email_inquiry_customize_email_button_settings;
     349
     350        if ( ! ( $product instanceof WC_Product ) ) {
     351            return;
     352        }
     353
    307354        $product_id = $product->get_id();
    308355       
     
    317364        global $post;
    318365        global $product;
     366
     367        if ( ! ( $product instanceof WC_Product ) ) {
     368            return;
     369        }
    319370
    320371        $addtocart_templates = apply_filters( 'wc_ei_addtocart_templates', array(
     
    341392        global $product;
    342393
     394        if ( ! ( $product instanceof WC_Product ) ) {
     395            return;
     396        }
     397
    343398        $addtocart_templates = apply_filters( 'wc_ei_addtocart_templates', array(
    344399            'simple'                => 'single-product/add-to-cart/simple.php',
  • woocommerce-email-inquiry-cart-options/trunk/includes/wc-qo-product-addons-compatibility.php

    r2581955 r3310410  
    2323add_filter( 'woocommerce_product_addons_option_price', function( $price_for_display, $option ) {
    2424    global $product;
     25
     26    if ( ! ( $product instanceof WC_Product ) ) {
     27        return $price_for_display;
     28    }
    2529
    2630    $hide_price = \A3Rev\WCEmailInquiry\Functions::check_hide_price( $product->get_id() );
  • woocommerce-email-inquiry-cart-options/trunk/readme.txt

    r3272180 r3310410  
    33Tags: WooCommerce, WooCommerce Email Inquiry, WooCommerce Catalog Visibility, WooCommerce add to cart, WooCommerce Brochure Page, WooCommerce product Emails
    44Requires at least: 6.0
    5 Tested up to: 6.8
    6 Stable tag: 3.4.1
     5Tested up to: 6.8.1
     6Stable tag: 3.4.2
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    132132
    133133== 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
    134140
    135141= 3.4.1 - 2024/07/13 =
     
    797803== Upgrade Notice ==
    798804
     805= 3.4.2 =
     806This maintenance release has 1 bug fix and compatibility with WordPress 6.8.1 and WooCommerce 9.9.3
     807
    799808= 3.4.1 =
    800809This 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  
    33Plugin Name: Email Inquiry & Cart Options for WooCommerce
    44Description: 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.1
     5Version: 3.4.2
    66Requires at least: 6.0
    7 Tested up to: 6.8
     7Tested up to: 6.8.1
    88Author: a3rev Software
    99Author URI: https://a3rev.com/
     
    1111Domain Path: /languages
    1212WC requires at least: 6.0.0
    13 WC tested up to: 9.8.0
     13WC tested up to: 9.9.3
    1414License: This software is under commercial license and copyright to A3 Revolution Software Development team
    1515
     
    4040define( 'WC_EMAIL_INQUIRY_KEY', 'wc_email_inquiry' );
    4141define( 'WC_EMAIL_INQUIRY_PREFIX', 'wc_ei_' );
    42 define( 'WC_EMAIL_INQUIRY_VERSION',  '3.4.1' );
     42define( 'WC_EMAIL_INQUIRY_VERSION',  '3.4.2' );
    4343define( 'WC_EMAIL_INQUIRY_G_FONTS', true );
    4444
Note: See TracChangeset for help on using the changeset viewer.