全国ライブカメラの旅 第655回
2010年9月6日 – 17:09 | コメントは受け付けていません。

MOBOTIX特集
イタリア、ラベンナ -7時間
http://bagnodelfino.com/
コントロール不可、固定
機種 MOBOTIX D12
http://82.91.122.189:8003/cgi-b [...]

全文表示 Read the full story »
openSUSE

openSUSE11.2にバージョンアップ(2009.12.11)。DELL Power Edge 860 SAS 5/i5 RAID1 で稼働中。     

WordPress

プラグイン、テーマ、日本語化などWordPressって本当によく遊べます。設定などの覚書。

リンクサイト

北海道、東京、山口、宮崎他のライブカメラ関係サイトとお世話になっているサイトです。

全国ライブカメラの旅

検索でライブカメラを見つけて紹介しております。国内、海外のPanasonicを中心に紹介。

覚 書

いろいろ役に立つような情報を忘れないように覚書しております。いたって自分用です……

Home » WordPress

WP E-Commerce 文字化け

Submitted by さんきゅう on 2009年7月11日 – 14:39コメント2件

WordPres覚書
wp-e-commerce.3.7Beta5


1、ショッピングカート内(買い物かご)
2、パンくずリスト
での商品名文字化け :cry: 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++;
			}
		}

Popularity: 7% [?]

コメント2件 »

  • Mnaka より:

    チェックアウトの入力フォームがキャッシュ後、文字化けしてて
    checkout.class.phpを同じようにしたらなおりました。
    有難うございます。

  • さんきゅう より:

    >checkout.class.phpを同じようにしたらなおりました。
    少しでもお役に立てて良かったです。