There is an issue opening product pages in nopcommerce 4.2 beta for a fresh installation with sample data.
When you open a product page (simple or grouped) it loads the top half of the page (header, image, short description, add to cart button, etc) but everything beneath that (full description, related products, footer, etc) takes a while to complete loading. For myself it is taking 20+ seconds to load (running locally on my development machine).
After puzzling over this for a while I have found that the problem exists in the following partial call in both ProductTemplate.Simple.cshtml and ProductTemplate.Grouped.cshtml:
@await Html.PartialAsync("_ShareButton", Model)
The code for _ShareButton.cshtml is the following:
with the problem existing in the call to @Html.Raw(Model.PageShareCode).
The code in Model.PageShareCode is (formatted here fore readability):
<!-- AddThis Button BEGIN -->
<div class=\"addthis_toolbox addthis_default_style \">
<a class=\"addthis_counter addthis_bubble_style\"></a>
<!-- AddThis Button END -->
The issue is the call to the script at http://s7.addcom
/js/250/addthis_widget.js#pubid=nopsolutions\ as this source does not exist and is taking a while to timeout.
The link should be http://s7.addthis.com
This link is set in the CodeFirstInstallationService. The link was changed to the incorrect link in commit dbf06071 which removed all references to 'this' throughout the code. It seems that a find and replace was performed for the string "this." to change it to "". As the commit involved 520 files this change must have got lost amongst them.
The link should be changed back to http://s7.addthis.com
/js/250/addthis_widget.js#pubid=nopsolutions\ to correct the issue.