WPEC 3.8.7.4 - Wordpress 3.3 Single Product Page Description is Repeated

271 views
Skip to first unread message

Roy Ho

unread,
Dec 13, 2011, 11:01:10 AM12/13/11
to WordPress e-Commerce Plugin Development
Hey guys, it seems after upgrading to Wordpress 3.3, on the single
product's detail page, the product description is being repeated as if
it is running the loop twice.

Anyone else seeing this?

Ben Huson

unread,
Dec 14, 2011, 4:08:13 AM12/14/11
to wordpress-e-c...@googlegroups.com
Roy,

Just upgraded my trunk WPEC with TwentyEleven to WP 3.3 and I don't
seem to have that issue.
Are you using a different theme?

- Ben

> --
> You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.
> To post to this group, send email to wordpress-e-c...@googlegroups.com.
> To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.
>

Andy Ide

unread,
Dec 14, 2011, 4:20:23 AM12/14/11
to wordpress-e-c...@googlegroups.com
Hi Roy,

I have a custom child twenty eleven theme, and the upgrade I did today did not effect how the products were shown.


Andy

Michael Visser

unread,
Dec 14, 2011, 4:27:32 AM12/14/11
to wordpress-e-c...@googlegroups.com

No problems here, tried a few themes to reproduce. Good luck!

 

Cheers,

 

 

Michael Visser | Visser Labs

http://www.visser.com.au

 

This email is confidential and may also be privileged. If you are not the intended recipient, please notify me immediately by using my e-mail address above. You should not copy it or use it for any other purpose, nor disclose its contents to any other person. In messages of non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect the views and opinions of Visser Labs.


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1873 / Virus Database: 2102/4677 - Release Date: 12/12/11

Roy Ho

unread,
Dec 14, 2011, 5:59:17 PM12/14/11
to WordPress e-Commerce Plugin Development
Well I tested this in both custom theme and 2011 and in both cases I
saw repeated product description and title....There seems to be
atleast 2 posts on getshopped.org with people having the same issue.
I also proposed a temporary fix on the thread that works for the time
being...

http://getshopped.org/forums/topic/product-description-gets-repeated/


On Dec 14, 1:27 am, Michael Visser <mich...@visser.com.au> wrote:
> No problems here, tried a few themes to reproduce. Good luck!
>
> Cheers,
>

> Michael Visser | Visser Labshttp://www.visser.com.au<http://www.visser.com.au/>


>
> This email is confidential and may also be privileged. If you are not the intended recipient, please notify me immediately by using my e-mail address above. You should not copy it or use it for any other purpose, nor disclose its contents to any other person. In messages of non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect the views and opinions of Visser Labs.
>
> From: wordpress-e-c...@googlegroups.com [mailto:wordpress-e-c...@googlegroups.com] On Behalf Of Andy Ide
> Sent: Wednesday, 14 December 2011 7:20 PM
> To: wordpress-e-c...@googlegroups.com
> Subject: Re: wordpress-e-commerce-plugin WPEC 3.8.7.4 - Wordpress 3.3 Single Product Page Description is Repeated
>
> Hi Roy,
>
> I have a custom child twenty eleven theme, and the upgrade I did today did not effect how the products were shown.
>
> Andy
>
> On 12/14/2011 7:38 PM, Ben Huson wrote:
>
> Roy,
>
> Just upgraded my trunk WPEC with TwentyEleven to WP 3.3 and I don't
>
> seem to have that issue.
>
> Are you using a different theme?
>
> - Ben
>

> On 13 December 2011 16:01, Roy Ho <ro...@1plusdesign.com><mailto:ro...@1plusdesign.com> wrote:
>
> Hey guys, it seems after upgrading to Wordpress 3.3, on the single
>
> product's detail page, the product description is being repeated as if
>
> it is running the loop twice.
>
> Anyone else seeing this?
>
> --
>
> You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.
>

> To post to this group, send email to wordpress-e-c...@googlegroups.com<mailto:wordpress-e-c...@googlegroups.com>.
>
> To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com<mailto:wordpress-e-commerc...@googlegroups.com>.
>
> For more options, visit this group athttp://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.


>
> ________________________________
> No virus found in this message.

> Checked by AVG -www.avg.com<http://www.avg.com>


> Version: 2012.0.1873 / Virus Database: 2102/4677 - Release Date: 12/12/11
> --
> You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.

> To post to this group, send email to wordpress-e-c...@googlegroups.com<mailto:wordpress-e-c...@googlegroups.com>.
> To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com<mailto:wordpress-e-commerc...@googlegroups.com>.

Roy Ho

unread,
Dec 14, 2011, 6:02:54 PM12/14/11
to WordPress e-Commerce Plugin Development

James Collins

unread,
Dec 14, 2011, 6:12:23 PM12/14/11
to wordpress-e-c...@googlegroups.com
See also http://code.google.com/p/wp-e-commerce/issues/detail?id=871

Seems to be caused by the WP e-Commerce Related Product plugin.

James



To post to this group, send email to wordpress-e-c...@googlegroups.com.
To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com.

Roy Ho

unread,
Dec 14, 2011, 6:22:19 PM12/14/11
to WordPress e-Commerce Plugin Development
Hey James,

I don't have related product plugin so that rules it out.

On Dec 14, 3:12 pm, James Collins <ja...@om4.com.au> wrote:
> See alsohttp://code.google.com/p/wp-e-commerce/issues/detail?id=871


>
> Seems to be caused by the WP e-Commerce Related Product plugin.
>
> James
>
> On 15 December 2011 10:02, Roy Ho <ro...@1plusdesign.com> wrote:
>
>
>
>
>
>
>
> > Here is another post about this issue:
>

> >http://getshopped.org/forums/topic/double-product-description-on-sing...

Roy Ho

unread,
Dec 14, 2011, 6:27:19 PM12/14/11
to WordPress e-Commerce Plugin Development
I just submitted an screenshot of 2011 having the same issue:
http://code.google.com/p/wp-e-commerce/issues/detail?id=871

Agus MU

unread,
Dec 14, 2011, 6:56:50 PM12/14/11
to wordpress-e-c...@googlegroups.com
Just want to share my experience,

I have two identical site (duplicated by BackupBuddy)...

my local server: PHP v5.2.6  && MYSQL v5.0.51 => no repeated description

my dev server: PHP v5.3.6 & MYSQL v5.1.56 => repeated description in single product page!!!

I start thinking that it is related to PHP version... hmmm...

Zao Web Design, LLC

unread,
Dec 14, 2011, 6:58:56 PM12/14/11
to wordpress-e-c...@googlegroups.com
Odd, that most of us can't replicate it.  Stabbing in the dark a bit, without the ability to replicate.  But just in case my hunch is correct, try this - replace the 'wpsc_the_product_description' function (Around Line 700 of /wpsc-includes/product-template.php) with the following - 

function wpsc_the_product_description() {

$content = do_shortcode( wpautop( get_the_content( __( 'Read the rest of this entry &raquo;', 'wpsc' ) ), 1 ) );

if( ! function_exists( 'is_main_query' ) )
return $content;
if( is_main_query() )
return $content;
return '';

}

Curious to see if that resolves anything.

Thanks,

M. Justin Sainton
Zao Web Design, LLC
Principal / Project Manager
http://www.zaowebdesign.com
(c) 971.222.6330
(f) 1.413.723.0396

Michael Visser

unread,
Dec 14, 2011, 7:03:34 PM12/14/11
to wordpress-e-c...@googlegroups.com

Hi James,

 

I’ll have a play with Related Products, there’s some Product re-looping to get the variation prices displaying. I’m using that Plugin too but cannot see the duplication.

 

Cheers,

 

 

Michael Visser | Visser Labs

http://www.visser.com.au

 

This email is confidential and may also be privileged. If you are not the intended recipient, please notify me immediately by using my e-mail address above. You should not copy it or use it for any other purpose, nor disclose its contents to any other person. In messages of non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect the views and opinions of Visser Labs.

Version: 2012.0.1873 / Virus Database: 2108/4681 - Release Date: 12/14/11

James Collins

unread,
Dec 14, 2011, 7:15:42 PM12/14/11
to wordpress-e-c...@googlegroups.com
Hi Michael,

To confirm, I mostly wanted to cross-reference this thread with the Google Code issue I linked to.

I haven't actually investigated this problem at all yet.

James

Roy Ho

unread,
Dec 14, 2011, 7:37:02 PM12/14/11
to WordPress e-Commerce Plugin Development
FYI - I can comment out the function wpsc_the_product_description()
within wpsc-single_product.php and the product description will still
appear...From my findings the loop is looping just the content twice
and not the entire wpsc-single_product template. That should narrow
it down a bit...

On Dec 14, 4:15 pm, James Collins <ja...@om4.com.au> wrote:
> Hi Michael,
>
> To confirm, I mostly wanted to cross-reference this thread with the Google
> Code issue I linked to.
>
> I haven't actually investigated this problem at all yet.
>
> James
>

> On 15 December 2011 11:03, Michael Visser <mich...@visser.com.au> wrote:
>
>
>
>
>
>
>
> >  Hi James,****
>
> > ** **


>
> > I’ll have a play with Related Products, there’s some Product re-looping to
> > get the variation prices displaying. I’m using that Plugin too but cannot

> > see the duplication.****
>
> > ** **
>
> > Cheers,****
>
> > ** **
>
> > ** **
>
> > Michael Visser | Visser Labs****
>
> >http://www.visser.com.au****
>
> > ** **


>
> > This email is confidential and may also be privileged. If you are not the
> > intended recipient, please notify me immediately by using my e-mail address
> > above. You should not copy it or use it for any other purpose, nor disclose
> > its contents to any other person. In messages of non-business nature, the
> > views and opinions expressed are the author's own and do not necessarily

> > reflect the views and opinions of Visser Labs.****
>
> > ** **
>
> > *From:* wordpress-e-c...@googlegroups.com [mailto:
> > wordpress-e-c...@googlegroups.com] *On Behalf Of *James Collins
> > *Sent:* Thursday, 15 December 2011 9:12 AM
>
> > *To:* wordpress-e-c...@googlegroups.com
> > *Subject:* Re: wordpress-e-commerce-plugin WPEC 3.8.7.4 - Wordpress 3.3
> > Single Product Page Description is Repeated****
>
> > ** **
>
> > See alsohttp://code.google.com/p/wp-e-commerce/issues/detail?id=871****
>
> > ** **
>
> > Seems to be caused by the WP e-Commerce Related Product plugin.****
>
> > ** **
>
> > James****
>
> > ** **
>
> > ** **
>
> > On 15 December 2011 10:02, Roy Ho <ro...@1plusdesign.com> wrote:****


>
> > Here is another post about this issue:
>

> >http://getshopped.org/forums/topic/double-product-description-on-sing...
> > ****

> >http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.****
>
> > ** **


>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "WordPress e-Commerce Plugin Development" group.
> > To post to this group, send email to
> > wordpress-e-c...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > wordpress-e-commerc...@googlegroups.com.
> > For more options, visit this group at

> >http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.****
> >  ------------------------------


>
> > No virus found in this message.
> > Checked by AVG -www.avg.com

> > Version: 2012.0.1873 / Virus Database: 2108/4681 - Release Date: 12/14/11*
> > ***

Agus MU

unread,
Dec 14, 2011, 7:58:02 PM12/14/11
to wordpress-e-c...@googlegroups.com
I answer my own problem...

So, I have custom related products function in our FlexiShop theme... and when related product is active, the repeated content (description) does appear. It does appear in our server, but doesn't appear in my local server.

When I disable this related products, repeated content (description) is gone... Then, I checked my related product functions and I tried to remove wp_reset_query(); in my custom related products function... Magically, the repeated content dissapear... It is weird, but it does work with our FlexiShop theme...

Again, it doesn't happen to everyone... :)

Nur Roni Dinnurohman

unread,
Dec 14, 2011, 10:06:46 PM12/14/11
to wordpress-e-c...@googlegroups.com
Ahh.. this is my plugin.
Thanks for share this link. I will fixed this soon. :)

Regard,
Nur Roni D
-------------------------------------------------------------------
See http://about.me/onnayokheng
Twitter : @onnayokheng




2011/12/15 James Collins <ja...@om4.com.au>

Nur Roni Dinnurohman

unread,
Dec 14, 2011, 10:10:34 PM12/14/11
to wordpress-e-c...@googlegroups.com
Hola (mas) Agus,
Yeah, it's because  wp_reset_query(); if I remove this script. The site work well.
Thanks for your tips ;)


Regard,
Nur Roni D
-------------------------------------------------------------------
See http://about.me/onnayokheng
Twitter : @onnayokheng




2011/12/15 Agus MU <agu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages