迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
怎么在前台显示sku价格表
{if $zhxgm_sku} {loop $zhxgm_sku['group'] $gid $gname} {if $gname} ---分组名称:{$gname} {loop $zhxgm_sku['name'][$gid] $vid $vname} ------属性名称:{$vname} ------编码sn:{$zhxgm_sku['value'][$gid.'_'.$vid]['sn']} ------价格:{$zhxgm_sku['value'][$gid.'_'.$vid]['price']} ------数量:{$zhxgm_sku['value'][$gid.'_'.$vid]['quantity']} ------图片:{dr_thumb($zhxgm_sku['value'][$gid.'_'.$vid]['image'])} ------其他字段:{$zhxgm_sku['value'][$gid.'_'.$vid]['其他字段名称']} --------------------- {/loop} ------------------------------ {/if} {/loop} {else} 没设置规格属性 {/if}
array ( 'group' => array ( 0 => '规格', 1 => '周期', ), 'name' => array ( 0 => array ( 0 => '标准版', 1 => '特价版', ), 1 => array ( 0 => '1年', 1 => '2年', 2 => '3年', ), ), 'value' => array ( '0_0_1_0' => array ( 'price' => '1231', 'scyj' => '1234', 'xufeijiage' => '12345', ), '0_0_1_1' => array ( 'price' => '1232', 'scyj' => '1234', 'xufeijiage' => '12345', ), '0_0_1_2' => array ( 'price' => '1233', 'scyj' => '1234', 'xufeijiage' => '12345', ), '0_1_1_0' => array ( 'price' => '2231', 'scyj' => '1234', 'xufeijiage' => '12345', ), '0_1_1_1' => array ( 'price' => '2232', 'scyj' => '1234', 'xufeijiage' => '12345', ), '0_1_1_2' => array ( 'price' => '2233', 'scyj' => '1234', 'xufeijiage' => '12345', ), ), )
类型这样的表格显示