Issue 660 in wp-e-commerce: Get category id without print

14 views
Skip to first unread message

wp-e-c...@googlecode.com

unread,
Aug 14, 2011, 5:45:44 AM8/14/11
to wp-e-commerce-googl...@googlegroups.com
Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 660 by prakash....@gmail.com: Get category id without print
http://code.google.com/p/wp-e-commerce/issues/detail?id=660

wpsc_start_category_query(array('category_group'=>
get_option('wpsc_default_category'), 'show_thumbnails'=> 0));
<?php wpsc_print_category_name();?>
<?php wpsc_end_category_query(); ?>


i want to have category id without print which is now <?php
wpsc_print_category_id();?> which gives direct print value.i want id in
string.

Version=
3.8.6
O.S=(win7)

Please send asap. its urgent


wp-e-c...@googlecode.com

unread,
Aug 17, 2011, 8:30:53 PM8/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #1 on issue 660 by musle...@gmail.com: Get category id without print
http://code.google.com/p/wp-e-commerce/issues/detail?id=660

try use this <?php $prod_cat=wpsc_category_id(); echo $prod_cat; ?>

wp-e-c...@googlecode.com

unread,
Mar 5, 2012, 4:31:31 AM3/5/12
to wp-e-commerce-googl...@googlegroups.com

Comment #2 on issue 660 by agranand...@gmail.com: Get category id without
print
http://code.google.com/p/wp-e-commerce/issues/detail?id=660

Any one got answer of this question?

wp-e-c...@googlecode.com

unread,
Jan 31, 2013, 12:06:34 AM1/31/13
to wp-e-commerce-googl...@googlegroups.com

Comment #3 on issue 660 by matiasco...@gmail.com: Get category id without
print
http://code.google.com/p/wp-e-commerce/issues/detail?id=660

Answer #1 works for me.

wp-e-c...@googlecode.com

unread,
Oct 24, 2013, 7:22:51 PM10/24/13
to wp-e-commerce-googl...@googlegroups.com

Comment #4 on issue 660 by olivier....@gmail.com: Get category id without
print
http://code.google.com/p/wp-e-commerce/issues/detail?id=660

Does not work with version 3.8.12.1.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

wp-e-c...@googlecode.com

unread,
Mar 25, 2014, 6:58:20 PM3/25/14
to wp-e-commerce-googl...@googlegroups.com

Comment #5 on issue 660 by tim...@gmail.com: Get category id without print
http://code.google.com/p/wp-e-commerce/issues/detail?id=660

Did anyone ever find a way to do this in newer versions of WPEC? Honestly I
don't know if it's possible after digging through the cart code, which is
unfortunate. In my particular instance I am looping through child
categories of the current category page, and need to pull some meta info
from those categories. But I need the child's ID to do that. Any ideas?
Reply all
Reply to author
Forward
0 new messages