@if (!Model.ProductPrice.DisableWishlistButton)
{
var addtowishlistlink = Url.RouteUrl("AddProductToCart-Catalog", new { productId = Model.Id, shoppingCartTypeId = (int)ShoppingCartType.Wishlist, quantity = 1 });
<input type="button" value="@T("ShoppingCart.AddToWishlist")" title="@T("ShoppingCart.AddToWishlist")" class="button-2 add-to-wishlist-button" onclick="AjaxCart.addproducttocart_catalog('@addtowishlistlink');return false;" />
}
<!-- Facebook -->
@{
var storeUrL = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Core.IStoreContext>().CurrentStore.Url.TrimEnd('/');
string realProductUrl = storeUrL + Url.RouteUrl("Product", new { SeName = Model.SeName });
}
<a class="fb-share-link" href="javascript:openProductsShareWindow('https://www.facebook.com/sharer.php?u=@realProductUrl')" target="_blank" style="font-size: 13px;">@T("SevenSpikes.FacebookShop.Public.ProductBox.ShareToFacebook")</a>
function openProductsShareWindow(url) {
var winWidth = 520;
var winHeight = 400;
var winTop = (screen.height / 2) - (winHeight / 2);
var winLeft = (screen.width / 2) - (winWidth / 2);
window.open(url, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
}
.footer-block.social-sharing {
display: none;
}
@media (min-width: 769px){
.footer-upper .footer-block {
width: 45%;
}
}
Hi, sakil.s,
Please explain further what you are trying to achieve.
P.S. Please do not duplicate forum posts.
Hi,
After browsing many sites for cars and car parts (because I am a "car guy"), I found that this is the easiest way, as I have described before and you have found it too - to combine the model and the year of the part.
So, this really saves you a lot of work and keeps everything tight and clear.