联系我们
028-61286886
投诉邮箱

q@xunruicms.com

投诉 已回 3 0
sw586 VIP 2019-10-26 19:15:33 私信
程序版本:3.6.1 悬赏:4元
PHP程序里面

POSCMS3,商品订单列表如图,目前官方是通过商品所在的子栏目+商家来归类商品列表,请问怎么实现通过商品所在的顶级栏目来归类商品列表。


TIM截图20191026190139.png

官方默认代码:

{loop $order_list $u $store}

    
        商家:{$store.name}
        
        
    
    
        
            {loop $store.goods $t}
            
                
                    
                        
                    
                    
                        {$t.title}
                        {loop $t.sku $sname $svalue}
                        {$sname}:{$svalue}
                        {/loop}
                        
                            {if $t.use}x{$t.quantity}{else}:无货{/if}
                        
                    
                
            
            
                {if $t.order_score}{intval($t.price)}{SITE_SCORE}{else}¥{number_format($t.price, 2)}元{/if}
            

            : 
                
                {if $myfield}
                {str_replace('data[', 'data['.$u.'][', $myfield)}
                {/if}
            

            {/loop}


            : 
                运费:¥{number_format($store.yunfei, 2)}元

                店铺合计(含运费):¥0.00元   0{SITE_SCORE}
            
        
    

{/loop}
回帖