Hi Dynamicweb,
We have overtaken a VERY old solution which uses the old cart module and this causes a problem in the administration.
After an upgrade to 8.4 it is not possible to view the cart page in the administration due to the following lines in "Dynamicweb\Frontend\LegacyModules\Cartv2\CartV2Frontend.vb":
If prop.Value("CartEmptyBasketPage") <> "" And Not CartWritten Then HttpContext.Current.Response.Redirect(prop.Value("CartEmptyBasketPage")) Else ShowCartV2 = "" End If
Can these lines be changed to this even though the module is no longer supported?
If prop.Value("CartEmptyBasketPage") <> "" And Not CartWritten AndAlso Dynamicweb.ExecutingContext.IsFrontEnd() Then HttpContext.Current.Response.Redirect(prop.Value("CartEmptyBasketPage")) Else ShowCartV2 = "" End If
Where you only redirect if it is in the frontend? I am hoping very much for this fix :-)
Best regards, Anders