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.

  • Dmitrij Jazel 86 posts 179 karma points
    Oct 03, 2012 @ 22:20
    Dmitrij Jazel
    0

    Question regarding CMS - Catalog link

    Hello Guys,

    I have a small question here, I am trying to figure out how uCommerce product catalog is linked with CMS basically. I will try to construct this one as easy way possible. I am trying to make my own shop and not use demo shop just for this time...

    What I have noticed now - There is a homepage that uses the same Template as catalog node (in demo shop). Eventually there is a link you to catalog via this:

    <xsl:value-of select="CommerceLibrary:GetNiceUrlForCatalog(@id)"/>

    Eventually this value generates something like /catalogName/productGroup that you can use in URL to trigger an action from another macro that contains this:

    <xsl:variable name="catalogName" select="umbraco.library:RequestQueryString('catalog')"/>
      <xsl:variable name="categories" select="CommerceLibrary:GetRootCategories($catalogName)"/>

    From here you can write some code that can show you relative groups - depending on the Request URL. Is it?

    But that does not seam to work. And it is a bit odd because URL parameters are sent via ?param=value&param2=value2 etc...

    And how can you trigger /catalogName/productGroup in the url if that tells CMS that it must navigate to subpage under homepage in this case... Hope you undestand what I am trying to find out here.

    Maybe you guys have some suggestions, or could bring up an example of how this one works?

    Cause when I have this setup:

    content
    |--MyShopNode
    |--DemoShopNode

    How GetNiceUrlForCatalog link links to DemoShop, even though I have the same macros and setup on myShop node, it still links to Demo shop.

    Could someone please help me out to figure out this one? :-)

    Regards,

    Dmitrij

    under content node Shop(demo shop) node and my new shop node - than when I have 

  • Steven Sønderskov 30 posts 142 karma points
    Oct 04, 2012 @ 16:26
    Steven Sønderskov
    1

    Hi Dmitrij

    Im not sure I have understood the question correctly. But I think you might be able to get an answer to your question in this video (maybe):

    http://www.ucommerce.dk/en/support/ucommerce-tv/catalog-structure-overview.aspx 

    /Steven

     

     

     

  • Dmitrij Jazel 86 posts 179 karma points
    Oct 04, 2012 @ 19:08
    Dmitrij Jazel
    0

    Hello Steven,

    Thanks for sharing a great resource :-) but I have already seen it before... But aniways - that did partially answers my question, but.

    Now I gave a valid hostname to shop main mage and product catalog. So If I go to mainPage, I should be able to see the link to the catalog AllCatalogs[xslt]), and when I click it - it should take me to the categories that are in the catalog. via URL /catalog/groupname etc... and than some other macros kick in, and show me relative information based on URL. But instead when I am using hostnames the catalog link actually tryes to link me to correct catalog,

    But since there is no node under main shop node (/ToysCatalog/cars) for example, Umbraco shows "Page not found" error. Obviously because there is no subnode with toys etc... So I am abit stuck right here...

    All that AllCatalogs{xslt] link is doing it does generate a link to a product catalog, but how can you actually read that url (Like /ToysCatalog/C-20), cause there is no subnode called ToysCatalog. Not sure how uCommerce can show you correct catalog, cause if you are using /subpage/anotherpage/etc... the that is a command for CMS to navigate to the subpage in the navigation... Should parameters not be passed as "?Group=abc&ProdID=123 etc..."?

    I know there are macros that can read this URL most likely, unless itis not the case, could anyone please brighten me on this one here?

    Many thanks in advance guys :-)

    Regards,

    Dmitrij

  • Søren Spelling Lund 1797 posts 2786 karma points
    Oct 10, 2012 @ 09:18
    Søren Spelling Lund
    0

    Hi Dmitrij,

    It seems URL rewriting might be the thing tripping you up. If you take a look at the /config/UrlRewriting.config you'll notice that uCommerce adds a couple of new rules. Specifically rules that point to product.aspx and catalog.aspx. These are the nodes responsible for handling everything under the catalog. If you want to change the handler, you can modify the destinationUrl in UrlRewriting.config.

    Hope this helps.

  • Dmitrij Jazel 86 posts 179 karma points
    Dec 11, 2012 @ 22:49
    Dmitrij Jazel
    0

    Hej Soren,

    Sorry for long reply.

    You are exactly right with URL rewriting, yet now, I tryed new umbraco with your new razor shop - that I just love!!! :-)))

    Bad news is that I still am having problem with product catalog - now in razor shop...

    I think I get the idea about "UrlRewriging.config" but still didn't manage to resolve it yet... I am still forced to use your template, maybe you might have an example by any chance, or some information that could help me with this particular step? :-)

     

    many thanks for all the help and patience! ;-)

    Kind regards,

    Dmitrij

  • Søren Spelling Lund 1797 posts 2786 karma points
    Dec 17, 2012 @ 10:40
    Søren Spelling Lund
    0

    Hi Dmitrij,

    Can you verify that the file /config/UrlRewriting.config contains references to the product/category/catalog rewriting rules?

  • Sheppe Pharis 43 posts 139 karma points
    Dec 23, 2012 @ 02:10
    Sheppe Pharis
    0

    I'm getting error 404's when trying to open any of the links produced by uCommerce... I checked the URLRewriting.config file, and all of the proper entries seem to be in place. I haven't restarted the website since installing uCommerce to it... could that be a necessary step?

    Something to note is that I'm using the "Default" host header for the store... not sure if that has something to do with it, but I doubt it as the URL's seem to be well-formed.

    Also, this is running on IIS6 at the moment. It's slated for an upgrade next year.

    Thoughts?

  • Sheppe Pharis 43 posts 139 karma points
    Dec 23, 2012 @ 17:54
    Sheppe Pharis
    0

    I figured it out. It has to do with IIS 6 and extensionless URLs... I'll post a description and screenshot of the fix shortly.

  • Sheppe Pharis 43 posts 139 karma points
    Dec 23, 2012 @ 19:39
    Sheppe Pharis
    1

    Here's the fix for the issue I was having with 404's on all of the uCommerce links on IIS 6/ASP.NET v4:

    In IIS 6, go to your website's properties and:

    1. Go to the Home Directory tab
    2. Click on Configuration
    3. Insert an entry in Wildcard application maps...
    4. Browse to C:\<Windows Install Location>\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
    5. * Make sure that "Verify that file exists" is NOT checked.
    Hit OK a bunch of times, then stop and start the website. 
    Cheers,
    -Sheppe
  • Dmitrij Jazel 86 posts 179 karma points
    Dec 24, 2012 @ 00:29
    Dmitrij Jazel
    0

    Hej Soren,

    Yes, /config/UrlRewriting.config contains references to product catalog (the rules).

    Those rules are simmilar to RegularExpressions I just have to find a way how to change them... :-)

    Regards,

    Dmitrij

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 02, 2013 @ 14:07
    Søren Spelling Lund
    0

    Hi Sheppe,

    Thanks for being awesome and posting the solution on the forum. Keep up the excellent work!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 02, 2013 @ 14:08
    Søren Spelling Lund
    0

    Dmitrij,

    Is the solution posted by Sheppe applicaple to your situation, i.e. are you running IIS6?

  • Dmitrij Jazel 86 posts 179 karma points
    Jan 02, 2013 @ 14:18
    Dmitrij Jazel
    0

    Hej Soren,

    Sorry for dum question here, but what does "Is the solution posted by Sheppe applicaple to your situation" mean? I am not sure if I understand this one...

    Regarding IIS - I am running local IIS7 on Windows 7, and (for this current project) I am running IIS7 aswell... Since that one is a "webhotel" I am just using the web-server, and am not in 100% controll of IIS like I would be on my local machine...    Hope that makes sense... :-)

    Kind regards,

    Dmitrij

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 02, 2013 @ 14:36
    Søren Spelling Lund
    0

    I was asking whether the problem you have is the same as Sheppe's. Which it's not so we'll have to dig a little deeper on this one.

    Are you using the default templates/nodes for your store or did you change those at all?

     

  • Dmitrij Jazel 86 posts 179 karma points
    Jan 02, 2013 @ 23:24
    Dmitrij Jazel
    0

    Hej Soren,

    Nah... actually not. All is ok with IIS as I was saying I had a problem with here:

    " I think I get the idea about "UrlRewriging.config" but still didn't manage to resolve it yet... I am still forced to use your template, maybe you might have an example by any chance, or some information that could help me with this particular step? :-) "

    My IIS is working great :-) maybe you should continue discussing this issue with Sheppe :-)

    Thanks for so far... And have a great day!

    Regards,

    Dmitrij

Please Sign in or register to post replies

Write your reply to:

Draft