- 15
Im using nopcommerce 2.65...I cant understand but my cloud zoom just dont seem to work now. I have customized my page and had done manual integrtaion ..but now it doesnt seem to work.. please help me with this..I am posting the code for the various pages related here..
For ProductTemplates.VariantsInGrid:
@model ProductDetailsModel
@using Nop.Core;
@using Nop.Core.Domain.Common;
@using Nop.Core.Infrastructure;
@using Nop.Web;
@using Nop.Web.Models.Catalog;
@{
Layout = "~/Views/Shared/_ColumnsOne.cshtml";
//title, meta
Html.AddTitleParts(!String.IsNullOrEmpty(Model.MetaTitle) ? Model.MetaTitle : Model.Name);
Html.AddMetaDescriptionParts(Model.MetaDescription);
Html.AddMetaKeywordParts(Model.MetaKeywords);
var canonicalUrlsEnabled = EngineContext.Current.Resolve<SeoSettings>().CanonicalUrlsEnabled;
if (canonicalUrlsEnabled)
{
var productUrl = Url.RouteUrl("Product", new { productId = Model.Id, SeName = Model.SeName }, this.Request.Url.Scheme);
Html.AddCanonicalUrlParts(productUrl);
}
}
<!--product breadcrumb-->
@Html.Action("ProductBreadcrumb", "Catalog", new { productId = Model.Id })
<div class="clear">
</div>
<div class="page product-details-page">
<div class="page-body">
@Html.Widget("productdetails_top")
@using (Html.BeginRouteForm("Product", new { productId = Model.Id, SeName = Model.SeName }, FormMethod.Post, new { id = "product-details-form" }))
{
<div class="productDetailLeft">
<div class="product-essential">
@Html.Widget("productdetails_before_pictures")
<!--product pictures-->
<!-- cloud zoom enabling-->
@* @Html.Partial("_ProductDetailsPictures", Model)*@
@Html.Action("CloudZoom", "CloudZoom", Model)
<!-- cloud zoom enabling -->
@Html.Widget("productdetails_after_pictures")
</div>
@* @Html.RenderPartial("RelatedProducts", "Catalog", new { productId = Model.Id })*@
@{Html.RenderPartial("_ProductVariantImages", Model.ProductVariantModels);
}
<div class="full-description">
@Html.Raw(Model.FullDescription)
</div>
</div>
<div class="productDetailRight">
<div class="overview">
<div id="cloudZoomWindowElement" style="position: absolute"></div>
@* putting brand image here*@
<a href="@Model.YourCategoryPictureModel.FullSizeImageUrl" >
<div ><img alt="@Model.YourCategoryPictureModel.AlternateText" width="100" src="@Model.YourCategoryPictureModel.ImageUrl" title="@Model.YourCategoryPictureModel.Title" /></div>
</a>
<h1 class="product-name">
@Model.Name
</h1>
<div class="short-description">
@Html.Raw(Model.ShortDescription)
</div>
<div class="clear">
</div>
@Html.Widget("productdetails_overview_top")
<!--product manufacturers-->
@Html.Action("ProductManufacturers", "Catalog", new { productId = Model.Id })
<div class="clear">
</div>
<!--product reviews-->
@Html.Action("ProductReviewOverview", "Catalog", new { productId = Model.Id })
<div class="clear">
</div>
<div id="featureMenu1">
<a href="/t/BuyOneGiveOne" title="Мы профи по солнцезащитным очкам">
<div class="buy_one_give_one"> </div>
For ProductTemplates.VariantsInGrid:
@model ProductDetailsModel
@using Nop.Core;
@using Nop.Core.Domain.Common;
@using Nop.Core.Infrastructure;
@using Nop.Web;
@using Nop.Web.Models.Catalog;
@{
Layout = "~/Views/Shared/_ColumnsOne.cshtml";
//title, meta
Html.AddTitleParts(!String.IsNullOrEmpty(Model.MetaTitle) ? Model.MetaTitle : Model.Name);
Html.AddMetaDescriptionParts(Model.MetaDescription);
Html.AddMetaKeywordParts(Model.MetaKeywords);
var canonicalUrlsEnabled = EngineContext.Current.Resolve<SeoSettings>().CanonicalUrlsEnabled;
if (canonicalUrlsEnabled)
{
var productUrl = Url.RouteUrl("Product", new { productId = Model.Id, SeName = Model.SeName }, this.Request.Url.Scheme);
Html.AddCanonicalUrlParts(productUrl);
}
}
<!--product breadcrumb-->
@Html.Action("ProductBreadcrumb", "Catalog", new { productId = Model.Id })
<div class="clear">
</div>
<div class="page product-details-page">
<div class="page-body">
@Html.Widget("productdetails_top")
@using (Html.BeginRouteForm("Product", new { productId = Model.Id, SeName = Model.SeName }, FormMethod.Post, new { id = "product-details-form" }))
{
<div class="productDetailLeft">
<div class="product-essential">
@Html.Widget("productdetails_before_pictures")
<!--product pictures-->
<!-- cloud zoom enabling-->
@* @Html.Partial("_ProductDetailsPictures", Model)*@
@Html.Action("CloudZoom", "CloudZoom", Model)
<!-- cloud zoom enabling -->
@Html.Widget("productdetails_after_pictures")
</div>
@* @Html.RenderPartial("RelatedProducts", "Catalog", new { productId = Model.Id })*@
@{Html.RenderPartial("_ProductVariantImages", Model.ProductVariantModels);
}
<div class="full-description">
@Html.Raw(Model.FullDescription)
</div>
</div>
<div class="productDetailRight">
<div class="overview">
<div id="cloudZoomWindowElement" style="position: absolute"></div>
@* putting brand image here*@
<a href="@Model.YourCategoryPictureModel.FullSizeImageUrl" >
<div ><img alt="@Model.YourCategoryPictureModel.AlternateText" width="100" src="@Model.YourCategoryPictureModel.ImageUrl" title="@Model.YourCategoryPictureModel.Title" /></div>
</a>
<h1 class="product-name">
@Model.Name
</h1>
<div class="short-description">
@Html.Raw(Model.ShortDescription)
</div>
<div class="clear">
</div>
@Html.Widget("productdetails_overview_top")
<!--product manufacturers-->
@Html.Action("ProductManufacturers", "Catalog", new { productId = Model.Id })
<div class="clear">
</div>
<!--product reviews-->
@Html.Action("ProductReviewOverview", "Catalog", new { productId = Model.Id })
<div class="clear">
</div>
<div id="featureMenu1">
<a href="/t/BuyOneGiveOne" title="Мы профи по солнцезащитным очкам">
<div class="buy_one_give_one"> </div>