European Windows 2019 Hosting BLOG

BLOG about Windows 2019 Hosting and SQL 2019 Hosting - Dedicated to European Windows Hosting Customer

European Italy Umbraco Hosting :: Adding New Tab Under uCommerce Admin Sections in Umbraco 6.0.0

clock December 12, 2013 06:50 by author Administrator

What is uCommerce?

uCommerce is an e-commerce offering fully integrated with Umbraco for building online stores. With uCommerce and Umbraco you create unique and powerful e-commerce webshops fully customized to your client's requirements.

uCommerce is completely integrated with the Umbraco membership system. Configure whether you want customers created during checkout for login to review ordering history and more.

  • Use the Umbraco membership to stay in touch with with past customers.
  • Create profiles for your customers automatically when they buy
  • Segment customers using groups
  • View customer profiles in back office
  • Store additional information about your customer on their profile such as sign ups for newsletters
  • Search for customer profiles
  • Maintain e-mail templates with rich text editing capabilities
  • Control who can maintain your store

So, how to adding new tab under uCommerce Admin sections in Umbraco 6.0.0? Steps for adding new tab in uCommerce section :

1. Add new user control for custom tab view


To add new tab first create new user control in your website, go to website in visual studio add new user control where you want as per your defined directory structure. It is good to place new user control under /usercontrols folder in Umbraco website.

So the virtual path for newly created user control will be “../../../usercontrols/TestTab.ascx”.
Inherit newly created user control from Ucommerce.Presentation.Web.Controls.ViewEnabledControl<T>
The generic parameter T must be type of view which you want to load your user control to appear on. Most commonly used views and their types are discussed below.

So if you are inheriting your user control from any of these views you can register for following events.
event EventHandler<EntityCommandEventArgs<T>> Saving;
event EventHandler<EntityCommandEventArgs<T>> Saved;

event EventHandler<EntityCommandEventArgs<T>> Deleting;
event EventHandler<EntityCommandEventArgs<T>> Deleted;

2. Insert New Row For Tab in Database

In uCommerce uCommerce_AdminTab refers to uCommerce_AdminPage for parent page container of your tab(usercontrol). So you have to add your usercontrol entry into uCommerce_AdminTab table and should give the AdminPageId from uCommerceAdminPage table to select on which view or page you going to add your new tab. See the visuals



As per the information in the above table you can insert an entry into uCommerce_AdminTab table for new tab. Build your solution and your new tab is ready under the view you have selected.

Hide/Show custom tab for particular section


As explained earlier your new tab will be visible for view you have selected, Consider an example where you want to do some functionality Completed Orders (uCommerce >> Orders >> Completed Orders) and if you have followed above steps your new tab will be visible for all remaining sections like New Orders, Requires Attention etc.
To hide or show your tab for particular section only, implement ISection interface in your user control and set the Show property as per your requirement.
For ex:


So this will show your custom user control for Completed Orders only.



European Umbraco Hosting - Germany :: Creating Umbraco Site with HostForLIFE.eu

clock November 8, 2013 07:52 by author Scott

In this tutorial, I will show you how to deploy Umbraco website on our shared hosting environment. Easy and faster.

First, you need to create blank SQL database.

1. Open Visual Web Developer Express 2010/VS 2010 Pro
2. Open Database Explorer (View -> Database Explorer) (in Visual Studio 2010 you will open “Server Explorer”).
3. The Database Explorer should show up on the right side of the IDE.
4. Right click Data Connections and select Add Connection.
5. Enter the server name in the first text box (type the name of your local SQL Server).
6. Type the name of the database in the database name field and click “OK.”
7. In Database Explorer you will see your local database.  Right click on it and choose Publish to Provider.

Then:

To generate the script that will create the backup of your database follow the steps listed below.

1. Click “Next” on the welcome screen of Publishing Wizard.
2. Ensure that your database is selected, check Script all objects in the selected database and click “Next.”
3. Choose the Script to file option and type the name of the script you will be generating. Click “Next.”
4. Leave the default Publishing Options and click “Next.”
5. Click “Finish.”

The final steps are:

1. Open your database in SQL Server Management Studio 2008.
2. Click File/Open/File and navigate to the SQL script you just created from your SQL Server.
3. Input your database login and password from Control Panel
4. Once the script is opened, navigate to the very top of the page and type:

  • USE [database name] (without the brackets)
  • GO

5. Click the “Execute” button.

It creates all tables exactly the same as you have in your local DB.

Happy coding!



About HostForLIFE

HostForLIFE is European Windows Hosting Provider which focuses on Windows Platform only. We deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes.

We have offered the latest Windows 2019 Hosting, ASP.NET 5 Hosting, ASP.NET MVC 6 Hosting and SQL 2019 Hosting.


Month List

Tag cloud

Sign in