You have no items in your shopping cart.

Friday, November 1, 2024 1:57:10 AM

Nop 3.80 error _ShareButton

Posted: 7 years ago

#5353 Quote
Modular Product v2 on NOP 3.8 gives us the error


"The model item passed into the dictionary is of type 'Nop.Web.Models.Catalog.ProductDetailsModel', but this dictionary requires a model item of type 'System.String'."

We have copied the files, we use seven spikes quickview, copied the files there as well...made sure permissions are correct..  Please investigate as to why this plugin doesn’t work.

                        @Html.Partial("_ShareButton", Model)
                        @*@Html.Partial("_ShareButton", Model.SeName)*@

Posted: 7 years ago

#5354 Quote

Support

Posted: 7 years ago

#5354 Quote
You use nopTemplate theme.
This company changes one template _ShareButton.cshtml

Open templates in plugin folder and themes folder too.
ProductTemplate.ProductModular.cshtml
ProductTemplate.ProductModular2.cshtml
ProductTemplate.ProductModular2A.cshtml

Find old code
@if (showShareButton)
{
  @Html.Partial("_ShareButton", Model)
  @*@Html.Partial("_ShareButton", Model.SeName)*@
}


change with new code (comment first line and uncomment second line)

@if (showShareButton)
{
  @*@Html.Partial("_ShareButton", Model)*@
  @Html.Partial("_ShareButton", Model.SeName)
}


I'll try to do it from the box.

Posted: 7 years ago

#5355 Quote

Support

Posted: 7 years ago

#5355 Quote
1. Download new release and replace plugin folder (all files).
2. Restart your site
3. Open plugin configure page and press the button "Copy files"
Try new template.

Version 1.09 - April 27, 2017

+ some of developers changed _ShareButton.cshtml file, we added support all templates now
+ stopped support old Nop versions, we support nop 3.60 and never

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved