Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <$set $options=[]$>
- <$foreach $pls as $k=>$v$>
- <$if $k|preg_match:'#^shk_#ui' && !($k|preg_match:'#_price$#ui') && $k not in ['shk_docversion','shk_discount']$>
- <$switch $k$>
- <$case 'shk_days'$>
- <$set $days=$v|getByMIGX_id:($id|resource:'tv.days_new')$>
- <$do $options[]='Период доставки '~($days['count']|decl: 'день|дня|дней':true)$>
- <$default$>
- <$do $options[]=$v$>
- <$/switch$>
- <$/if$>
- <$/foreach$>
- <$$options?($options|join:', '):$defaults$>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement