Forums

[Plugin: Wp-e-commerce] Get category name & url (3 posts)

  1. NativePaul
    Member
    Posted 3 months ago #

    I've been struggling with what I imagine is a very simple thing to do.
    I'm editing my theme files and want to display the Product Category alongside the Product Name.
    What is the php function to call the Category Name and URL to that category?

    I was able to get the name using wpsc_category_name();
    Although this doesn't retrieve anything on the products page. I want the category to be listed there too.

    How can I retrieve the url to display all products in that category?

  2. jimmyink
    Member
    Posted 2 months ago #

    I'm also experiencing the same issue. I can retrieve the category name on the single product page but now when it's listed.

    Keen to find out!

  3. gaf
    Member
    Posted 1 month ago #

    <?php /** show current category */   ?>
    	<?php $output .= "<div>" .wpsc_category_name(). "</div>";  ?>

Reply

You must log in to post.

About this Topic