Sha256: 813f3e185c0ff1cccd59fae64bfd2633233802757502d6e08bb2042e6673c48a

Contents?: true

Size: 821 Bytes

Versions: 31

Compression:

Stored size: 821 Bytes

Contents

class ShopConfigDataset < Dataset::Base
  
  def load
    Radiant::Config['shop.root_page_id']        = pages(:home).id
    
    Radiant::Config['shop.layout_product']      = 'Product'
    Radiant::Config['shop.layout_category']     = 'Products'
    
    Radiant::Config['shop.price_unit']          = '$'
    Radiant::Config['shop.price_precision']     = 2
    Radiant::Config['shop.price_separator']     = '.'
    Radiant::Config['shop.price_delimiter']     = ','
    
    Radiant::Config['shop.tax_strategy']        = 'inclusive'
    Radiant::Config['shop.tax_percentage']      = '10'
    Radiant::Config['shop.tax_name']            = 'gst'
      
    Radiant::Config['shop.date_format']         = '%d/%m/%Y'
    
    # Scoped Customer Welcome Page
    Radiant::Config['scoped.customer.redirect'] = '/cart'
  end
  
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
radiant-shop-extension-0.92.2 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.1 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.0 spec/datasets/shop_config.rb
radiant-shop-extension-0.91.7 spec/datasets/shop_config.rb
radiant-shop-extension-0.91.4 spec/datasets/shop_config.rb
radiant-shop-extension-0.91.3 spec/datasets/shop_config.rb
radiant-shop-extension-0.91.2 spec/datasets/shop_config.rb
radiant-shop-extension-0.90.4 spec/datasets/shop_config.rb
radiant-shop-extension-0.90.2 spec/datasets/shop_config.rb
radiant-shop-extension-0.90.1 spec/datasets/shop_config.rb
radiant-shop-extension-0.90.0 spec/datasets/shop_config.rb