I'm in the middle of a site build and I've been watching Paul's walkthrough's for installing Vendr (great videos as always, will be purchasing him a coffee or 5). I've created my doc types and properties for Store, Product etc and installed Vendr.
In the walkthroughs Paul is using Modelsbuilder in LiveAppData mode but the site I've been building out is currently in PureLive. I've taken the Vendr DemoStore code though to try and get an idea of rendering my product details but I've hit a snag.
My Product page content is built out by rendering multiple partial views (UmbracoViewPage) and only one of those partials contains the pricing info I want to pull through from my Vendr product.
Error on Product page is "The source is a ModelsBuilder type, but the view model is not".
Any help would be appreciated, when I kicked off this web project I had spotted Paul's Vendr walkthroughs and thought perfect, but as it's built using Modelsbuilder it's kind of thrown me having always just worked in PureLive mode.
No problem. Can you share any error messages complete with stack trace and potentially your markup for the partial you created and I can see what I can suggest 👍🏻
Vendr - Rendering Product Details
Hey,
I'm in the middle of a site build and I've been watching Paul's walkthrough's for installing Vendr (great videos as always, will be purchasing him a coffee or 5). I've created my doc types and properties for Store, Product etc and installed Vendr.
In the walkthroughs Paul is using Modelsbuilder in LiveAppData mode but the site I've been building out is currently in PureLive. I've taken the Vendr DemoStore code though to try and get an idea of rendering my product details but I've hit a snag.
My Product page content is built out by rendering multiple partial views (UmbracoViewPage) and only one of those partials contains the pricing info I want to pull through from my Vendr product.
Error on Product page is "The source is a ModelsBuilder type, but the view model is not".
Any help would be appreciated, when I kicked off this web project I had spotted Paul's Vendr walkthroughs and thought perfect, but as it's built using Modelsbuilder it's kind of thrown me having always just worked in PureLive mode.
Cheers, Stuart
Hi Stuart
No problem. Can you share any error messages complete with stack trace and potentially your markup for the partial you created and I can see what I can suggest 👍🏻
Hi Matt,
So on my product page/view I'm rendering this partial:
Html.Partial("/Views/Partials/MediaLayers/_CoursePricingLayer.cshtml");
This is the stack trace when I rendering a the product page:
Here's the top of the product page view -
Here's the beginning of the _CoursePricingLayer.cshtml -
To confirm the site is running Umbraco V8.18 with Vendr v 2.21 installed...
Thanks, Stuart
is working on a reply...