Copied to clipboard

Flag this post as spam?

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


  • John Logan 24 posts 65 karma points
    Jan 26, 2018 @ 15:52
    John Logan
    0

    Getting fasttrack to work on 7.7.9

    Hi First thanks for developing this ecom package - even if was a bit of a battle to get it working - to help others shortcut the process here is what I did

    Ok so first up we have Umbraco 7.7.9 And using 2.6 of Merchello and Fasttrack

    Notes/Issues

    1 - must install from local zip - if you try via the cms it loads Fasttrack instead of Merchello

    2 this one is intermittent - for whatever reason the section doesn't get added to applications.config - I can still go to /umbraco/#/merchello and it seem to work fine I have installed the package a few times and have not found a common thread yet why it misses that stage of the install as sometimes it works and sometimes it doesnt - if I find it I will report back

    3 - you must have models builder switched on - so check that and rebuild the models once you have installed fasttrack

    Fasttrack

    1 - when installing fast track you must have en-us language present and it will only install to that culture - eg in the table - merchProductVariantDetachedContent the values for en-US are filled in but not for en-GB (or any other culture you might have) - this one took me a while to work out - it could easily be I am missing something here - perhaps better docs on this? 2 - dont even try to uninstall fasttrack - it will not like it

    and now we get to the image errors...

    If I load up the store homepage I get a ysod complaining about Model.HasValue("image") so I got rid of the original en-gb lang just to make sure it wasnt causing any further issues rebuilt the indexer in MerchelloProductIndexer via examine management in Developer tools

    now I am getting a different error - String "1658" is not a valid udi

    ok so now we are getting somewhere as anyone who has updated umbraco recently know this kind of error :) resaved the 6 products - which resaved the image using the new image picker

    so now all I have to do is rework _ProductBox.cshtml to use the new image picker

    _ProductBox.cshtml:
    @inherits UmbracoViewPage<Merchello.Web.Models.VirtualContent.IProductContent>
    @using Merchello.Core
    @{
        var images = Model.GetPropertyValue<IEnumerable<IPublishedContent>>("image");
    }
    <div class="product-box">
       <div class="caption">
          <h3><a href="@Model.Url">@Model.Name</a></h3>
          @if (images.Any()){
             var image = images.FirstOrDefault();
             <a href="@Model.Url" alt="@Model.Name">
                <img class="img-responsive" src="@image.GetCropUrl(200, 200)" alt="@Model.Name">
             </a>
    
          @if (Model.HasValue("brief")){
             <p>@Model.GetPropertyValue("brief")</p>
          }
       </div>
       @Html.Action("AddProductToBasketForm", "StoreBasket", new { area = "Merchello", model = Model })
    </div>
    

    I also had to fix the code for the images in ftProduct.cshtml but also in the plugin code at \Umbraco\App_Plugins\FastTrack\Views\CheckoutSummary

    • BasketSummary.cshtml
    • InvoiceSummary.cshtml
    • SalesReceipt.cshtml

    \Umbraco\AppPlugins\Merchello\views\StoreBasket\BasketForm.cshtml \Umbraco\AppPlugins\Merchello\views\StoreWishList\WishListForm.cshtml

    It took a while but we have a basic fasttrack example site

    This is as far as I have got so far - ie just getting fasttrack to work I now have to use this a starting point to make our own ecom site

    I would suggest for others trying this, you have 2 sites one with fasttrack and another without, and just cherry pick the bits you want on your site checking as you go its still working

    Hope this helps others get up and running with Merchello & Fasttrack as I would really like to see Merchello being the go to ecom for umbraco

    Cheers J

Please Sign in or register to post replies

Write your reply to:

Draft