Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create_store_information(store, meta)
- user = @datasource.user
- user.store_informations.create!(
- name: store['name'],
- description: store['description'],
- status: 1,
- url: store['URL'].downcase,
- store_version: store['version'],
- api_version: store['wc_version'],
- timezone: meta['timezone'],
- currency: meta['currency'],
- currency_format: meta['currency_format'],
- currency_position: meta['currency_position'],
- thousand_separator: meta['thousand_separator'],
- decimal_separator: meta['decimal_separator'],
- price_num_decimals: meta['price_num_decimals'],
- tax_included: cast_to_bool(meta['tax_included']),
- weight_unit: meta['weight_unit'],
- dimension_unit: meta['dimension_unit'],
- ssl_enabled: cast_to_bool(meta['ssl_enabled']),
- permalinks_enabled: cast_to_bool(meta['permalinks_enabled']),
- generate_password: cast_to_bool(meta['generate_password']),
- user: user
- )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement