if (supportRtl)
{
Html.AppendCssFileParts("~/Themes/Allure/Content/CSS/styles.rtl.css");
}
Html.AppendCssFileParts("~/Themes/Allure/Content/CSS/styles.css");
Html.AppendCssFileParts("~/Themes/Allure/Content/CSS/custom.css");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
.category-page .sub-category-grid .item-box {
width: 18.5%}
.home-page-category-grid .item-box {
width: 16%}
@media screen and (min-width: 1001px){
.product-details-page .overview {
margin-left: 620px;
margin-right: 0;
}
}
@media screen and (min-width: 769px){
.ui-tabs {
float: left
}
}
@media screen and (min-width: 769px){
.product-details-page .overview {
float: right;
}
}
.side-2 {float: left;}
.center-2 {float: right;}
Hi Thomas,
I will try to summarize all the the questions asked in your previous posts and the options for the product picture.
1. nopCommerce has a setting (administration -> configuration -> settings -> media settings -> product detail image size) which controls to what size the pictures will be resized. The resizing works in a way that resizes the image by making the bigger dimension (height or width) to the setting set while keeps the ratio. So when you set this setting to 600 you will not have any product picture having width or height bigger than 600.
2. The Nop Cloud Zoom works in a way - when you upload a product picture that is large enough (at least 700px wide) nopCommerce displays a resized thumb version of it which is 600px wide. Then when you hover over it the Nop Cloud Zoom plugin uses the original picture(which is 700px wide) to show more detailed view of the picture.
3. The Nop Cloud Zoom has a various settings like Zoom Type. You can choose either inside or any other. If you choose any other you can modify the position of the displayed image by modifying the other settings with positive or negative numbers, like X-position, Y-position, etc. The default value for the Nop Allure Theme is "inside" .
So in order to have a decent product images, they just need to be at least 700px high or wide. The picture on the product page is centered vertically and horizontally, so it does not matter if the image is in portrait or landscape mode and the cloud zoom will work in both cases.
Hope that makes sense.
Please let us know if you have any comments or thoughts. We will be glad to discus and explain!
Best Regards!
Hi Thomas,
The Nop Mega Menu is styled by design in a way that it has 4 subcategories on a line, so that if they have subcategories the sub-subcategories are well displayed and readable. However if you need to have 5 subcategories on a single line you need to perform the following changes:
1. Modify the Plugins\SevenSpikes.Nop.Plugins.MegaMenu\Views\MegaMenu\CategoryMenuTemplate.WithPictures.cshtml and edit it as shown below:
line 16:
@(Html.DataTable<SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel>(Model.CategoriesModels, 5, "row", "box",
the number in bold is the changed one.
2. Edit the Plugins\SevenSpikes.Nop.Plugins.MegaMenu\Themes\Allure\Content\MegaMenu.css file as shown below:
line: 99
.categories.fullWidth .box {
width: 20%;
height: 100%;
border-left: 1px dashed #e6e6e6;
border-bottom: 1px dashed #e6e6e6;
padding: 15px 10px;
display: table-cell;
float: none;
}
The number in bold is the changed one.
Hope that helps!
Hi Thomas,
1. There was a bug with one of the views in the theme and that is why the Custom Head Styles were not taken into consideration. If you now download the theme again and replace just the Themes/Allure/Views/Shared/_Root.Head.cshtml with the one from the downloaded package it will work. Sorry for the misunderstanding!
Thus when you update or upgrade the theme, all the changes will be in place and no need to keep any files or merge any change.
2. You can create a new custom css file, say custom.css and place it in Themes/Allure/Content/css folder. Then edit the Themes/Allure/Views/Shared/Head.cshtml file and add the following line:
Html.AppendCssFileParts("~/Themes/Allure/Content/CSS/custom.css");