Developer forum

Forum » Development » Old cart module

Old cart module

Anders Ebdrup
Reply

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


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Anders

I will have someone look into this.

Nicolai

 
Morten Buhl
Reply
This post has been marked as an answer

Registered as TFS item 15238, should be fixed in next hotfix

Votes for this answer: 1

 

You must be logged in to post in the forum