Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Producturl creation

$
0
0
Hi Franco,

That url is assigned in the CurrentCart.vb
in the fucntion "AddItemToCart"
        'build product url
        If Not Request Is Nothing Then
            objCIInfo.ProductURL = Request.Url.OriginalString
        End If
As you can see it's taking the originalstring before the rewriter. I can't remmebr exactly why, but I think I had some issue with picking up the friendly url version. I seem to recall it was causing some error in the email. Of course this was back in the days of DNN4, so it might be OK to change that now.

Off the top of my head, Looking at the:
DotNetNuke.Services.Url.FriendlyUrl.FriendlyUrlProvider.Instance.FriendlyUrl

It seems you need the tabinfo class, so that would need picking up from possibly the "store.tab" setting in the back office, then you'd need to make sure the correct params are add so the product detail is displayed.

If you can do the changes and testing I can see about including your patch in the next release

Dave.

Viewing all articles
Browse latest Browse all 4081


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>