Plugin Directory

Changeset 1022609


Ignore:
Timestamp:
11/09/2014 08:46:23 PM (11 years ago)
Author:
johndaskovsky
Message:

Version 1.1.8

Location:
classdex/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • classdex/trunk/create_class.php

    r1022590 r1022609  
    9696    if(class_exists('Cart66Product')) {
    9797        $product = new Cart66Product();
     98        $_POST['cart66_product_nonce'] = wp_create_nonce('cart66_product_nonce');
    9899        if($discounts) {
    99100            $product->setData(array(
     
    116117                ));
    117118        }
    118         $product->save(true);
     119        $product->save();
    119120        $product->clear();
    120121    }
  • classdex/trunk/edit_class.php

    r1022590 r1022609  
    107107                $product = new Cart66Product();
    108108                $product->loadByItemNumber($class_id);
     109                $_POST['cart66_product_nonce'] = wp_create_nonce('cart66_product_nonce');
    109110                if($discounts) {
    110111                    $product->setData(array(
     
    128129                        ));
    129130                }
    130                 $product->save(true);
     131                $product->save();
    131132                $product->clear();
    132133            }
  • classdex/trunk/includes/functions.php

    r1022590 r1022609  
    502502                echo "<td>{$row['phone']}</td>";
    503503                echo "<td>";
     504                if(is_paid($row['reg_id'])) { echo "PAID"; }
     505                echo "</td>";
    504506                $payment = get_reg_deposit($row['reg_id']);
    505                 if(is_paid($row['reg_id'])) { echo "PAID"; }
    506                 elseif($payment > 0)  { echo "Partial"; }
    507                 else  { echo "Unpaid"; }
    508                 echo "</td>";
    509507                $delete_registration_url = "admin.php?page=classdex_delete_table_item&amp;noheader=true&amp;t=registrations&amp;i=" . urlencode($row['reg_id']);
    510508                echo "<td><a href=\"admin.php?page=classdex_edit_customer&amp;cust_id={$row['cust_id']}\"><i class=\"icon-pencil\"></i> Edit</a>&nbsp;&nbsp;
Note: See TracChangeset for help on using the changeset viewer.