Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "Updating community products text_help"
- text = "License this video for community, corporate, and non-profit viewing"
- community_products = Spree::Product.for_distribution_channel(DistributionChannel.find_by(name: 'Community').id)
- community_products.update_all(help_text: text)
- puts "Updating shipping methods"
- shipping_method = Spree::ShippingMethod.find_by(name: 'Ground One Way')
- shipping_method.update_attributes(name: 'Ground')
- shipping_method = Spree::ShippingMethod.find_by(name: '2 Day Shipping One Way')
- shipping_method.update_attributes(name: 'Two-Day Shipping')
- shipping_method = Spree::ShippingMethod.find_by(name: 'International One Way')
- shipping_method.update_attributes(name: 'International')
- puts "Updating distribtion channels"
- distribution_channel = DistributionChannel.find_by(name: 'Edu')
- distribution_channel.update_attributes(name: 'Educational')
- distribution_channel = DistributionChannel.find_by(name: 'Community')
- distribution_channel.update_attributes(name: 'Business / Non-Profit Purchases')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement