WP Ecommerce Category Description

Wed, Jun 4, 2008

WPSC Tips and Tricks

So…I’m back with more tips for WP Ecommerce, and this one is regarding the category description.

By default the category description shows in a default font and will not wrap to the next line on your page very well. So it ends up looking really bad. To solve this issue, login to your server and open up “products_page.php” in your wp-shopping-cart directory. Then on line 113, you’ll see this line:

echo "<pre>".$category_data[0]['description']."</pre>";

Change that line to look like this:

echo "<p>".$category_data[0]['description']."</p>";

That’s it!

So….until next time…

Other Posts You Might Enjoy

, , ,

This post was written by:

admin - who has written 10 posts on S-Tastic Designs - Web Designer for Hire.


Contact the author

Do you have a Gravatar yet? It's that cool icon next to your name. All you have to is click here to upload your own Gravatar for free. If you do, you'll see it by every comment you post on S-Tastic Designs and every other blog that supports Gravatars!

3 Comments For This Post

  1. Adrienne had this to say :


    Hi Shayne… this is such a wonderful fix, thanks so much for detailing the code changes here. I’m wondering if you could outline another tweak to give the category description some padding? Otherwise it’s butting up against the category image. I really appreciate your efforts here to help us out with the webstore code.

  2. Lheyanne had this to say :


    Hi. I checked the products_page.php both in my wp-shopping-cart directory and the shop’s theme. Both have have the already but the category title and description are still beside the image not on the next line.
    Thanks. Happy New Year btw.

  3. shayne had this to say :


    Lheyanne, I’m not sure that is what this fix was supposed to do…if you’ll use the contact form and send me login info, I’ll take a look at it for you.

What Do You Think?