ProWorks Blog

 

Commerce for Umbraco: Sample Site and Starter Kit

By  |  Sunday, June 12, 2011  |  , ,  |  30 comments

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:

c4u_home c4u_category c4u_product c4u_checkout

Files:

Commerce4Umbraco_ExampleSite.zip - Web Files

Commerce4Umbraco_ExampleSite_DB.bak- Database

Commerce4Umbraco_BuildScripts.zip - SQL Scripts to build the database without a backup

Setup:

Database:

  • Restore the database backup to a SQL Server instance. (Or create a new database and run the SQL Build Scripts)
  • 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!

30 comments for “Commerce for Umbraco: Sample Site and Starter Kit”

  1. Posted 6/18/2011 at 11:59:26 AM
    Gravatar of Mike Bates

    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?

  2. Posted 6/20/2011 at 10:44:26 AM
    Gravatar of Jason

    Thanks guys,

    Sorry I forgot the login! :)

    u: admin
    p: umbR0cks!


    Let me know if you have any issues getting setup.

    -J

  3. Posted 6/16/2011 at 7:28:03 AM

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

  4. Posted 7/9/2011 at 1:19:09 AM
    Gravatar of Irek

    Many thanks for the great example.

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

    Thanks,
    Irek

  5. Posted 6/22/2011 at 9:19:32 AM

    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.

  6. Posted 6/22/2011 at 4:16:29 PM

    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

  7. Posted 6/23/2011 at 8:42:50 AM
    Gravatar of Streety

    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?

  8. Posted 6/23/2011 at 10:58:30 AM

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

  9. Posted 7/16/2011 at 11:30:32 AM
    Gravatar of Mike Bates

    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. Posted 7/16/2011 at 5:26:56 PM
    Gravatar of Mike

    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. Posted 7/18/2011 at 7:31:56 AM

    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. Posted 9/27/2011 at 12:00:00 AM

    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?

  13. Posted 9/27/2011 at 12:00:00 AM

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

  14. Posted 12/18/2011 at 12:00:00 AM
    Gravatar of Damian

    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

  15. Posted 12/20/2011 at 10:09:00 AM
    Gravatar of Timothy

    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

  16. Posted 12/20/2011 at 10:19:00 AM

    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

  17. Posted 12/20/2011 at 10:22:00 AM

    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

  18. Posted 12/20/2011 at 12:32:00 PM
    Gravatar of Timothy

    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

  19. Posted 12/21/2011 at 10:47:00 AM
    Gravatar of Timothy

    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.

  20. Posted 1/9/2012 at 10:45:00 AM

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

    Thanks,
    Jason

  21. Posted 3/25/2012 at 11:48:00 AM
    Gravatar of Peter

    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

  22. Posted 4/11/2012 at 11:55:00 AM
    Gravatar of Mike

    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.

  23. Posted 4/12/2012 at 2:08:00 PM
    Gravatar of Luis

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

  24. Posted 4/12/2012 at 3:47:00 PM

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

  25. Posted 4/12/2012 at 3:48:00 PM

    Luis, Are you asking about uCommerce or Commerce 4 Umbraco?

  26. Posted 4/13/2012 at 7:39:00 AM
    Gravatar of Luis

    uCommerce! thanks for request

  27. Posted 4/25/2012 at 8:38:00 PM
    Gravatar of Mike

    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.

  28. Posted 7/23/2012 at 11:10:16 AM

    i can't start umbraco commerce demo.
    Show Error like this Login failed for user ''.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

  29. Posted 7/24/2012 at 11:00:25 AM

    Sumit,

    Did you use the login above?

    u: admin
    p: umbR0cks!


    Thanks,
    Jason

  30. Posted 12/19/2012 at 1:48:18 AM
    Gravatar of nour berro

    Great job its amazing, but i have a question
    how did u bind your commerce class library projects to umbraco
    i mean how can i tell umbraco about admin tree or insulation action xml


    thanks allot

Post a comment

Need help?

Contact ProWorks today!