Top 5 Questions About Developing a nopCommerce-based Store Site
nopCommerce may be unfamiliar to you or may even just be a blocker for your current project. Check out some of the top questions about developing a nopCommerce-based store site and the answers to help get you through it!
Join the DZone community and get the full member experience.
Join For FreeWhile developing websites, web applications, apps, e-Commerce store sites or even learning to code, we sometimes get stuck with a problem that refuses to be resolved. In those cases, developers like you are looking for some straight forward answers to the questions that are holding you up from getting the work done.
I thought, why don't I do all the hard work for you and put together a list of top 5 questions about developing nopCommerce based store site?
If you are new to nopCommerce — nopCommerce is the leading ASP.NET-based open-source e-Commerce platform. It is a solution with comprehensive features that is applicable for all types of users from new online businesses, who is going to grow faster, to the most demanding e-commerce experts.
Should I Download Web Version or Source Code?
Often new users of nopCommerce get confused about whether to use a No Source/web version OR Source code for their website(s) and they do not know the difference between the two.
You can deploy your website by using either one but both serve a different purpose.
The answer is simple: It depends on your requirements.
- If you want to start an eCommerce site based on nopCommerce with no customization, a web version is enough.
- If you want to install new themes but still no customizations, a web version is enough.
- If you want to create your own plugins, you need source code.
- If you want to customize the code/structure/functionality of your nopCommerce, you need source code.
Points to Remember:
There are 2 kinds of customization:
- If you need to modify just the html / design related stuff / just front end stuff in pages (adding or removing anything), a web version is enough.
- If you need to modify the way nopCommerce works / customization in the code or structure (like database modification/ code changes / changes in core functionality), you need source code.
Other Information:
- If you are looking for a seamless upgrade, you will have to keep the nopCommerce code/structure/design in the default state.
- If you are looking for a change in design or need to modify a few things, you can still upgrade your store to the next version but you will have to redo or re-install your changes that you did in the previous version.
- This brings up the question, "Do I need to write whole code again?" Well, it depends! If there are no changes to the new/next version of nopCommerce to which you want to upgrade then yes you can use the same code. But if there are major changes and improvement in next version then depending on what kind of changes are in nopCommerce, you will have to modify you code/customization according to that.
Where Is the Connection String?
If you have installed nopCommerce and looking to migrate the site to somewhere else and need to change the hosting company/server or for any other reason in order to access the connection string in nopCommerce, simply go to the following location:
Nop.Web/App_Data/Settings.txt
Open the text file "Settings.txt" and you should be able to see the connection string that your nopCommerce site is using.
Where Can I Configure Email Settings/Mailbox?
Configuring email settings/mailbox on your nopCommerce store site is one of the most important things to have a fully working/functional store site. Configuring the email settings should always be on your checklist while setting up your nopCommerce based store site. Without email settings, the mailing functionality of your site will not work that involves having a contact us form, order notifications, comment notifications or any customer who is trying to reach out to you via your online store site.
All you need is:
- Mailbox credentials (email address that will be used for mailing purpose). If you do not have this information, please create a mailbox for your website or contact your hosting company for support.
- An access to administration section of nopCommerce.
Here are the steps:
- Login to your nopCommerce based website with admin credentials (if you haven't changed it yet, it should be the following):
username:admin@yourstore.compassword: admin - Now on the website header, you will see options like "Administration" , Click on that to go to the administration section OR simply go to "yoursite.com/admin".
- Now you will see the administration section of nopCommerce, Go to Configuration > Email Accounts.
- You will see a test account - Click on the "edit" (You can also "Add new" if you would like to add a new account from scratch).
- Save your settings.
- Confirm. After saving the mailbox credentials, go back to e-mail accounts and make sure account that you just updated is set as "Is Default".
I Accidentally Deleted the Admin User, How Can I Access Administration Section?
So, you install a fresh copy of nopCommerce, enjoying all the feature and excited about setting up the store but suddenly you realize that while placing around with different options, you have deleted the administrator account by mistake.
How to recover your administrator account now?
No need to panic, as long as you have the access to your nopCommerce database, you can recover the deleted account.
Simply follow these steps:
- Login to the database in SQL Server (using tool like SSMS, etc.)
- Open the database and run this SQL query:
UPDATE Customer
SET Deleted = 0
WHERE Id = 1
Notes:
- "id" is the account ID from the "Customer" table of your admin account. Usually, id=1 for default admin account. If you create any extra admin account and trying to recover the account, then you will need to check the "Customer" table to get the correct id for the specific account (or record).
- All the account records, if deleted, never get permanently deleted from the database. Only the value of column "Delete" change from "False" to "True" if you delete any account. In the SQL script, we are simply changing the value back from "True" to "False."
- How to recover the account if you do not have the "id"?
- Well, as long as you remember the username or email address, you can change your SQL script accordingly like this:
WHERE Username = 'MyUsername'
OR
WHERE Email = 'adminemail@store.com'
How to Enable SSL in nopCommerce?
Go to: Administration section > Configuration > Stores
Click "Edit" beside a store name where you would like to enable SSL.
Select the "SSL enabled" checkbox if your store is SSL secured. SSL (Secure Sockets Layer) is the standard security technology for establishing an encrypted link between a web server and a browser. This link ensures that all data passed between the web server and browsers remain private and integral. SSL is an industry standard and is used by millions of websites in the protection of their online transactions with their customers. Check this option only after you have installed the SSL certificate on your server. Otherwise, you won’t be able to access your site and will have to manually edit the appropriate record in your database ([Store] table).
Let me know if this article was helpful to you. Do you have any unanswered question? Please post it in the comments section below and I will try to answer them.
Published at DZone with permission of Lavish Kumar. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments