Sha256: 8ae64197725cf192f882808e71b3add732dcf1d9d83b4709bf8fefc244e148e3
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
module Workarea class Storefront::ShippingEstimationsController < Storefront::ApplicationController def create address = Geocoder.search(params[:postal_code]).first current_shipping.set_address( postal_code: address.postal_code, region: address.state_code, country: address.country_code, used_for_shipping_estimation: true ) Workarea::Checkout::Steps::Shipping.new(current_checkout).update(params) redirect_to cart_path end end end
Version data entries
2 entries across 2 versions & 1 rubygems