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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Make config :show raw product_description usable in new storefront.
Matthew Kennedyb21e815425e4
diff --git a/frontend/app/views/spree/products/_description.html.erb b/frontend/app/views/spree/products/_description.html.erbindex 3ae495077d..6609acd705 100644--- a/frontend/app/views/spree/products/_description.html.erb+++ b/frontend/app/views/spree/products/_description.html.erb@@ -1,10 +1,18 @@<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:description) %></h3><div id="product-description-short" class="m-0 text-break product-description" data-hook="description">- <%= sanitize product_description(@product).truncate(450) %>+ <% if Spree::Config[:show_raw_product_description] %>+ <%= raw product_description(@product).truncate(450) %>+ <% else %>+ <%= sanitize product_description(@product).truncate(450) %>+ <% end %></div><div id="product-description-long" class="m-0 text-break product-description d-none" data-hook="description">- <%= sanitize product_description(@product) %>+ <% if Spree::Config[:show_raw_product_description] %>+ <%= raw product_description(@product) %>+ <% else %>+ <%= sanitize product_description(@product) %>+ <% end %></div><% if product_description(@product).length > 450 %>