I'm trying to add a SimpleAddToCartForm to upsellproducts.xml.config in v10.0.20 and I'm getting the following error...

An HtmlHelper is required for this method. Make sure to specify one when you call the RunXmlPackage method.

I'm not sure what I need to add to proceed. Any ideas? Thanks!

in MultiStore by (190 points)
edited by

1 Answer

0 votes
ShowUpsellProducts doesn't add the HtmlHelper parameter. If you have source code you should add the HtmlHelper parameter to the AppLogic.RunXmlPackage call in ShowUpsellProducts with little issue.

Otherwise you will need to call the upsell xmlpackage with XmlPackage instead of ShowUpsellProducts to work around this issue.
by (5k points)