ProWorks Blog Rotating Header Image

Commerce for Umbraco: Sample Site and Starter Kit

Umbraco Developer TutorialIn preparation for Umbraco CodeGarden 11 this coming week, ProWorks has created a Commerce for Umbraco Sample Website and Starter Kit that you can download and try out for yourself!  This site is similar to the starter site the ProWorks uses to create e-commerce sites.

Included in the sample site:

  • Umbraco 4.7
  • Commerce for Umbraco
  • Blog 4 Umbraco
  • News
  • FAQ

Screen Shots:

Files:

Commerce4Umbraco_ExampleSite.zip – Web Files

Commerce4Umbraco_ExampleSite_DB.bak – Database

Commerce4Umbraco_SQLScripts.zip – SQL Creation Scripts (if your cannot restore the backup above)

Setup:

Database:

  • Restore the database backup to a SQL Server instance.
  • Create a SQL Server user and map it to the new database.  Write down the credentials as it will be entered into the web.config.

Website:

  • Unzip the web files to a new directory.
  • Edit the web.config and modify all connection strings and umbraco connection info to point to the database and user credentials you just created.
  • Setup the new site in IIS.  Make sure its setup to use .Net 4.0.
  • Setup the file permissions on disk to allow the new website to modify files on the disk.

Commerce:

  • Edit web.config and replace all “commerce4umbraco47.local” with the host binding you used when creating the new website in IIS.
  • Edit the \config\commerce\commerce4umbraco47.local.config file and replace all occurrences of “commerce4umbraco47.local” with the host binding you used when creating the new website in IIS.
  • Rename the “commerce4umbraco47.local.config” file in the \config\commerce directory to coincide with the host binding you used when creating the new website in IIS.
  • Open the site in your local browser!

If you have any questions about the sample site, please comment below!

40 Comments

  1. Ron C. says:

    Hi. What is the admin login/password for the Umbraco site admin ?
    thanks

  2. Mike Bates says:

    Excellent demo site…shows off the capabilities of Umbraco. The Style Guide page is a nice addition.

    Are usernames/passwords available to access the back end?

  3. Jason says:

    Thanks guys,

    Sorry I forgot the login! :)

    u: admin
    p: umbR0cks!

    Let me know if you have any issues getting setup.

    -J

  4. Darren says:

    Hello.

    I know its a bit cheeky but would you have a copy of this dbase in sql 2005. I am still in the dark ages I am afraid.

  5. Jason says:

    Hey Darren,

    I’ll try to get some SQL Create scripts up here, would that work?

    In addition, I think we have a 2005 version I could migrate it to and upload here.

    Thanks,
    Jason

  6. Streety says:

    Hello,

    I have gone through your instructions and I get a blank screen when I view like noting is published and the user account & password do not work. Any ideas?

  7. Jason says:

    I’ll do a test install and make sure I didn’t miss a step

  8. Irek says:

    Many thanks for the great example.

    Is it possible to enable/add Paypal option to ‘How Do You Want to Pay’ section?

    Thanks,
    Irek

  9. Mike Bates says:

    Hi Jason,
    I am having trouble displaying product images, both on the product pages and the product details pages. It looks like anytime ImageGen is used. All homepage images display ok, as do product zoom images. I have removed and re-installed ImageGen. Any ideas?

    Mike Bates
    Roseburg, OR

  10. Mike says:

    Hello,
    I am having an issue where product images doe not display in product pages or product details pages. Other images such as rotating images display ok… seems to be a problem displaying images with ImageGen. Also unable to add or change product images in backend. Using XP on localhost, IE or IE8. Any ideas?

    Mike
    Roseburg, OR

  11. Jason says:

    Irek, there is some PayPal support. I think I may have some time to get a blog about payment providers up.

    Mike,

    ImageGen does try to cache a local version of the image. Is it possible that the media directory doesn’t have write permissions?

    If you can’t get ImageGen to work, we can replace it with the Image Cropper.

  12. Ben says:

    hi,
    I’ve tried to install the commerce package on my umbraco 47 website, but it didn’t go well and I got an exception(NullReference) in the course of the installation. When I tried to get some help I was told that this package cannot be installed for umbraco 47.
    Maybe someone can help me with this..?

  13. John says:

    Hi, I have the sample up but cannot login with user: admin and password: umbR0cks!

    I would like to convert my asp.net website to an online product catalogue using your sample as the framework. Please advise.

    Thanks!
    John

  14. John says:

    I was able to login using localhost/umbraco/login.aspx and not through the login in the home page.

    Thanks,

    John

  15. Jason says:

    John,

    Correct, that login is for the normal Umbraco Admin area (Users) not the site front-end (Members).

    Sorry I wasn’t able to respond sooner. Please let me know if you have any questions of need any help!

    Thanks,
    Jason

  16. Jason says:

    Mike Bates,

    I’ve uploaded the SQL Scripts to create the database if you cannot restore from a backup. Take a look at the new .zip file in the post.

    In addition, I’ve updated the web files as well with the latest version checked in to CodePlex.

    Let me know if that helps and sorry it took so long to get up here!

    Thanks,
    Jason

  17. Jason says:

    Ben,

    The Commerce 4 Umbraco install is pretty old and doesn’t work great. I’m planning on creating a new install when I get a chance, but I’m not sure when that will be.

    Perhaps the starter kit will help for now?

    -J

  18. Mike says:

    Jason-
    I seem to have difficulty with several comments being lost here…

    I have the images working (see July 16 comments above). It was an error on my part.

    I haven’t had any other issues so far. I’ve been successful getting the sample site running with the instructions above and am getting familiar with the project. I will have a look at the new web files you have posted.

    Have you (or ProWorks) officially taken over the Commerce For Umbraco project? If so, are fixes or updates planned?

    -Mike

  19. Jason says:

    Hey Mike,

    Yea, I’m the project coordinator now. I don’t believe Paul is taking an active role anymore.

    I do plan on committing any additions/bug fixes we make back to the project. We have added many features in the past for clients and those have been committed back to the project.

    As far as the future, I’d like to get an install working. That’s my first goal. If I can get some help, I may plan a v3 that overhauls the data layer and makes things more “Umbraco-like”. That may be a ways off unless I can get a decent group of committed folks on the project.

    Let me know what you think. Also, if you find bugs or issues specific to C4U, it may be best to post them on the Commerce 4 Umbraco CodePlex site: http://commerce4umbraco.codeplex.com/. Otherwise, this comments area may get out of control.

    Thanks for trying it out!

    -J

  20. ndycrlr says:

    Hi,

    Quick question – where’s the source code? This is a compiled version so isn’t much use beyond whetting my appetite!!

  21. ndycrlr says:

    Found the source code. Stupidly didn’t think to look on codeplex! I’m a certified Umbraco developer and I’ve been using CSK for a few years so I’m hoping to get some mileage out of this project. Might be some UK specific extras I can add like payment providers and look at making it all less US specific.

  22. Jason says:

    Sounds good. I’d love to see what you think!

    J

  23. Tim Miller says:

    I guess ProWorks is out of business? Can’t seem to contact anyone here.

  24. Jason says:

    Nope, we’re not out of business. In fact, just the opposite. Too busy. I’m assuming you’ve contacted support@proworks.com?

  25. Tim Miller says:

    Yes, I have. Support voicemail is full and no response via emails from online or via my mail server. I have left voicemail to sales with no reponse. I am a previous paying customer that can’t seem to get any response from sales or support. I have been trying to make contact for a month now :( . Can you help, Jason?

  26. Damian says:

    Hi,

    Is there a latest version of the source about anywhere? The one on codeplex looks to be from May 2009 but the assemblies in the download 07/2011. Im very interested in getting a store up an running using this and i’ve now got it working on 4.7.1 umbraco but need some other functionality.

    One of the functions is order line discounts where the price comes down the more you order. Without the source im not sure how this could be implemented. Any pointers?

    Are there any docs in regards to the payment providers and other areas where it could be easily extended”properly” rather than hacking it about?

    Thanks!
    Damian

  27. Timothy says:

    Does anyone have documentation on how to have website entities in different database tables than those of Umbraco and also have a search for that – just like commerce4umbraco does

  28. Jason says:

    Damian,

    The one on CodePlex should be pretty up to date. Look for the latest changeset here: http://commerce4umbraco.codeplex.com/SourceControl/list/changesets

    There’s one in August.

    As far as discounts, we generally use coupons to affect price (free shipping, discounts, etc). We have implemented a concept of an “auto-applied” coupon which may work in this case. Let me know if you think that concept might work and we can connect or roll it back into the source.

    Documentation is very light. I could write a blog post about payment providers here. I’ll try to put that on my Christmas list :)

    Its actually not too hard to figure out for yourself. Take a look at the classes in the dashCommerce.net project and the Services > PaymentProvider folder. The AuthorizeNetPaymentProvider.cs should be a good example. CyberSource and PayMeNow also should be implemented pretty well too.

    Let me know if you have any further questions.

    -Jason

  29. Jason says:

    Timothy,

    If you want to use separate tables, you would need to generate your own data layer classes in your favorite ORM tool. Commerce4Umbraco uses SubSonic. We have used Linq for SQL in the past and it works great.

    Then depending on what you want to do, you could reference the data layer classes directly in Razor scripts. Or you could built on XSLT Extension that uses the data layer and returns XML depending on the function. Of course, you could also build a user control to handle everything.

    Does that help?

    -Jason

  30. Timothy says:

    Thnx Jason, Will reference ur reply whn I play around with that in the next 10 days – much more helpfull than the Umbraco user guide. Thx

  31. Timothy says:

    Hi Jason

    Based on the friendliness of Umbraco and my experience in Umbraco from webprojects – I am considering choosing Commerce4Umbraco for my ecommerce solutions -

    Is this project still running? I see the sourcecode in Codeplex is a beta that was uploaded in May 2009. Should I be considering Ucommerce instead –

    Discounting for the XSLT instead of Razor; I found commerce4Umbraco more user friendly for both developer and admin user.

  32. Jason says:

    The project is still running. There isn’t much in the way of features planned in the near future.

    Thanks,
    Jason

  33. Peter says:

    If it helps anyone, to get the sample working in a medium trust environment after setting:

    and

    I had to upgrade the Umbraco installation to 4.7.1.1, and delete the following dlls from the bin folder:

    Microsoft.Practices.EnterpriseLibrary.Common.dll and
    Microsoft.Practices.EnterpriseLibrary.Data.dll

  34. Mike says:

    Peter (and anyone else) Did you have any other issues when updating to 4.7.1.1? I am currently in the process of upgrading, basically doing a manual merge and replacing any new dll files. Anything else I should be aware of?
    Thanks.

  35. Luis says:

    I need a reply urgently I need an additional database to add to umbraco ucommerce or only with a database can run?

    greetings, thanks

  36. Luis says:

    Hi I need an urgent response is it needed additional database to add the extension to umbraco ucommerce or the same database?

    greetings, thanks

  37. Jason says:

    Mike,

    I’m not aware of any specific issues. Please post any you find.

  38. Jason says:

    Luis,

    Are you asking about uCommerce or Commerce 4 Umbraco?

  39. Luis says:

    uCommerce! thanks for request

  40. Mike says:

    Jason,

    The following files seem to be missing:
    /umbraco/images/umbraco/node-select.png
    /umbraco/images/umbraco/node-select-child.png

    They are referenced in the Media – [Commerce] – Category Tree tab.

Leave a Reply