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.

Fixed undefined method `product_id' for Spree::LineItem

Damian Legawiec72208dace2bc
diff --git a/core/app/models/spree/line_item.rb b/core/app/models/spree/line_item.rb
index cc4e868488..6f841af8fb 100644
--- a/core/app/models/spree/line_item.rb
+++ b/core/app/models/spree/line_item.rb
@@ -39,7 +39,7 @@ module Spree
after_create :update_tax_charge
- delegate :name, :description, :sku, :should_track_inventory?, :product, :options_text, :slug, to: :variant
+ delegate :name, :description, :sku, :should_track_inventory?, :product, :options_text, :slug, :product_id, to: :variant
delegate :brand, :category, to: :product
delegate :tax_zone, to: :order