Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MB 273 posts 936 karma points
    May 14, 2021 @ 08:41
    MB
    0

    Missing Controllers and files

    Hi everyone,

    By looking at the Vendr Demo store at https://github.com/vendrhub/vendr-demo-store/tree/main/src

    I can see that I'm missing everything in the Vendr.DemoStore folder and I believe this is why the following code returns an error:

    @Html.Action("ProductListByCategory", "ProductSurface", new { category = Model.UrlSegment })
    
    No route in the route table matches the supplied values.
    

    The ProductSurface controller is located in that folder which I don't have.

    • I installed Vendr through Nuget
    • Going to Nuget for solution, I can see that Vendr.Core.Web is also installed

    How come I don't have the needed files?

    // Mike

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 14, 2021 @ 09:04
    Matt Brailsford
    100

    Hi Mike,

    You don't have it as it's not shipped with Vendr, you are meant to implement this yourself based on your needs. It is used / is available in the demo store repo as that is an example of a Vendr integration and so that is how we chose to implement it for that site.

    If you want to implement your store in the same way we have the demo store you can either clone the demo store repo and use that as a starting point, or copy out any bits you want to use in your own implementation. The controller you are looking for is located here https://github.com/vendrhub/vendr-demo-store/blob/main/src/Vendr.DemoStore/Web/Controllers/ProductSurfaceController.cs

    Matt

  • MB 273 posts 936 karma points
    May 14, 2021 @ 09:18
    MB
    0

    Thanks for the quick response Matt! I guess this becomes a big challenge since I'm more of a frontend developer.

    I'll see if I can figure something out or perhaps sticking to TeaCommerce which already works.

    Cheers!

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    May 14, 2021 @ 09:42
    Matt Brailsford
    0

    Yea, it's a tricky balance. We are looking at having out of the box add-ons for people who just want to tweak a basic setup which is why we have Vendr.Checkout, but we unfortunately haven't got around to the Vendr.Cart implementation yet or any helper macros for product list + product details pages.

    Hopefully we can get onto those soon, but in the meantime, your only options are to start from the demo store or start from scratch I'm affraid.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft