Re: [解決済み] Slide Showcaseについて

フォーラム 拡張プラグイン [解決済み] Slide Showcaseについて Re: [解決済み] Slide Showcaseについて

#62764
ipd
参加者

そのまま置き換えて下記コードを設置致しましたが売切れの商品が売切れと表示されません…

エラーは出ておりませんが。

<?php

add_filter('slide_showcase_filter_list', 'my_showcase_filter_list', 10, 2);
function my_showcase_filter_list($html, $post){
$args = func_get_args();
$post = $args[1];
$opts = $args[2];
$width = $opts['width'];
$colum = $opts['colum'];
$limargin = $opts['limargin'];
$lipadding = $opts['lipadding'];
$liborder = $opts['liborder'];
$liwidth = ($width + $limargin) / $colum - $limargin - ($lipadding * 2) - ($liborder * 2);
$liheight = $opts['liheight'] - $lipadding * 2;
$txtheight = $opts['txtheight'];
$imgwidth = $liwidth;
$imgheight = $liheight - $txtheight;
$border = $liborder ? '' : 'border:0px';
usces_have_skus();

$list = '
<li><a>ID) . '">' . usces_the_itemImage($number = 0, $width = 130, $height = 130, $post, 'return' ) . '<div class="thumtitle">' . esc_html(usces_the_itemName('return')) . '</div></a><div class="price">' . __('$', 'usces') . number_format(usces_the_firstPrice('return')) . $usces->getGuidTax() . '<div class="zaiko">' . esc_html(!usces_have_zaiko_anyone() ? 'SOLD OUT' : ''). '</div></li>
' . "n";

return $list;
}
?>