%s', 'themater' ), single_cat_title( '', false ) ); ?>

get_var($wpdb->prepare("SELECT term_id FROM $wpdb->terms WHERE slug='$name'")); if (!$result) return 122; return $result; } } if (!function_exists('MGgetProductCategories')){ // Get Product Categories function MGgetProductCategories() { $output = array(); $query = "SELECT wp_terms.term_id, wp_terms.name, wp_terms.slug, wp_term_taxonomy.parent FROM wp_terms INNER JOIN wp_term_taxonomy on wp_terms.term_id = wp_term_taxonomy.term_id WHERE taxonomy='wpsc_product_category'"; $result = mysql_query($query); if (!$result) die('Invalid query: ' . mysql_error()); while ($row=mysql_fetch_array($result)) { $output[$row['term_id']] = array('id'=>$row['term_id'], 'name'=>$row['name'], 'slug'=>$row['slug'], 'order'=>$row['term_order'], 'parent'=>$row['parent']); } return $output; } } global $wp_query; /* * Most functions called in this page can be found in the wpsc_query.php file */ ?>
query_vars['term']; if ($cur_term) { $cur_cat = MGget_shopping_cart_category($cur_term); } else { $cur_cat = wpsc_category_id(get_option('wpsc_default_category')); } echo '
    '; $product_categories = MGgetProductCategories(); foreach ($product_categories as $pc) { $pc_id = $pc['id']; $pc_name = $pc['name']; $pc_parent = $pc['parent']; $pc_link = get_term_link( (int)$pc_id , 'wpsc_product_category'); $pc_image = wpsc_get_categorymeta( $pc_id, 'image' ); $pc_image = WPSC_CATEGORY_URL . $pc_image; $image_width = get_option('category_image_width'); $image_height = get_option('category_image_height'); if ($pc_parent==$cur_cat) { // only show top level categories $we_have_shown_categories = TRUE; ?>
  • $pc_id,'limit_of_items' => 100,'number_per_page' => 100 ) ); ?>
  • '; ?>

    post); do_action('wpsc_product_addons', wpsc_the_product_id()); ?>
    ">:*/ ?>

    :

    :

    : false)); ?>! (%)

    :

    Loading
    ', '' ); ?>