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.94.8 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.7 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.6 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.5 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.4 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.3 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.2 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.1 spec/datasets/shop_config.rb
radiant-shop-extension-0.94.0 spec/datasets/shop_config.rb
radiant-shop-extension-0.93.3 spec/datasets/shop_config.rb
radiant-shop-extension-0.93.2 spec/datasets/shop_config.rb
radiant-shop-extension-0.93.1 spec/datasets/shop_config.rb
radiant-shop-extension-0.93.0 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.11 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.10 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.9 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.8 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.7 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.6 spec/datasets/shop_config.rb
radiant-shop-extension-0.92.3 spec/datasets/shop_config.rb