Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • TaoistTotty 246 posts 314 karma points
    Mar 25, 2012 @ 22:56
    TaoistTotty
    0

    shop.aspx to show products

    I have a very simple store with just 9 products in one catalog.

    Is there a way of getting the shop.aspx page to show the products and now require the customers to click another two single item menus to get to this list?

    Menu structure I would like is:

    Home

    Shop

    Contact

     

    I currently have

    Home

    Shop

           STORE

              Products

    Contact

     

    If this can be done using Razor even better.

    Regards

    TT

  • TaoistTotty 246 posts 314 karma points
    Mar 26, 2012 @ 11:40
    TaoistTotty
    0

    I have now got this working, or sorts using the following code:

    @using UCommerce.EntitiesV2
    @foreach (var product in Product.All().Where(x => x.ParentProductId == null))
    {
     <h1>
       @product.Name
     </h1>
     }

    The problem I am having is that I am seeing the  uCommerce and Support items both of which have been deleted.

    Is there a way of specifying the product catalog?

    Thanks

    TT 

  • TaoistTotty 246 posts 314 karma points
    Mar 26, 2012 @ 13:55
    TaoistTotty
    1

    I found the answer here:

    http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/21502-List-products-in-a-category-using-Razor ;

    Can someone mark this is closed, as I cannot do that to myself.

    Thanks

    TT 

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 29, 2012 @ 15:01
    Søren Spelling Lund
    0

    Awesome that you worked it out. You can close using this reply.

Please Sign in or register to post replies

Write your reply to:

Draft