Profile: Lavish Kumar

Avatar
Statistics
  • United States
  • 214
  • Thursday, March 13, 2008 8:00 PM
PM


About Author

Based out of New York, USA, Lavish Kumar is a full stack web developer by profession and founder of Striving Programmers, a trusted community for developers that offers a wealth of articles and forums to assist individuals with improving their software development skills.



Lavish 's Posts

How to create a multi-language store site with nopCommerce

As a store owner, when you are selling products globally (in multiple countries or regions), it becomes quite important to offer a multilingual website that allows online shoppers to change the default store language to their native language. The good news is that nopCommerce does support multi-language option that enables store owner (or administrators) to add / install multiple languages on the store site. In this tutorial, we will cover these 3 topics: Adding a new language pack, Adding a new custom string resource and Localization settings


3 Ways to create a personalized shopping experience on nopCommerce site

Greeting your customers with a personalized shopping experience is high-priority for most of the retails / online business owners these days. When personalization is done correctly on your business website and your sales are going, this is a sign that you as a retailer / business owner understand your customers needs. In this article, we will discuss 3 ways to create a personalized shopping experience on nopCommerce site.


How to display a loading icon until the page loads completely in nopCommerce

Isn't a great idea to display a nice loading animation or icon on your webpage until the page loads completely? It adds a cool little animated touch on your site and it acts as a buffer that fills in the gap of waiting time. Most of the users / website visitors love to see animation on websites. WHY? well, animation helps in keeping the users engaged with the website and its content. Animation also helps in directing the users to the right directing and keep the users from leaving the site too soon.

In this quick tutorial, we will learn how we can display a loading icon until the page loads completely in nopCommerce.


How to disable wishlist in nopCommerce

Every online store is different and offers a different set of featues to its customers depending on the type of business, product, service(s), industry and customer's interest. nopCommerce offers a wealth of features that any store owner may need in order to run his / her e-Commerce business. One of these features includes wishlist.

What if you are not interested in offering this feature to your customers? What if you want to disable wishlist of your nopCommerce store site? Well, there is a way to accomplish this right from the administration section.


How to change or add topic template in nopCommerce

nopCommerce offers a great functionalilty of "topic" pages that allow store owners / managers to create pages right from the administration section without even touching the source code. Creating these topic pages on the fly from the administration section DOES NOT require any technical skills. As long as you have the access to the administration section (& required privilege), you can easily create a topic page.

But, what if you (as a store owner / manager) want to change the layout of the topic pages? What if you want topic page 1 to look different from topic page 2? Let's look into the process that allows you to choose different templates for different topic pages.


How to use Salesforce Marketing Cloud (SFMC) LookupOrderedRows AMPScript to search data in a data extension that returns multiple rows

Today, we will talk about Salesforce Marketing Cloud (SFMC) and AMPScript (LookupOrderedRows AMPScript to be specific). Salesforce Marketing Cloud (SFMC) is a customer relationship management (CRM) platform for marketers that allows marketers to create 1-to-1 journeys across the entire Salesforce Customer Success Platform -- journeys that span not only digital marketing, but sales and service as well. This simplifies data management, segmentation and campaign management, making it easy to create compelling digital marketing campaigns, boost customer engagement and ultimately drive more leads into Salesforce.

In this tutorial, we will go over the LookupOrderedRows AMPScript that can be used to search data in a data extension that returns multiple rows.


How to redirect users based on referrer URL using JavaScript

In this tutorial, you will learn how you can redirect users on your website based on referrer URL using JavaScript. According to W3Schools, "document.referrer" returns a string, representing the URL of the document that loaded the current document. Returns the entire URL, including the protocol (like http://). If the current document was not opened through a link (for example, through a bookmark), an empty string is returned.

This solution can check if the user (site traffic) is coming from a specific webpage or a website URL and based on that it will redirect the users accordingly.

Let's dive in!


How to make old unresponsive tables responsive using bootstrap

Recently, I was a part of this migration project in which a complete website was redesigned from scratch using bootstrap framework and data from the old site was migrated to the new site. In this project, I was involved in testing the brand new site and making sure that the migrated data is correct. During the testing phase, I found one major problem with the content – i.e. unresponsible tables. Everything on the new site was responsive except the tables. I came up with an idea of making unresponsive tables responsive and it fixed the problem globally on the new site. Today, I will be sharing that “quick fix” with you guys….


A look at Universal SMS Plugin for nopCommerce

So if you use nopCommerce for your online business and would like to take your nopCommerce site to the next level by giving your customers / online shoppers yet another way to communicate with your store site, you may want to look into a way to add SMS functionality to your nopCommerce site. Learn about what Universal SMS Plugin can do for you.


Learn about offering in-store pickup option (pickup points) to the online customers on nopCommerce site

Thanks to the increasing popularity of e-Commerce stores, more and more retailers (who are even running physical stores) are making their presence online. But, only a few online stores are actually taking advantage of latest and greatest features on the web to market themselves as a brand. One advantage that retailers with actual physical stores have over standard online businesses is that they can provide different kind of shipping options to their customers. One of the most commonly used methods is in-store pickup option.


In your solution, open RouteProvider.cs - You will find this file in this location: Nop.Web/Infrastructure/RouteProvider.cs

You will see different mapped routes like home page, login, register etc.

2 months ago

Hi Rajnish,

What error are you getting?

May I ask what is the purpose of adding "?" and "&" in the URL?

2 months ago

Hi Aman,

If are running multiple stores (in nopCommerce based off multi store feature) that means you are working with different domain names (or sub-domains).

You just have to perform 2 separate imports:
- Import products for store 1 when you are logged into store 1 domain (or sub-domain)
- Import products for store 2 when you are logged into store 2 domain (or sub-domain)

3 months ago

Hi Johny,

As of now, the product registration plugin only support ONE location and that CANNOT be changed from the configuration options of the product registration plugin. But, there is a trick / workaround if you would like to move the “Product Registration” menu item to somewhere else.

Since you’ve mentioned that you would like to move it to the bottom (instead of top).

1)      Go to this location in your nopCommerce files: Nop.Web (or Presentation) / Views / Customer / CustomerNavigation.cshtml

2)      Option the view “CustomerNavigation.cshtml”

3)      You will find this code:


@Html.Widget("account_navigation_before")
            @foreach (var item in Model.CustomerNavigationItems)
            {
                <li class="@item.ItemClass">
                    <a href="@Url.RouteUrl(item.RouteName)" class="@(Model.SelectedTab == item.Tab ? "active" : "inactive")">@(item.Title)</a>
                </li>
            }
            @Html.Widget("account_navigation_after")




4)      Move the @Html.Widget("account_navigation_before") to the bottom like this:

@foreach (var item in Model.CustomerNavigationItems)
            {
                <li class="@item.ItemClass">
                    <a href="@Url.RouteUrl(item.RouteName)" class="@(Model.SelectedTab == item.Tab ? "active" : "inactive")">@(item.Title)</a>
                </li>
            }
            @Html.Widget("account_navigation_after")
    @Html.Widget("account_navigation_before")




5)  Save changes and refresh the “My account” section, you should be able to see the “Product Registration” menu item at the bottom (if you do not see the change, please clear cache, reload plugins and restart your application from the administration section


Note: The product registration menu item is using this zone for displaying the link
@Html.Widget("account_navigation_before")
- So, anytime if you would like to move the menu item to anywhere, simply move the widget zone.


You can always refer to the “Documentation” section on our website to learn more about Product Registration Plugin: http://www.strivingprogrammers.com/Documentation


If you have any additional question(s), please feel free to contact us anytime or post your question HERE.

3 months ago

One more thing you can try (IF you have already confirmed that your hosting server does offer FULL trust level) - Open your import file and re-save it as .xlsx (please make sure it is NOT .xls).

Try importing now and see it is fixes your problem?

4 months ago

nopCommerce 3.20 and above need full trust hosting. Have you confirmed this from your hosting company that they are offering full trust level on the server where you have configured your site?

4 months ago

Hi Mark, please see my last post above.

Also - If you are using import file exported by other site, please make sure both sites are running on same version. If not, then do not use the exported file from other site. Export the file from the site where you want to import the products.

4 months ago

UPDATE: If you continue to get the same error.

In this case export one product (that you have manually added to your site) by using export button and then simply import that file AS-IS.

Worst case scenario - If you STILL get the exact same error about "STG_E_WRITEFAULT", in that case your file is not the issue. The issue has something to do with your permissions.  In that case, make sure your root folder has write permission (or  at least this folder should have write permission: \Content\files\ExportImport)

4 months ago

Hi Mark,

In your case, I would recommend the following points:

1) If you are creating a brand new import file from scratch. Instead of creating a new file, try using the "Export" option and export the existing products (it will give you everything in an excel file). If you do not have any product(s) on your store site, simply create a test product manually

2) Once you have the exported file (use this as your base file / template for import) and ensure that you have all the fields values in required fields / columns

3) Save your products in the same Excel version / file (I would recommend importing just one product for now to make sure it is working instead of adding hundreds or thousands of products. It will be easier to troubleshoot the product with one product only)

4 months ago

Hi Aman,

If I understood your question correctly, you have your sites setup like this?

1. http://testnopcom-001-site1.ftempurl.com/
---Store 1 (ftempurl)
---Store 2 (ftempurl)

2. http://testnopcom1-001-site1.btempurl.com/
---Store 1 (btempurl)
---Store 2 (btempurl)

So, as long as you have Store 1 & Store 2 configured correctly on each of your primary test domains, you should be able to assign theme to each sub-store.

You can set a theme for each store on this page here:Configuration > Settings > General Settings

5 months ago