Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Customize the Invoice and Order PDF

Describes how to customize the Invoice and Order PDFs in Optimizely Configured Commerce's Spire CMS.

You can customize the OrderDetails, ListDetails and InvoiceDetails PDFs by copying them from
/src/InsiteCommerce.Web/_systemResources/Themes/Responsive/Views/Directives/PdfViews to /Extensions/Views/Pdfs.

You must also set them up as embedded resources. This is set up by default in the Extensions project with

  <Target Name="EmbedViews" AfterTargets="BeforeBuild">
    <ItemGroup>
      <EmbeddedResource Include="***.cshtml" />
    </ItemGroup>
  </Target>