Home > タグ > EC-CUBE
EC-CUBE
[EC-CUBE]モバイルでのポイント利用
- 2008-02-21 (木)
2.1.0-betaのデフォルトテンプレートの場合、
/data/Smarty/templates/default/mobile/shopping/deliv_date.tpl
33〜35行目を、以下に変更します。
<!--{if $tpl_login == 1}-->
■ポイント利用<br />
現在の所持ポイントは「<!--{$tpl_user_point|default:0}--> pt」です。<br />
所持ポイント以上のポイントはご利用いただけません。<br />
<input type="hidden" name="point_check" value="1" />
<input type="text" name="use_point" istyle="4" />
<!--{/if}-->
- Comments: 0
- Trackbacks: 0
[EC-CUBE]パンくずリスト
- 2008-01-13 (日)
/data/class_extends/helper_extends/SC_Helper_DB_Ex.php
37行目に以下を追加
function sfGetTopicPath($category_id){
// 商品が属するカテゴリIDを縦に取得
$objQuery = new SC_Query();
$arrCatID = $this->sfGetParents($objQuery, "dtb_category", "parent_category_id", "category_id", $category_id);
$TopicPath = " > ";
// カテゴリー名称を取得する
foreach($arrCatID as $key => $val){
$sql = "SELECT category_name FROM dtb_category WHERE category_id = ?";
$arrVal = array($val);
$CatName = $objQuery->getOne($sql,$arrVal);
if( $val != $category_id){
$TopicPath .= '<a href="./list.php?category_id=' .$val . '">' . $CatName . '</a> > ';
}else{
$TopicPath .= $CatName;
}
}
return $TopicPath;
}
function sfGetTopicPath2($category_id){
// 商品が属するカテゴリIDを縦に取得
$objQuery = new SC_Query();
$arrCatID = $this->sfGetParents($objQuery, "dtb_category", "parent_category_id", "category_id", $category_id);
$TopicPath = " > ";
// カテゴリー名称を取得する
foreach($arrCatID as $key => $val){
$sql = "SELECT category_name FROM dtb_category WHERE category_id = ?";
$arrVal = array($val);
$CatName = $objQuery->getOne($sql,$arrVal);
$TopicPath .= '<a href="./list.php?category_id=' .$val . '">' . $CatName . '</a> > ';
}
return $TopicPath;
}
/data/class/pages/products/LC_Page_Products_List.php
107行目に以下を追加
$TopicPath = $objDb->sfGetTopicPath($arrCategory_id[0]);
$this->tpl_topicpath = $TopicPath;
/data/class/pages/products/LC_Page_Products_Detail.php
211行目に以下を追加
$arrTopicPath = $objDb->sfGetTopicPath2($arrCategory_id[0]);
$this->tpl_topicpath = $arrTopicPath;
/data/Smarty/templates/default/site_main.tpl
37行目に以下を追加
<!--{if $tpl_topicpath != ""}-->
<a href="<!--{$smarty.const.SITE_URL}-->index.php">TopPage</a>
<!--{$tpl_topicpath}-->
<!--{$arrProduct.name|escape}-->
<!--{/if}-->
- Comments: 0
- Trackbacks: 0
Home > Tags > EC-CUBE
- Search
- Feeds
- [PR]