WP eCommerce
Don't use page.php for products (4 posts)

  1. robahas
    Posted 2 years ago #

    Hi - It looks like this plugin uses page.php as a wrapper and places the product code in that. However, my default page is such that i can't display the products it it. How do I make the plugin use another page template? Alternatively, what sort of conditional would I use to say: "if this is is a product page...." - That way I could make necessary adjustments for displaying products.



  2. Could you elaborate on why your page.php file can't be used?

  3. robahas
    Posted 2 years ago #

    Hi Pippin - On this website each page is mostly an image gallery with a small column of text on the side. But that is not how we want to do the product pages. I realize that I could make a page template for the regular pages and then use the page.php file for the shopping cart, but I want to get to the bottom of this as I am fairly certain I will need to know how to format a product page in the future as well.

  4. I'd suggest you look into using get_template_part().

    You could easily load a "template part" for the image galleries, and then a different template part for the "default" pages.

    Does that help?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic