Issue 1342 in wp-e-commerce: Cart ajax update issues with qTranslate and a fix included

5 views
Skip to first unread message

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

unread,
Feb 3, 2014, 4:06:33 AM2/3/14
to wp-e-commerce-googl...@googlegroups.com
Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1342 by giedrius...@gmail.com: Cart ajax update issues with
qTranslate and a fix included
http://code.google.com/p/wp-e-commerce/issues/detail?id=1342

WPSC 3.8.13.3

On ajax cart updates the full multi-language and extra meta tags for
product titles were displayed. I.e. the item title did not get processed
via additional plugin (this time qTranslate) filters.

The fix is changing file:
wp-e-commerce/wpsc-includes/cart-item.class.php

Change from:
------------
public function get_title( $mode = 'display' ) {

if ( ! get_post_field( 'post_parent', $this->product_id ) )
return get_post_field( 'post_title', $this->product_id );

...

Change to:
----------
public function get_title( $mode = 'display' ) {

if ( ! get_post_field( 'post_parent', $this->product_id ) ) {
$title = get_post_field( 'post_title', $this->product_id );
$title = apply_filters( 'the_title', $title, $this );
return $title;
}

...

--
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