Issue 778 in wp-e-commerce: Products Page does not support custom page template - uses page.php instead

3 views
Skip to first unread message

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

unread,
Oct 20, 2011, 12:37:51 AM10/20/11
to wp-e-commerce-googl...@googlegroups.com
Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Version-3.8.7.1 Milestone-3.8.8

New issue 778 by ja...@om4.com.au: Products Page does not support custom
page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

When viewing the default WPEC products page, the page template used is the
page.php template.

So if your [productspage] has a custom page template defined (via the
normal WordPress edit page feature), that choice will be ignored and the
default page.php template is used instead.


There are many Forum references regarding this problem:
http://getshopped.org/forums/topic/cant-change-the-template-of-the-main-products-page/
http://getshopped.org/forums/topic/pagination-products-page-not-using-chosen-wp-template/
http://getshopped.org/forums/topic/separate-pages-for-products-and-single-products/
http://getshopped.org/forums/topic/use-wordpress-page-template-for-products-page/

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

unread,
Oct 20, 2011, 12:41:52 AM10/20/11
to wp-e-commerce-googl...@googlegroups.com
Updates:
Labels: Workflow-HasPatch Workflow-NeedsTesting

Comment #1 on issue 778 by ja...@om4.com.au: Products Page does not support

custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Attached is a patch that attempts to use the [productspage]'s custom page
template as a higher priority than the normal page.php template.

I think it fixes the problem. Hopefully without introducing any other
issues.

Attachments:
778.diff 677 bytes

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

unread,
Oct 20, 2011, 12:46:02 AM10/20/11
to wp-e-commerce-googl...@googlegroups.com

Comment #2 on issue 778 by ja...@om4.com.au: Products Page does not support
custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

(No comment was entered for this change.)

Attachments:
778.diff 719 bytes

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

unread,
Oct 20, 2011, 12:50:03 AM10/20/11
to wp-e-commerce-googl...@googlegroups.com

Comment #3 on issue 778 by ja...@om4.com.au: Products Page does not support
custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Please use the second patch (not the first one).

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

unread,
Oct 20, 2011, 10:31:50 PM10/20/11
to wp-e-commerce-googl...@googlegroups.com

Comment #4 on issue 778 by michelle...@gtempaccount.com: Products Page does
not support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Tested this patch and it works nicely and as expected

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

unread,
Oct 21, 2011, 2:04:58 AM10/21/11
to wp-e-commerce-googl...@googlegroups.com
Updates:
Labels: -Workflow-NeedsTesting Workflow-Commit

Comment #5 on issue 778 by ja...@om4.com.au: Products Page does not support

custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Thanks Michelle - glad it worked for you.

Does Gary want to test it out too, or can I commit it?

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

unread,
Nov 16, 2011, 12:20:48 PM11/16/11
to wp-e-commerce-googl...@googlegroups.com

Comment #6 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Hello! Sooo happy to have finally found this!

I am wondering if anyone else has run into the issue that their check out
pages do not work when you change this though ? My sub-pages are appearing
100% blank and I cannot figure out why... thinking this may be the culprit..

Any advice would be amazing!

Thanks

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

unread,
Nov 16, 2011, 9:05:26 PM11/16/11
to wp-e-commerce-googl...@googlegroups.com

Comment #7 on issue 778 by gary...@garyc40.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Patch is working great for me. Code looks good. Tested and experienced no
side-effects.

@ms.natashaoliver: You can try replacing your
wpsc-includes/theme.functions.php with the file attached in this reply and
see if it fixes your issue.

Attachments:
theme.functions.php 49.6 KB

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

unread,
Nov 16, 2011, 9:09:32 PM11/16/11
to wp-e-commerce-googl...@googlegroups.com
Updates:
Status: Fixed

Comment #8 on issue 778 by gary...@garyc40.com: Products Page does not

support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

This issue was closed by revision r1291.

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

unread,
Nov 17, 2011, 8:17:10 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #10 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

@gary - thank you so much for re-sending over the theme.functions.php.
However my issue persists!!! My product page looks fine, but on my
subsequent pages it's an amazing blank page! (shopping cart stays in
sidebar, but main col is blank.)

aye carumba!

Am I supposed to have a different code in my checkout page? It auto put in
[productspage] ... which seems a bit odd? I've tried putting in checkout,
checkoutpage, with no luck.

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

unread,
Nov 17, 2011, 8:33:24 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #11 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Oh kaay! So I deactivated and reactivated the plugin and finally have some
progresss (though I'd tried this umpteen times before with no change, aj
well)

However now I'm getting an awesome header error,

Warning: Cannot modify header information - headers already sent by (output
started at
/home/taramill/public_html/wp-content/themes/artspark/page.php:3) in
/home/taramill/public_html/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-functions.php
on line 1274


I'm guessing that would be because the theme.functions are calling out
page.php, but my actual page is calling out store.php. But if no one else
has had this issue why oh why am I!!!!!


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

unread,
Nov 17, 2011, 8:37:26 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #12 on issue 778 by gary...@garyc40.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

ms.natashaoliver:

You should put the [shoppingcart] shortcode inside the Checkout (or Cart)
page. [transactionresults] should also be put inside Transaction Results
page.

Normally these are done automatically for you. I don't know why it's not
that way in your situation.

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

unread,
Nov 17, 2011, 8:42:28 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #13 on issue 778 by gary...@garyc40.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Just read your latest message.

Try replacing your wpsc-core/wpsc-functions.php file with the attached file
and see if that solves the warning message for you.

Attachments:
wpsc-functions.php 45.0 KB

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

unread,
Nov 17, 2011, 8:49:29 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #14 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Since that message the issue has changed. I tried doing the deactivate
again. It created a new checkout page (so I had 2) I deleted one, and am
not getting a 404 error when I hit my checkout!!!

http://taramillernutrition.com/tata-harper/

Thank you soooo much for your help thus far, I absolutely realize you do
not need to be doing this!!! Soo thankful !!!

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

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

Comment #15 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

The current (and only) checkout page's URL is indeed the .../checkout-2


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

unread,
Nov 17, 2011, 9:06:37 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #16 on issue 778 by gary...@garyc40.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

If you want your checkout page to have the old "checkout" slug in the URL
instead of "checkout-2", make sure you delete the duplicate one in Trash,
and then edit the slug of the "checkout-2" page to "checkout" :)

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

unread,
Nov 17, 2011, 9:10:40 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #17 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Hey Gary, I've done that for sure! It now stands that my checkout page is
just normal ///checkout. and when I click 'checkout' on my shopping cart in
the sidebar it takes me to the correct URL (meaning same URL listed as my
page) but it says 404 not found.

frustrating to all heck.

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

unread,
Nov 17, 2011, 9:14:41 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #18 on issue 778 by gary...@garyc40.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

OK, I think I know what's going wrong.

Log in to wp-admin, go to Settings -> Store, and navigate to the Checkout
tab. Make sure the option "Force user to use SSL" is set to "No" and save
your settings changes.

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

unread,
Nov 17, 2011, 9:26:09 AM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #19 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

OH MY SWEET MARY !!!! It's working!!!!
ahhh!!!!

So many thank you's!!!!

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

unread,
Nov 17, 2011, 9:41:25 PM11/17/11
to wp-e-commerce-googl...@googlegroups.com

Comment #20 on issue 778 by ms.natas...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

uh oh, me again!

It appears after all of that I never checked my single product page.

In there I have my entire index.php nested inside my store.php custom
template. I've looked over all theme.functions and can't seem to see where
it would be calling this out.

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

unread,
Aug 5, 2013, 2:32:21 AM8/5/13
to wp-e-commerce-googl...@googlegroups.com

Comment #22 on issue 778 by LovingTe...@gmail.com: Products Page does not
support custom page template - uses page.php instead
http://code.google.com/p/wp-e-commerce/issues/detail?id=778

Hi
I have installed ecommerce and put some products. Until today all was
working fine and products were correctly displayed in the shop and
description of products were correct URLS
But today suddenly urls for the description of the product do not work, for
example the product description should be under
http://lovingterra.com/uncategorized/chernaya-maz
but it is dispalyed under
http://lovingterra.com/lovingterra.com/uncategorized/chernaya-maz
pls notice double domain name in the last URL. were this come from?
how to fix this?


--
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
Reply all
Reply to author
Forward
0 new messages