Module: C80Yax::Items::Shared::BuyOptionsHelper

Defined in:
app/helpers/c80_yax/items/shared/buy_options_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_buy_options(item) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'app/helpers/c80_yax/items/shared/buy_options_helper.rb', line 6

def render_buy_options(item)

  elems = [
      {
          label: 'Нестандартные цвета<br>(+20% к стоимости)',
          tag: 'super_colors',
          value: '1',
          style: 'small'
      },
      {
          label: 'Цвета с металлическим блеском<br>(+20% к стоимости)',
          tag: 'metallic',
          value: '2',
          style: 'small'
      },
      {
          label: 'Заказать доставку',
          value: '3',
          tag: 'delivery',
          style: 'huge'
      }
  ]

  render :partial => 'c80_yax/items/buy_options',
         :locals => {
             elems: elems,
             item: item
         }
end