This topic contains 15 replies, has 9 voices, and was last updated by vark 1 year, 8 months ago.
| Author | Posts |
|---|---|
| Author | Posts |
| April 9, 2011 at 2:08 am #103938 | |
|
subpar_daemon |
as i already signaled in the blog post entry for RC4, there is a serious bug that IS confirmed as a bug: when listing products in a category (and not single product on its own page) the containing page title gets overwritten in the wrong way. the page title should show the product category name, instead it shows the first product’s name in that category. i’ve traced the bug to the use of get_the_title(), meaning: before entering the wpsc_products_page.php, wpec gets the category title correctly in wpsc-includes/theme.functions.php, at line 494, function wpsc_the_category_title. but then, it deregisters itself as a ‘the_title’ filter, and when the product loop starts, the loop redefines the title. i’ve found a temporary solution, namely, to remove the deregistering of the filter at line 501:
and then in the theme file wpsc-products_page.php, at line 10, i deregister the filter by hand, before showing the products in that category:
it’s a horrible hack, but at least it works for now (but i know, any update will wash it away). please, instinct staff, you have to do something about it, it really screws up the logic of the shop! |
| April 9, 2011 at 2:31 am #103939 | |
|
subpar_daemon |
actually, strike the previous solution, the link put on the title still reflects the first product in that category. this is screwed up big time. |
| April 12, 2011 at 8:39 am #103940 | |
|
MTom |
Hi, could You please reply in this topic if you find a way to fix this problem? I (and many others) have the same problem… Thanks |
| April 12, 2011 at 9:15 pm #103941 | |
|
Gary Cao Trusted
|
I can’t reproduce this bug using the default Twenty-ten theme and default WP e-Commerce templates. Are you using an older theme? If possible, could you give us access to wp-admin area and FTP so we could investigate this further? Thanks! |
| April 13, 2011 at 2:45 am #103942 | |
|
Gary Cao Trusted
|
I forgot to include my email address in the previous reply: garyc40 [at] garyc40.com |
| April 14, 2011 at 4:50 am #103943 | |
|
webscouts |
I had the exact same problem, even after updating to WPEC 3.8.1 and Gold Cart 2.9. Turns out it was my WP theme page.php file. I removed the <?php the_title(); ?> right under this line: <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> and now my Category names are now showing up as the title of the page and the products are listed correctly. However I still can not get the Category image and Description to show up like it used to in 3.7.8 above the products. I even went back to the WP default 2010 theme and they still do not show. I see there are 3 or 4 threads about this problem. Any help would be appreciated. THX. |
| April 14, 2011 at 10:28 am #103944 | |
|
MTom |
garyc40: I send also the an e-mail. webscount: Interesting thing (the code mentioned from you):
<?php the_permalink() ?>: NOT OK |
| April 14, 2011 at 11:54 am #103945 | |
|
webscouts |
It is definitely theme page.php issue with the new WPEC 3.8.x plugin. MTom try a different theme for testing, like 2010. If it works there it is your themes page.php file. I still need help getting the category info to show up. NO CATEGORY DESCRIPTION OR IMAGE!
|
| April 15, 2011 at 5:50 am #103946 | |
|
MTom |
Thanks, the old Crafty Cart theme causes the problem. Your problem: |
| April 18, 2011 at 10:00 am #103947 | |
|
MTom |
The solution: |
| April 19, 2011 at 12:26 am #103948 | |
|
kiwijas New Member
|
thanks subpar_daemon – your commenting out the line at 501 in the theme.functions.php file worked for me … of course i’ll have to update it again the next theres an update |
| April 21, 2011 at 4:18 am #103949 | |
|
thathurtabit |
I’m having the same problem. Very annoying. I don’t think it’s an issue with the theme, as I’ve activated and de-activated different themes (2010, Crafty Cart, Starker theme) and the problem still remains – on the Products listing page (the store homepage) the page title is still being replaced with the title of the first product. Also, can anyone point me in the direction of Template Tag? I simply want to use a tag to display the category title, but can’t find any way to do it! |
| April 21, 2011 at 9:02 am #103950 | |
|
kiwijas New Member
|
actually just a quick ps to my last post – it did fix it but broke something else by removing the filter – now the first product is named after the category. still havent found a fix, hopefully theres on in 3.8.2 |
| May 17, 2011 at 6:20 pm #103951 | |
|
himikoden |
I found a quick solution to this problem. At least it worked for me. I just took the “title=’Permanent link to….’” out on the page.php template. Since he mentioned that it goes through the loop once and returns the correct title (which I noticed on my website when I hovered over the link) but then deregisters itself, it just made sense to take that whole thing out altogether. That way the first time it returns the title, it’s the one that actually appears on the page. Did that make sense? Hope that helps. |
| September 6, 2011 at 6:40 pm #223713 | |
|
noxad New Member
|
*sigh* Add this to the list of problems I’ve run into. And, due to the fact that links to previous posts are broken, I can’t even view the thread that was linked to by MTom as “the solution”. Anyone have a fix for this? |
| September 6, 2011 at 6:46 pm #223715 | |
|
vark Resident Expert Trusted
|
Hi Nox, |
The forum ‘3.8 Stable Release’ is closed to new topics and replies.