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/
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
(No comment was entered for this change.)
Attachments:
778.diff 719 bytes
Please use the second patch (not the first one).
Tested this patch and it works nicely and as expected
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?
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
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
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.
@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.
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!!!!!
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.
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
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 !!!
The current (and only) checkout page's URL is indeed the .../checkout-2
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" :)
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.
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.
OH MY SWEET MARY !!!! It's working!!!!
ahhh!!!!
So many thank you's!!!!
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.