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.

Fix incorrect namespacing in Spree extension creation example (#12740)

moonlight-rays361c2d7d2794
diff --git a/docs/developer/contributing/creating-an-extension.mdx b/docs/developer/contributing/creating-an-extension.mdx
index bcf979a97f..6855d43d1c 100644
--- a/docs/developer/contributing/creating-an-extension.mdx
+++ b/docs/developer/contributing/creating-an-extension.mdx
@@ -99,7 +99,7 @@ module SpreeSimpleSales
end
end
-Spree::HomeController.prepend SpreeSimpleSalesSpree::HomeControllerDecorator
+Spree::HomeController.prepend SpreeSimpleSales::Spree::HomeControllerDecorator
```
This will select just the products that have a variant with a `sale_price` set.