Module: Workarea::Storefront::CheckPricingOverride
- Included in:
- CartItemsController, CartsController
- Defined in:
- app/controllers/workarea/storefront/check_pricing_override.rb
Instance Method Summary collapse
Instance Method Details
#check_pricing_override ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/workarea/storefront/check_pricing_override.rb', line 4 def check_pricing_override return if current_admin.present? override = Pricing::Override.find_or_initialize_by(id: current_order.id) if override.has_adjustments? flash[:error] = t('workarea.storefront.flash_messages.order_custom_pricing') redirect_to cart_path return false end end |