Plugin Directory

Changeset 930112


Ignore:
Timestamp:
06/11/2014 06:43:55 AM (12 years ago)
Author:
isikom
Message:

added version 0.7.2

Location:
woocommerce-sample
Files:
19 added
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-sample/trunk/readme.txt

    r886379 r930112  
    33Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, woocommerce, sample, free sample
    44Requires at least: 3.5
    5 Tested up to: 3.8.1
    6 Stable tag: 0.7.1
     5Tested up to: 3.9.1
     6Stable tag: 0.7.2
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 0.7.2 - 11/06/2014 =
     59* added meta info to the sample item ordered
     60
    5861= 0.7.1 - 17/03/2014 =
    5962* fix shipping methods - only free shipping is showed if available
  • woocommerce-sample/trunk/woocommerce-sample.php

    r886372 r930112  
    66 * Author: Michele Menciassi
    77 * Author URI: https://plus.google.com/+MicheleMenciassi
    8  * Version: 0.7.1
     8 * Version: 0.7.2
    99 * License: GPLv2 or later
    1010 */
     
    5151            add_filter('woocommerce_shipping_free_shipping_is_available', array( $this, 'enable_free_shipping'), 40, 1);
    5252            add_filter('woocommerce_available_shipping_methods', array( $this, 'free_shipping_filter'), 10, 1);
     53
     54            add_action('woocommerce_add_order_item_meta', array($this, 'add_order_item_meta'), 10, 2);
    5355           
    5456            // filter for Minimum/Maximum plugin override overriding
     
    6062        }
    6163
     64        function add_order_item_meta ($item_id, $values){
     65            if ($values['sample']){
     66                woocommerce_add_order_item_meta( $item_id, 'product type', 'sample');
     67            }
     68        }
     69       
    6270        // filter for Minimum/Maximum plugin overriding
    6371        function minimum_quantity($minimum_quantity, $checking_id, $cart_item_key, $values){
Note: See TracChangeset for help on using the changeset viewer.