覚書
wp-e-commerce.3.7Beta5
1、ショッピングカート内(買い物かご)
2、パンくずリスト
での商品名文字化け
htmlentitiesをhtmlspecialcharsに変更。
/wp-content/plugins/wp-e-commerce/wpsc-includes/cart.class.php 174行目
* cart item name function, no parameters
* @return string the cart item name
*/
function wpsc_cart_item_name() {
global $wpsc_cart;
return htmlspecialchars(stripslashes($wpsc_cart->cart_item->product_name), ENT_QUOTES);
}
/wp-content/plugins/wp-e-commerce/wpsc-includes/wpsc_query.php 171、1516、1533行目
function wpsc_the_product_title() {
global $wpsc_query;
//return stripslashes($wpsc_query->the_product_title());
return htmlspecialchars(stripslashes($wpsc_query->the_product_title()), ENT_QUOTES, "UTF-8");
}
function get_breadcrumbs() {
global $wpdb;
$this->breadcrumbs = array();
$i = 0;
if( $this->category != null) {
if($this->is_single == true) {
$this->breadcrumbs[$i]['name'] = htmlspecialchars(stripslashes($this->product['name']), ENT_QUOTES);
$this->breadcrumbs[$i]['url'] = '';
$i++;
}
while ($category_info['category_parent']!=0) {
$category_info = $wpdb->get_row("SELECT * FROM ".WPSC_TABLE_PRODUCT_CATEGORIES." WHERE id='{$category_info['category_parent']}'",ARRAY_A);
$this->breadcrumbs[$i]['name'] = htmlspecialchars(stripslashes($category_info['name']), ENT_QUOTES);
$this->breadcrumbs[$i]['url'] = wpsc_category_url($category_info['id']);
$i++;
}
}
人気度: 2% [?]
チェックアウトの入力フォームがキャッシュ後、文字化けしてて
checkout.class.phpを同じようにしたらなおりました。
有難うございます。
>checkout.class.phpを同じようにしたらなおりました。
少しでもお役に立てて良かったです。