WCML_Cart_Removed_Items_Widget

The WooCommerce Multilingual WCML Cart Removed Items Widget class.

Defined (1)

The class is defined in the following location(s).

/inc/class-wcml-cart-removed-items-widget.php  
  1. class WCML_Cart_Removed_Items_Widget extends WP_Widget { 
  2.  
  3. function __construct() { 
  4.  
  5. $widget_opt = array( 
  6. 'description' => __( 'Shows a list of the products that existed in the cart before the cart is reset on the front end after switching the language or the currency. It will be hidden when there are no products to show.', 'woocommerce-multilingual' ),  
  7. ); 
  8.  
  9. parent::__construct( 
  10. 'wcml_cart_deleted_items',  
  11. __( 'Products before cart reset', 'woocommerce-multilingual' ),  
  12. $widget_opt 
  13. ); 
  14.  
  15.  
  16. function widget( $args, $instance ) { 
  17.  
  18. echo $args[ 'before_widget' ]; 
  19.  
  20. do_action( 'wcml_removed_cart_items' ); 
  21.  
  22. echo $args[ 'after_widget' ]; 
  23.