「usces_the_item」の検索結果
-
検索結果
-
お世話になります。
wcex_item_list_layout.1.2.7 で、複数のレイアウトを「グリッド型
」と「リスト型」で使い分けて使用しています。
「リスト型」についてご教授お願いします。
本文が長いため、抜粋にしたいので下記のをfanctions.php に追加して色々試してみたのですが、どうしても本文全部が出てしまうので、現在は本文にmore タグを入れて表示させています。
add_filter( 'usces_filter_item_list_loopimg', 'my_filter_item_list_loopimg', 10, 2);
function my_filter_item_list_loopimg($html, $content){
global $post;
$html = '<div>' . usces_the_itemName( 'return' ) . '</div>';
$html .= '<div class="loopimg"><a href="' . get_permalink($post->ID) . '">' . usces_the_itemImage(0, 100, 100, $post, 'return') . '</a></div>';
$html .= '<div class="loopexp"><div class="field">' . $content . '</div></div>';
return $html;
}最後の$content を $excerpt に変更してみたり、<?php the_excerpt(); ?>をcategorys.php に追加してみたりしましたが、何もかわりません。$contentを外すと何もなくなりました。
こちらの↓フィルターフックの使い方も確認したのですが、よくわかりませんでした。
https:/www.welcart.com/community/archives/1697
毎回、クライアントにmore タグを入れてもらわなくてはいけないため、カスタマイズしたのですが、どうしてもわからず、投稿させて頂きました。
何かコツがあればアドバイス頂けると助かります。
お返事をどうぞ宜しくお願いいたします。
動作に関するご質問の場合は必ずご記入ください。
WordPress のバージョン:バージョン 3.4.1
Welcart のバージョン:Version 1.2.1.1210051
ご利用のテーマ:twentyten 子テーマをカスタマイズ
症状を確認したブラウザ:Google Chrome, Fire Fox
サーバー(会社名、サービス名):さくらVPS
SSLの利用: 専用SSL
WordPress のパーマリンク設定:/%category%/%postname%/
nanbuさん
お世話になります。
ご質問ですが、1SKUの場合の商品詳細ページレイアウトですが1SKUの場合のみh3のusces_the_itemNameとusces_the_itemCodeが商品説明分の下にきてしまいます。
どの様に対処すればよいでしょうか?
また、1SKUの場合でもsome SKU同様にSKUテーブルにする事は可能でしょうか?
よろしくお願いいたします。
WordPress のバージョン:3.4.2
Welcart のバージョン:1.2
ご利用のテーマ:カスタム
症状を確認したブラウザ:Mac OS X 10.8.2
サーバー(会社名、サービス名):お名前.com
SSLの利用: 無し
WordPress のパーマリンク設定:
トピック: サイドバーにある商品写真のサイズを小さくしたい
いつもお世話になっております。
以前から過去の質問を調べているのですが、どうしてもわからなかったので
質問させてください。
トップページやアイテムページにWelcartのサイドバーに「おすすめ商品」「ギャラリー」を表示していますが、この商品写真が大きいので、サイズを小さくしたいと思います。
以前の質問を見て、「sidebar.php」ファイルのusces_the_itemImageを
usces_the_itemImage($number = 0, $width = 100, $height = 100 ); ?>
としたのですが、表示は変わらず、150×150のままです。
ギャラリーの写真も、小さくしたいと思っています。
php初心者で、試行錯誤しながらカスタマイズしておりますので、
稚拙な質問かと思いますが、どうか上記の方法をご教授ください。
WordPress のバージョン:3.4.2
Welcart のバージョン:1.2
サーバー(会社名、サービス名):Apache
WordPress のバージョン:3.41
Welcart のバージョン:1.1.10
ご利用のテーマ:デフォルトをカスタマイズ
home.phpのお勧め商品の表示方法をサイドバーのお勧め商品の表示のようにランダムに表示をさせたく、サイドバーのソースの必要と思われるソースをhome.phpに移植したところ、うまく表示されません
ほぼランダムに表示されるのですが、
表示件数が、ある時は正しく表示されるのですが、ある時は少なく表示されたりします。
(10件表示するように設定にしているにも関わらず、4件しか表示されなかったり、5件しか表示されなかったりします)
確認方法はブラウザの再読み込みで行いました。その際サイドバーのお勧めの表示は正常でした。
アドヴァイスをいただけませんでしょうか?
よろしくお願いいたします
<div class="clearfix">
<?php $offset = usces_posts_random_offset(get_posts('category='.usces_get_cat_id( 'itemreco' )));
$myposts = get_posts('numberposts=10&offset='.$offset.'&category='.usces_get_cat_id( 'itemreco' ));
foreach($myposts as $post) : usces_the_item();?>
<div class="thumbnail_box">
<div class="thumimg"><a href="<?php the_permalink() ?>">
<?php usces_the_itemImage($number = 0, $width = 150, $height = 150 ); ?>
<div class="thumtitle">
<?php usces_the_itemName(); ?>
</div>
</a></div>
<!--プライス-->
<?php if (usces_is_skus()) : usces_have_skus()?>
<?php if (usces_have_zaiko_anyone() ): ?>
<?php if (usces_the_firstCprice('return') > 0) : ?>
<div class="reg_price">
<?php usces_crform( usces_the_firstCprice('return'), true, false ); ?>
<?php usces_guid_tax(); ?>
</div>
<?php endif; ?>
<div class="price">
<?php usces_crform( usces_the_firstPrice('return'), true, false ); ?>
<?php usces_guid_tax(); ?>
</div>
<?php else: ?>
<div class="price">
<?php usces_the_itemZaiko(); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<!--//プライス-->
</div>
<?php endforeach; ?>
<?php wp_reset_query(); ?>
</div>ウィジェットを使わずに、ベストセラーを表示させたいのですが、
過去のフォーラムを参考にテキスト、写真、ランキングアイコンを表示されることができたのですが、出力されたマークアップ(ソース)が気になります。
正しいマークアップで表示させることと、追加で「商品価格」を表示させるには、「functions.php」をどのようにすれば良いでしょうか。
-【現状】
= ▽ functions.php =======
add_filter('usces_filter_bestseller', 'my_bestseller_func', 10, 3);
function my_bestseller_func() {
$args = func_get_args();
list($html, $post_id, $index) = $args;
$post = get_post($post_id);
if ( $index == 0 ){
$img = 'http://www.abc.com/img/common/rank1.gif';
} elseif ( $index == 1 ){
$img = 'http://www.abc.com/img/common/rank2.gif';
} elseif ($index == 2){
$img = 'http://www.abc.com/img/common/rank3.gif';
} else {
}
$list = usces_the_itemImage(0, 50, 50, $post, 'return' ) . '
<li><span class="rank"><img src="' . $img . '" alt="" /></span> <a href="' . get_permalink($post_id) . '">' . $post->post_title . '</a></li>
';
return $list;
}= ▽ HTMLソース =======
<ul>
<img width="50" height="530" src="http://www.abc.com/aaa-003-150x150.jpg" class="" alt="" title="タイトル1" />
<li><span class="rank"><img src="http://www.abc.com/img/rank1.gif" alt="" /></span> <a href="http://www.abc.com/item/00/">商品名タイトル1</a>
</li>
<img width="50" height="530" src="http://www.abc.com/aaa-003-150x150.jpg" class="" alt="" title="タイトル2" />
<li><span class="rank"><img src="http://www.abc.com/img/rank1.gif" alt="" /></span> <a href="http://www.abc.com/item/11/">商品名タイトル2</a>
</li>
<img width="50" height="530" src="http://www.abc.com/aaa-003-150x150.jpg" class="" alt="" title="タイトル3" />
<li><span class="rank"><img src="http://www.abc.com/img/rank1.gif" alt="" /></span> <a href="http://www.abc.com/item/22/">商品名タイトル3</a>
</li>
</ul>-【要望】
①<li>タグの前にある<img>を<li>の中に入れたい。
②ついでに商品価格も表示させたい。
↓理想の結果
= ▽ HTMLソース =======
<ul>
<li>
<img src="" alt="ランキングアイコン" />
<a href="">商品名タイトル1</a>
<br />商品価格
<img src="" alt="商品画像" />
</li>
<li>
<img src="" alt="ランキングアイコン" />
<a href="">商品名タイトル2</a>
<br />商品価格
<img src="" alt="商品画像" />
</li>
・
・
・
</ul>どうぞ、宜しくお願いいたします。<(_ _)>
動作に関するご質問の場合は必ずご記入ください。
WordPress のバージョン:3.5.1
Welcart のバージョン: 1.1.9.1207244
ご利用のテーマ:オリジナル
症状を確認したブラウザ:safari 5.1.7
サーバー(会社名、サービス名):CORESERVER
SSLの利用: ○無し | ×専用SSL | ×共用SSL
WordPress のパーマリンク設定:/%category%/%post_id%/