Plugin Directory

Changeset 3445351


Ignore:
Timestamp:
01/23/2026 07:53:14 AM (2 months ago)
Author:
formdev
Message:

fix add_action woocommerce_add_to_cart parameters

Location:
formdev/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • formdev/trunk/formdev.php

    r3428874 r3445351  
    55 * Plugin URI: https://www.form-dev.fr
    66 * Description: Synchroniser automatiquement les formations présentes dans votre CRM Formdev
    7  * Version: 1.3.3
     7 * Version: 1.3.4
    88 * Author: Formdev
    99 * Author URI: https://app.form-dev.fr
     
    1616// Définition de la version du plugin
    1717if (!defined('FORMEDEV_VERSION')) {
    18     define('FORMEDEV_VERSION', '1.3.3');
     18    define('FORMEDEV_VERSION', '1.3.4');
    1919}
    2020
     
    315315                       
    316316                        // Déclencher l'action pour notifier les autres plugins
    317                         do_action('woocommerce_add_to_cart', $cart_item_key, $wp_product_id, 1);
     317                        // Signature complète : cart_item_key, product_id, quantity, variation_id, cart_item_data
     318                        do_action('woocommerce_add_to_cart', $cart_item_key, $wp_product_id, 1, 0, array());
    318319                    }
    319320                }
     
    864865               
    865866                // Déclencher l'action pour notifier les autres plugins
    866                 do_action('woocommerce_add_to_cart', $cart_item_key, $product_id, 1);
     867                // Signature complète : cart_item_key, product_id, quantity, variation_id, cart_item_data
     868                do_action('woocommerce_add_to_cart', $cart_item_key, $product_id, 1, 0, array());
    867869               
    868870                // S'assurer que variation_id est présent avant sauvegarde
  • formdev/trunk/readme.txt

    r3428874 r3445351  
    55Tested up to: 6.8 
    66Requires PHP: 7.4 
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    6868
    6969== Changelog ==
     70= 1.3.4 =
     71* fix add_action woocommerce_add_to_cart parameters
     72
    7073= 1.3.3 =
    7174* fix upload category picture
Note: See TracChangeset for help on using the changeset viewer.