[Plugin: WP e-Commerce] Coupons bug
-
hello
there was no difference between ‘item_quantity’ and ‘total_quantity’ in coupons before i had a few lines :
in wpsc-includes/coupons.class.php :334 } else if ($c['property'] == 'total_quantity'){ 335 $total_quantity = (int)wpsc_cart_item_count( true ) ; # line above there was : $product_obj->quantity ; 336 switch($c['logic']) {
in wpsc-includes/cart.class.php
32 function wpsc_cart_item_count( $mode = false ) { # add an option 33 global $wpsc_cart; 34 $count = 0; 35 foreach((array)$wpsc_cart->cart_items as $cart_item) { 36 $count += ( $mode ) ? 1 : $cart_item->quantity ; # to count distinct product 37 } 38 return $count; 39 } 40
On other subject how disapointed Am I after I discover than upgrade WP-e-commerce
erase my atos plug & configuration ….
- The topic ‘[Plugin: WP e-Commerce] Coupons bug’ is closed to new replies.