Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Show promotion metadata for OrderPromotion

Aleksandar Petrushev15463572484d
diff --git a/core/app/models/spree/order_promotion.rb b/core/app/models/spree/order_promotion.rb
index 2cbf6c3ce9..618ec26472 100644
--- a/core/app/models/spree/order_promotion.rb
+++ b/core/app/models/spree/order_promotion.rb
@@ -3,8 +3,8 @@ module Spree
belongs_to :order, class_name: 'Spree::Order'
belongs_to :promotion, class_name: 'Spree::Promotion'
- delegate :name, :description, :code, to: :promotion
- delegate :currency, :public_metadata, to: :order
+ delegate :name, :description, :code, :public_metadata, to: :promotion
+ delegate :currency, to: :order
extend Spree::DisplayMoney
money_methods :amount