Copied to clipboard

Flag this post as spam?

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


  • Anton 135 posts 186 karma points
    Oct 28, 2015 @ 20:56
    Anton
    0

    orders for current member

    How I can create page on front end with list of orders for current member?

  • Barry Fogarty 493 posts 1129 karma points
    Oct 28, 2015 @ 22:37
    Barry Fogarty
    0

    See my answer to your other similar question here

    The Bazaar starter kit has an Account History template which will be a good starting point.

    https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web.UI/App_Plugins/Merchello.Bazaar/Themes/Sandstone-3/Views/Account/History.cshtml

  • Anton 135 posts 186 karma points
    Oct 29, 2015 @ 09:20
    Anton
    0

    What the best way to install Bazaar?

  • Nathan Sleigh 109 posts 353 karma points
    Oct 29, 2015 @ 09:27
    Nathan Sleigh
    1

    The best way is to download either the Store only or combined install from here https://our.umbraco.org/projects/collaboration/merchello/, depending if you have Merchello already installed download the Store Only and just install the package in the packages section in umbraco. If you dont have Mercehllo installed, download the combined install and install that one in the packages section.

    I would personally uninstall Merchello if it is already installed and then install the combined install. It will probably be a lot easier this way.

    Nathan

  • Anton 135 posts 186 karma points
    Oct 29, 2015 @ 09:32
    Anton
    0

    but if I have a lot different setting, can I set up some controllers, because I need only history?

  • Nathan Sleigh 109 posts 353 karma points
    Oct 29, 2015 @ 09:43
    Nathan Sleigh
    0

    If you have already done a lot of work on it then yeah you might want to create something that does what you need, in that case look around here https://github.com/Merchello/Merchello/tree/merchello-dev/src/Merchello.Bazaar to see how bazaar actually does what Barry mentioned earlier.

    Nathan

  • Anton 135 posts 186 karma points
    Oct 29, 2015 @ 10:49
    Anton
    0

    When I tried to use bazaar dll and create view I have such error Cannot cast source content type Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent to view model type Merchello.Bazaar.Models.ViewModels.AccountHistoryModel.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidCastException: Cannot cast source content type Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent to view model type Merchello.Bazaar.Models.ViewModels.AccountHistoryModel.

    Source Error:

    I have such code

     @inherits Umbraco.Web.Mvc.UmbracoViewPage<AccountHistoryModel>
    @using System.Globalization
    @using System.Web.Mvc.Html
    @using Merchello.Bazaar
    @using Merchello.Bazaar.Models.ViewModels
    @using Merchello.Bazaar.Controllers
    @{
        Layout = "../Master.cshtml";
    }
    
    <div class="row">
        <div class="col-md-6">
            <h1>@Model.Name</h1>
        </div>
    </div>
    
    <table class="table table-striped">
        <thead>
            <tr>
                <th>Invoice #</th>
                <th>Invoice Date</th>
                <th>Payment Status</th>
                <th>Fulfillment Status</th>
                <th>Total</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var inv in Model.Invoices.ToArray())
            {
                <tr>
                    <td>@Html.ActionLink(inv.InvoiceNumber.ToString(CultureInfo.InvariantCulture), "LinkToReceipt", "BazaarAccount", new { area = "Bazaar", receiptContentId = Model.ReceiptPage.Id, invoiceKey = inv.Key }, new { @class = "invoice" })</td>
                    <td>@inv.InvoiceDate.ToShortDateString()</td>
                    <td>@inv.InvoiceStatus.Name</td>
                    <td>
                        @{
                            if (inv.Orders.Any())
                            {
                                @inv.Orders.First().OrderStatus.Name
                            }
                        }
                    </td>
    
                </tr>
            }
        </tbody>
    </table>
    
Please Sign in or register to post replies

Write your reply to:

Draft