Script Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Is it possible to add a javascript plugin to a specific page (i.e. only the checkout page)?
Hace 12 años
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.