聯(lián)系官方銷售客服
1835022288
028-61286886
插件名稱:網(wǎng)店系統(tǒng)
購物車列表怎么調(diào)用該商品的欄目id呢?
<tbody> {loop $list $i $t} {php $sku_name=dr_string2array($t.sku_name);} <tr id="dr_row_{$t.id}"> <td style=""> <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline"> <input type="checkbox" checked="checked" class="checkboxes" name="ids[]" value="{$t.id}" /> <span></span></label> </td> <td class="cart_product" style="text-align: center"> <a href="{$t.url}" title="{$t.title}"> <img style="width: 70px; height: 70px;" src="{dr_thumb($t.thumb, 70, 70)}"></a> </td> <td class="cart_description"> <p class="product-name"> <a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 50)}</a></p>{loop $sku_name $i $c} <small class="cart_ref">{$i}: {$c}</small>{/loop}</td> <td class="price pprice">{if $t.yuan} <p>¥ <span class="regular-price">{number_format($t.price, 2)}</span>元</p> <p class="pyuan">¥ <span>{number_format($t.yuan, 2)}</span>元</p> <p>{$t.p_info}</p>{else} ¥ <span class="regular-price">{number_format($t.price, 2)}</span>元 {/if}</td> <td class="qty" style="width: 150px"> <input class="dr_buy_num" iid="{$t.id}" type="text" value="{$t.quantity}"></td> <td class="price">¥ <span id="dr_total_{$t.id}" class="regular-price">{number_format($t.price * $t.quantity, 2)}</span>元</td> <td class="action"> <a href="[removed]dr_cart_del('{$t.id}');">刪除</a></td> </tr> {/loop} </tbody>
看看輸出的數(shù)據(jù)
回復@官方插件實習技術(shù)
array(11) { ["id"]=> string(1) "3" ["mid"]=> string(17) "1_store-4-5-%-0_0" ["uid"]=> string(1) "1" ["price"]=> string(5) "18.00" ["quantity"]=> string(1) "1" ["sku_name"]=> string(20) "{"規(guī)格":"300*300"}" ["sku_value"]=> string(3) "0_0" ["title"]=> string(41) "諾貝爾瓷磚 伊麗莎白 廚衛(wèi)地磚" ["thumb"]=> string(1) "2" ["url"]=> string(30) "/index.php?s=store&c=show&id=4" ["inputtime"]=> string(10) "1598421687" }
很明顯,這個數(shù)據(jù)沒有存儲欄目id號,所以不能調(diào)用出欄目
我私信發(fā)給你了,測試下