Posted on 05/05/2022 14:28:06
Hi Pang Lin
I have now looked at your page. And I have tried to replicate the bug on our own solution. But I could not get the same bug. I have one suggestion though.
In the template "OrderSummaryOrderLineItem.cshtml" around line 19 to line 26 we have the link implementation. It seems it is not made the same way as in the cart, and that is a bug in Swift. You can try replacing it with this code:
string detailsPageLink = Pageview.CurrentParagraph.Item["ProductPageLink"] != null ? Pageview.CurrentParagraph.Item["ProductPageLink"].ToString() : "";
detailsPageLink = detailsPageLink != "" ? detailsPageLink : GetPageIdByNavigationTag("ProductDetailPage").ToString();
var defaultGroupId = orderline.GetString("Ecom:Order:OrderLine.PrimaryOrDefaultGroupId");
var selectedDetailPage = Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(defaultGroupId)?.Meta.PrimaryPage ?? string.Empty;
string link = string.IsNullOrEmpty(selectedDetailPage) ? $"/Default.aspx?ID={detailsPageLink}&groupid={defaultGroupId}" : selectedDetailPage;
link += "&productid=" + productId;
link += !string.IsNullOrEmpty(variantId) ? "&variantid=" + variantId : "";
Best regards
Karsten Thuen