WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[Plugin: WP e-Commerce] Coupons bug (1 post)

  1. agsko
    Member
    Posted 2 years ago #

    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 ....

    http://wordpress.org/extend/plugins/wp-e-commerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic