WP Ecommerce Category Description

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:

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

Change that line to look like this:

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

That’s it!

So….until next time…

Tags: , , ,

3 Comments

Leave a comment
  1. Adrienne Jun. 04, 2008 at 8:26 pm #

    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 Dec. 31, 2008 at 2:10 pm #

    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 Dec. 31, 2008 at 3:46 pm #

    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.

Leave a Reply