Script Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Is it possible to add a javascript plugin to a specific page (i.e. only the checkout page)?
12 years ago
I guess you can use something like this in your plugin view:
@{
    if (ViewContext.RouteData.Values["Controller"].ToString() == "Checkout" )
    {
        Html.AddScriptParts("/YourScriptPath/YourScript.js");
    }
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.