Copied to clipboard

Flag this post as spam?

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


  • Kyle Koss 4 posts 74 karma points
    Sep 27, 2018 @ 02:11
    Kyle Koss
    0

    Setting the default page

    So I've installed Umbraco in Visual Studio with starter kit. I ran it and everything worked fine, the home page came up. Then I installed the uCommerce package using the admin page, then installed the uCommerece razor store starter kit package. This now gives me two nodes under Content: Home, and Store, and I'm guessing these are two different sites. Now when I run the site in visual studio and go to localhost, I get the ucommerce store.

    But, what I want is to get the starter kit site when I go to localhost (not the razor store). Strangely when I look at the Store node info tab, it shows that it's unpublished, but that's the page that comes up. I even tried deleting the Store node, but its the store page still comes up when I browse to localhost.

    So, I guess what I'm wondering is, if there's some setting or something that determines the default page.

    Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 27, 2018 @ 05:23
    Jan Skovgaard
    0

    Hi Kyle and welcome to the Umbraco forum :)

    Unless the "Home" node is unpublished it should be the default site you get when acessing localhost if I'm not mistaken. That is if it's the first site under "Content". If it's not then it makes sense that "Store" is being displayed first.

    But no matter what when you have multiple sites it's a good idea to setup different hostnames for them so let's say that your localhost is localhost:56775 - Then right click the home node and go to the "Culture and Hostnames" setting. Here you add "localhost:56775" and on your store node you do the same thing except that you add a hostname like this "localhost:56775/store".

    Now you should be able to see the home node by default when spinning up your site and if you need to access the store you should be able to add /store in the address bar.

    I hope this helps and makes sense? :)

    /Jan

  • Kyle Koss 4 posts 74 karma points
    Sep 28, 2018 @ 00:25
    Kyle Koss
    0

    Hi Jan, thanks for your help. Well, it does make sense, and it's what I would expect the behavior to be, but unfortunately, it's not what's happening.

    The first node under content is Home, and it's published. When I view the template for the page, as well as its' layout page, they are the correct ones. I set the different hostnames as you instructed, but still when I try to go to the home page, it's giving me the razor store page. I even tried giving the Store node a different port on its hostname, but it didn't make any difference. Even deleting the Store node under content doesn't make a difference.

    It's strange, I wouldn't expect that installing a package of view pages would change the default home page. Is there anything else I can try?

    Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 28, 2018 @ 10:48
    Jan Skovgaard
    0

    Hi Kyle

    Can you please send a screendump of what you're seeing? It makes it easier to confirm that the context that I visualize is the same as you're actually looking at :)

    /Jan

  • Kyle Koss 4 posts 74 karma points
    Sep 29, 2018 @ 00:28
    Kyle Koss
    0

    Here you go Jan.

    Here's how it looks now. I tried putting the store under the Home node, but even that didn't work, it still tries to load the store home page. It's throwing an error now, but it's still trying to load the store page.

    enter image description here

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 30, 2018 @ 11:17
    Jan Skovgaard
    0

    Hi Kyle

    Judging from the posted screendump above it appears to me that the Store is placed beneath the home node? However I was going to try and see if I could replicate the issue by spinning up a local installation and play around with it myself.

    Unfortunately I'm not stuck with a YSOD after the installation since I guess some of the SQL commands that are run might not be compatible with using CE SQL. So I can't get further with this unless I setup SQL express...But I'm running on a virtual windows machine where I don't have enough space available for installing it. Do'h!

    So it's probably better to get in touch with uCommerce and have them point you in the right direction...But I of course also visited their forum and can see that you already did post there too...

    So I cross my fingers that some of the other bright and helpful minds who might even also have uCommerce experience will come across this post and point you in the correct direction.

    /Jan

  • Kyle Koss 4 posts 74 karma points
    Oct 01, 2018 @ 14:51
    Kyle Koss
    0

    Hi Jan,

    Yes, putting the store under the Home node was a change I made to try and get it to work, but it was unsuccessful. It was originally at the root (under content).

    And yes, I did try the uCommerce forums, unfortunately, they're not much help over there.

    I have another idea to maybe try and hack it to see if I can get it to work. I was really only interested in basically the data that the starter pack puts in, and not so much the page views. If I can find the sql it runs to add the data, maybe that will help me. Otherwise, I might just go to a different e-commerce plug-in.

    Thanks for your help anyway.

Please Sign in or register to post replies

Write your reply to:

Draft