what is @html.widget in nopcommerce

Posted: August 12, 2017 at 5:09 AM Quote #191199
I want to know that what is @html.widget in nopcommerce. What is the use of it? Why we use it?

in nopcommerce @html.widget is used many places let we talk about one place that is in header.cshtml page.

In nopcommerce there is one line in header.cshtml. i.e.

@html.widget("header_selectors")

Now, the question is that what is the purpose of this line. Because when I am remove this line there is no change at the client side. So why it is given in header.cshtml page.

Please help me to solve this issues.

Thank You.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 12, 2017 at 8:51 AM Quote #191215
Hello,

This is not an issue.

You must open this type of question in https://www.nopcommerce.com/boards/f/5/general-support.aspx not in development

Follow below link for understanding widget functionality in nopCommerce

http://docs.nopcommerce.com/display/en/Widgets

https://dzone.com/articles/what-are-nopcommerce-widgets-and-how-to-create-one

Thanks,
Jatin
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Thanks & Kind Regards
Jatin Gadhiya (ForeFront Infotech)

Visit out Official site for Plugins or Customization,
PM me if you want to hire us, or you can visit us at
http://www.forefrontinfotech.com, http://www.nopcommerceplus.com
Email: [email protected], [email protected]
Posted: August 12, 2017 at 8:56 AM Quote #191216
Thank you for your reply. And thats right that it is not an issues but this question is come in development only. because I described that even I remove that widget line then there is no effect in theme. So that remove or adding some code is done by developer only. so as per the description this question is ask in development only.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 12, 2017 at 9:54 AM Quote #191217
sksoni wrote:
Thank you for your reply. And thats right that it is not an issues but this question is come in development only. because I described that even I remove that widget line then there is no effect in theme. So that remove or adding some code is done by developer only. so as per the description this question is ask in development only.


No, You don't have knowledge about widget it will not comes under development issue.

You can learn from nopCommerce document. What is widget and how it can be used. Widget is something to display custom things in page without customization. e.g Nivo slider in nopCommerce coming from widget.

Look below code:

<div class="header-selectors-wrapper">
            @Html.Action("TaxTypeSelector", "Common")
            @Html.Action("CurrencySelector", "Common")
            @Html.Action("LanguageSelector", "Common")
            @Html.Widget("header_selectors")
        </div>

Now here is common things. Look what is mean of other lines. TaxType, Currency & Language Selectors and you can add yours custom things after those selector(dropdown) in header using header_selectors widget. So you don't need to customize in this page.

Let me know if you have any question or query.

Thanks,
Jatin
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Thanks & Kind Regards
Jatin Gadhiya (ForeFront Infotech)

Visit out Official site for Plugins or Customization,
PM me if you want to hire us, or you can visit us at
http://www.forefrontinfotech.com, http://www.nopcommerceplus.com
Email: [email protected], [email protected]
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.