「usces_the_item」の検索結果
-
検索結果
-
トピック: [解決済み] 商品一覧で価格が「0円」になる。
(当初のタイトル「商品一覧、商品詳細で在庫ステータスや価格が出ない」)
連投すみません。
バージョンアップをしてから、商品一覧、商品詳細ページにおいて、今まで表示されていた在庫ステータス及び価格が表示されなくなったり、価格が0円となったりしています。
在庫ステータスは条件分岐を使ったカスタムをしています。
[商品一覧] themes/Welcart_default/templates/wp_search_item.php
・購入可能時:価格が0円となる
・売り切れなど:価格の変わりの文字が出力されない。(sold outなどが出ない)
・
・
・
if( !usces_have_zaiko() ){
$status = usces_get_itemZaiko( ‘id’ );
if( 2 === $status ):
$html .= ‘<p class=”row_item_list_p2″>’ . apply_filters(‘usces_filters_single_sku_zaiko_message’, __(‘うりきれ’, ‘usces’)) . ‘</p>’.”n”;
endif;
if( 3 === $status ):
$html .= ‘<p class=”row_item_list_p2″>’ . apply_filters(‘usces_filters_single_sku_zaiko_message’, __(‘にゅうかまち’, ‘usces’)) . ‘</p>’.”n”;
endif;
}else{
$html .= ‘<p class=”row_item_list_p2″>’ . number_format($this->itemsku) . apply_filters(‘usces_filter_sellingprice_label’, __(‘yen’, ‘usces’)) . ‘</p>’.”n”;
}
・
・
・
[商品詳細ページ] themes/Welcart_default/wc_templates/wc_item_single.php
・購入可能時:問題なく表示。
・売り切れなど:値が出力されない。(sold outなどが出ない)
・
・
・
<?php if( !usces_have_zaiko() ) : ?>
<?php $status = usces_get_itemZaiko( ‘id’ ); ?>
<?php if( 2 === $status ): ?>
<?php echo apply_filters(‘usces_filters_single_sku_zaiko_message’, __(‘うりきれ’, ‘usces’)); ?>
<?php endif; ?>
<?php if( 3 === $status ): ?>
<?php echo apply_filters(‘usces_filters_single_sku_zaiko_message’, __(‘にゅうかまち’, ‘usces’)); ?>
<?php endif; ?>
<?php else : ?>
<?php usces_the_itemPriceCr(); ?>
<?php if( usces_the_itemCprice(‘return’) > 0 ) : ?>
Ι <del><?php usces_the_itemCpriceCr(); ?></del><?php usces_guid_tax(); ?>
<?php endif; ?>
</td>
<?php endif; ?>
・
・
・
ご多忙の所申し訳ありませんが、
解決方法がありましたら、ご回答よろしくお願い致します。
動作に関するご質問の場合は必ずご記入ください。
WordPress のバージョン:3.3.0
Welcart のバージョン:1.1.0
ご利用のテーマ:welcartデフォルト
症状を確認したブラウザ:MAC OS X FireFox 9.0.1
サーバー(会社名、サービス名):heteml(ヘテムル)
SSLの利用: 共用SSL
WordPress のパーマリンク設定:/%category%/%post_id%
動作に関するご質問の場合は必ずご記入ください。
WordPress のバージョン:3.3.1
Welcart のバージョン:1.1
ご利用のテーマ:デフォルトを一部カスタム
症状を確認したブラウザ:firefox9.0.1
サーバー(会社名、サービス名):お名前.com共有サーバSD
SSLの利用: 無し
WordPress のパーマリンク設定:無し
仕様なのかよく分からないので質問させてください。
商品SKUの在庫状態を選択する項目で
「在庫あり」「在庫僅少」「売切れ」「入荷待ち」「廃盤」
がありますが、「入荷待ち」と「廃盤」を選んだ場合
商品ページの在庫状態の表示が「売切れ」にしかなりません。
商品マスターには「入荷待ち」「廃盤」としっかり反映されています。
これは仕様でしょうか?
表示部分は<?php usces_the_itemZaiko(); ?>で表示しています。
宜しくお願いします。
WordPress のバージョン:3.3.1
Welcart のバージョン:1.0.10
ご利用のテーマ:Welcart Defaultを親とした子テーマ
はじめまして。
いつもお世話になっております。
さっそくですが、商品詳細ページのメイン画像のサイズを変更したいと思い、
usces_filter_the_itemImage というフックを使って function.php 内に下記のコードを追加しました。
add_filter('usces_filter_the_itemImage', 'my_itemimage_func', 10, 3);
function my_itemimage_func() {
global $post;
$itemImage = usces_the_itemImage(0, 300, 300, $post);
return $itemImage;
}サイズは変更できたのですが、表示されたソースを見ると
下記のように、imgタグが別の箇所に飛び出してしまいました。
本来の箇所には何も表示されません。
<div class="storycontent">
<img width="300" height="175" src="http://xxxxx/wordpress/wp-content/uploads/2012/01/8667.jpg" class="attachment-300x300" alt="8667" title="xxxxx" />
<div id="itempage">
<form action="http://xxxxx/usces-cart/" method="post">
<div class="itemimg">
<a href="http://xxxxx/wordpress/wp-content/uploads/2012/01/8667.jpg"></a>
</div>フックを使ったのは初めてでして、理解が足りない状況で大変恐縮なのですが、
修正方法をご教授いただけますでしょうか。
どうぞよろしくお願いいたします。
トピック: アーカイブページにお勧め商品表示
お世話になります。
welcartのデフォルトテンプレートを使用しております。
商品一覧ページ(アーカイブページ)にカテゴリー毎のお勧め商品を表示させたいのですが、
どのような作業が必要でしょうか。
下記をarchive.phpのどこかに埋めるということでよろしいのでしょうか?
ご教授お願いします。
<div class="title"><?php _e('Items recommended','usces') ?></div>
<div class="clearfix">
<?php $reco_ob = new wp_query(array('category_name'=>'itemreco', 'orderby' =>rand, 'posts_per_page'=>8, 'post_status'=>'publish')); ?>
<?php if ($reco_ob->have_posts()) : while ($reco_ob->have_posts()) : $reco_ob->the_post(); usces_the_item(); ?>
<div class="thumbnail_box">
<div class="thumimg"><a href="<?php the_permalink() ?>"><?php usces_the_itemImage($number = 0, $width = 108, $height = 108 ); ?></a></div>
<div class="thumtitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php usces_the_itemName(); ?> (<?php usces_the_itemCode(); ?>)</a></div>
<?php if (usces_is_skus()) : ?>
<div class="price"><?php usces_crform( usces_the_firstPrice('return'), true, false ); ?><?php usces_guid_tax(); ?></div>
<?php endif; ?>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; wp_reset_query(); ?>
</div>よろしくお願い致します。
拝
WordPress のバージョン:WordPress 3.2.1
Welcart のバージョン:バージョン 1.0.6
ご利用のテーマ:welcartデフォルトテーマ改変
症状を確認したブラウザ:Firefox
サーバー(会社名、サービス名):lolipop
SSLの利用: 無し
WordPress のパーマリンク設定:数字ベース