Copied to clipboard

Flag this post as spam?

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


  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 08, 2016 @ 17:49
    Rusty Swayne
    0

    Merchello 2.1.0 Release

    Merchello 2.1.0

    New Features

    DataTypes

    1. Merchello Product Collection Picker - Allows for directly picking product collections so that collection trees may more easily be rendered. Example - Category -> Sub-Categories.

    2. Merchello Checkout Stage Picker - Allows for associating an "Checkout Stage Alias" such as BillingAddress, ShippingAddress, ShipRateQuote ... etc with Umbraco content. This makes it easier in some cases to find Umbraco content via standard Umbraco content queries that is responsible for a checkout operation so that the Id, content name or a unique document type need not be referenced.

    New UI Pattern (dubbed Fast Track)

    We've replaced the Merchello Bazaar with a new implementation we're referring to as "Fast Track." New UI specific classes have been introduced into Merchello to assist in implementing stores that make it easier to customize individual operations rather than having to support an entirely customized solution of a starter kit between upgrades.

    Merchello.Web - A new foundation for UI classes have been defined as a set of model interfaces in the Merchello.Web.Models.Ui namespace. Generic type factories (Merchello.Web.Factories) and controllers (Merchello.Web.Controllers) have also been introduced to allow for basic implementation of common UI operations such as adding items to a basket, the basket itself and a generic checkout workflow.

    Merchello.Web.Store - Is a new core library that contains basic implementations of the Merchello.Web models, factories and controllers. Depends on Merchello.Web and is now included with every Merchello installation.

    FastTrack Starter Kit

    Merchello.FastTrack - This library extends Merchello.Web.Store and is the foundation of the FastTrack Starter kit. This is a separate library and NOT included in a default Merchello installation.

    A new Nuget Package is available Merchello.FastTrack that includes the Merchello.FastTrack.dll and default plugin views (Razor cshtml) for use in web application projects in cases where the implementer wishes to use the controllers and views included in the FastTrack starter kit using their own content type (document types) and content tree structure.

    Merchello.FastTrack Starter Kit - Installs a basic fully functioning store using the fast track pattern.

    Updates

    1. The property value converter for Merchello Product List View datatype now returns an object of type ProductContentListView instead of IEnumerable<IProductContent>. ProductContentListView itself inherits from IEnumerable<IProductContent> (so this is not a breaking change) and also exposes the CollectionKey associated with the product list.
    2. Invoice PO Numbers are now editable through the back office
    3. Added ProcessingCompleted event to PayPalExpressController to allow for more control over notifications
    4. Removes Merchello.Bazaar from the Core (Merchello.Web.UI project)
    5. ShipCountryService and ShipCountry have been publicized
    6. Billing Address fields are now searchable in the sales view.

    Bug Fixes

    1. Fixes issue with IProductContent culture not being set
    2. PayPal Express Cancel/Error Handling

    Umbraco Version

    Merchello tested against Umbraco 7.4.3

    Upgrade your Umbraco installation to Umbraco 7.4.x before upgrading Merchello.

    Copy over Merchello binaries (dlls) in the bin directory. Copy over the AppPlugins/Merchello and AppPlugins/MerchelloProviders directory (note if you have made any configuration changes in the merchello.config make sure to retain those).

    Change log

    http://issues.merchello.com/youtrack/rest/agile/Merchello-1/sprint/2.1.0

  • PierreD Savard 183 posts 290 karma points
    Jun 08, 2016 @ 18:12
    PierreD Savard
    1

    GREAT! I start on it right over! ;-)

  • PierreD Savard 183 posts 290 karma points
    Jun 08, 2016 @ 20:40
    PierreD Savard
    0

    Hi Rusty, I upgrade my current project with nupkg for Merchello 2.1 and Fastrack 2.1. Then I copy from my project with full Merchello + Fastrack starter kit the AppPlugins/Merchello AppPlugins/MerchelloProviders and AppPlugins/Fastrack

    When I try to add a ProducCollectionPicker, I got this: :{{ collection.name }}

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 08, 2016 @ 21:14
    Rusty Swayne
    0

    What is your back office UI language?

  • PierreD Savard 183 posts 290 karma points
    Jun 09, 2016 @ 12:28
    PierreD Savard
    0

    Ho! French Canadian. I change it back to EN English and it work. Where I can add some french text, I can translate it for you.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 09, 2016 @ 14:22
    Rusty Swayne
    0

    Hey Pierre

    You will need to copy one of the language files (en-GB.xml or en-US.xml) located in src/Merchello.Web.Ui.Client/config/lang/ and make the translations and make a pull request.

    So that you can immediately use it in your build, copy the new file into your /App_Plugins/Merchello/lang folder manually.

    The originating file is bundled into our package in the build script.

  • Dimitris 6 posts 76 karma points
    Jun 09, 2016 @ 14:11
    Dimitris
    0

    How can i install this with the FastTrack Website?? I mean when i go to install Mercelo_FastTrack.zip as "Import local package" i get an error message that some Mercelo.Web dlls are missing!

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 09, 2016 @ 14:18
    Rusty Swayne
    0

    Hi Dimitris,

    The Fast Track starter requires that Merchello is installed first. Install the Merchello_2.1.0.zip package and then install the Fast Track starter.

  • Dimitris 6 posts 76 karma points
    Jun 10, 2016 @ 06:27
    Dimitris
    0

    OK i successfully installed Merchelo, now aboout the fasttrack how i add it? (i have just installed umbraco cms+Merchelo+1 starter site)

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Jun 10, 2016 @ 09:20
    Biagio Paruolo
    0

    See here:

    FastTrack Starter Kit

    Merchello.FastTrack - This library extends Merchello.Web.Store and is the foundation of the FastTrack Starter kit. This is a separate library and NOT included in a default Merchello installation.

    A new Nuget Package is available Merchello.FastTrack* that includes the Merchello.FastTrack.dll and default plugin views (Razor cshtml) for use in web application projects in cases where the implementer wishes to use the controllers and views included in the FastTrack starter kit using their own content type (document types) and content tree structure.*

    Merchello.FastTrack Starter Kit - Installs a basic fully functioning store using the fast track pattern.

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Jun 10, 2016 @ 09:18
    Biagio Paruolo
    0

    WOW

  • Dimitris 6 posts 76 karma points
    Jun 10, 2016 @ 09:25
    Dimitris
    0

    I mean i downloaded the Merchello.FastTrack (idk how to use nugets) and i extract it and have a folder with .css .dll .cshtml and various types of files... How to add them to my Umbraco i mean? :D

    Edit: OK found it! ty all i go check it finally :D

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 10, 2016 @ 15:49
    Rusty Swayne
    0

    Hi Dimitris

    Install the Merchello package first - FastTrack depends on Merchello being installed. Then install The FastTrack package (as a package - don't unzip)

  • PierreD Savard 183 posts 290 karma points
    Jun 10, 2016 @ 16:22
    PierreD Savard
    0

    Hi Rusty, what is the difference between: Merchello.Web.Models.VirtualContent; Merchello.Web.Models.ContentEditing;

    For example, I got a custom Controller that fill up a custom store page. I need the list of products for one category. I want to use the Product model available in the Web.store dll to be easily compatible with the factories you create. But I need to add some more custom properties.

    I See in the FastTrack sample you use

    IEnumerable<Merchello.Web.Models.VirtualContent.IProductContent>
    

    to display a list of products. If I need to add some custom properties? What is the best way to achieve this? Creating a custom class with IProductContent

    Public class ProductTest: IProductContent
    

    But I do not want to implement all the functions! Do you have a heritable class for that? I found ProductDisplay from the ContentEditing editing namespace. It is suitable for that?

    Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 10, 2016 @ 19:28
    Rusty Swayne
    0

    Hey Pierre

    Can you not just extend the product in the back office and use the properties via IProductContent / IPublishedContent and local extension methods? I guess I'm not understanding what you are trying to do ...

    The models in ContentEditting are intended for the back office. They are NOT IPublishedContent. They are mainly used when serializing to JSON.

  • PierreD Savard 183 posts 290 karma points
    Jun 10, 2016 @ 20:53
    PierreD Savard
    0

    Ho my god you'r wight! Not enough sleep! I will use product extension. What is the simplest way to jump from the product extended properties when I do a foreach of IEnumerable

    Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 11, 2016 @ 07:27
    Rusty Swayne
    0

    It's the same way you would any standard Umbraco content.

     var imageId = product.GetPropertyValue("image"): 
    

    IProductContent just adds product properties ...

    var SKU = product.Sku;
    
  • PierreD Savard 183 posts 290 karma points
    Jun 13, 2016 @ 15:02
    PierreD Savard
    0

    OK I see. What about using

    GetCropUrl("mainImage", "default");
    

    we can't directly from a IProductContent. I make a little class helper that convert the productCollection into a List of custom object because the ListView control of KenoUI library to not work well with Umbraco complex object. In the conversation, I need the cropped image URL. I try to found a way to get an object giving me access to GetCropUrl instead of passing the Umbraco object to the helper each time.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 13, 2016 @ 15:11
    Rusty Swayne
    0

    Hey Pierre,

    It should be exactly the same as any other Umbraco content page - so probably has to do with the property value converter you are using.

  • PierreD Savard 183 posts 290 karma points
    Jun 13, 2016 @ 15:25
    PierreD Savard
    0

    OK Maybe I do it wrong. I got this at the beginning: (in my main store page)

    var produits = catalogRoot.GetPropertyValue<ProductCollection>("produits");
    

    Then I pass this collection to a partial view

    @model ProductCollection
    @{ }
    

    then get a product list:

    product = Model.GetProducts()
    

    then a loop

    foreach (IProductContent p in produits){
    prod = new ProduitModel();
    prod.nom = p.Name;
    prod.imageURL = p.GetCropUrl("mainImage", "default");
    
    prodCol.Add(prod);}
    

    At this state the "p" are a IProductContent and do not have all the IPublishedContent property. I think I do the path from Merchello to product list the wrong way?

  • PierreD Savard 183 posts 290 karma points
    Jun 13, 2016 @ 19:14
    PierreD Savard
    0

    I found it! It was missing:

    using Umbraco.Web;
    

    That working now! Thanks

  • PierreD Savard 183 posts 290 karma points
    Aug 16, 2016 @ 21:58
    PierreD Savard
    0

    Small question again about ProductContentListView collection. Maybe is just a kind of C# IEnnumerable stuff, but can I do:

    ProductContentListView prods;
    prods = catalogRoot.GetPropertyValue<ProductContentListView>("listeProduits").Where(x => x.Name.Contains(search));
    

    I got a error because the Where cause create un generic collection from System.Collection instead of Merchello.web.models....

    Do I have a way to convert it back into ProductContentListView to pass it to my already working partial page that use this collection (normally without the .Where part)

    Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 16, 2016 @ 22:39
    Rusty Swayne
    0

    ProductContentListView implements IEnumerable<IProductContent> so you should be able to do -

     ProductContentListView prods;
    prods = catalogRoot.GetPropertyValue<IEnumerable<IProductContent>>("listeProduits").Where(x => x.Name.Contains(search));
    
    // or
    var prodsEnum = (IEnumerable<IProductContent>)prods;
    
  • PierreD Savard 183 posts 290 karma points
    Aug 17, 2016 @ 12:26
    PierreD Savard
    0

    I Rusty, I was thinking the same way but with your example or simply trying to do a where clause and try to save it in a ProductContentListView variable do not work. We got this error:

    Cannot implicitly convert type 'System.Collections.Generic.IEnumerable

    I try casting with (IEnumerable

Please Sign in or register to post replies

Write your reply to:

Draft