Close

Rearrange Product Page

WeirComfees
7 years ago
#13491 Quote
Avatar
  • 13
Hi there, I guess I might as well ask all my questions at once. I think we are on quite different time zones so it seems when I wake up in the morning you have seen my questions. So thank you in advance. I have included a pic of my product page, how do I move the info in the RED box to be up above the stuff in the blue box? Basically I want the attributes right below the description. Thank you.

https://www.dropbox.com/s/zokr8dhkqatuml5/move%20product%20page%20info.jpg?dl=0
anton_ivanov
7 years ago
#13492 Quote
Avatar
  • Moderator
  • 277
Hello,

This will require some code modification.
You will need to edit the ~/Themes/ArtFactory/Views/Product/ProductTemplate.Simple.cshtml
On lines 116 to 140 you will find the following code:

                            
<!--attributes-->
@{
     var dataDictAttributes = new ViewDataDictionary();
     dataDictAttributes.TemplateInfo.HtmlFieldPrefix = string.Format("attributes_{0}", Model.Id);
                            @Html.Partial("_ProductAttributes", Model.ProductAttributes, dataDictAttributes)
}
<!--rental products-->
@{
     var dataDictRental = new ViewDataDictionary();
     dataDictRental.TemplateInfo.HtmlFieldPrefix = string.Format("rental_{0}", Model.Id);
     @Html.Partial("_RentalInfo", Model, dataDictRental)
}
<!--price & add to cart-->
@{
     var dataDictPrice = new ViewDataDictionary();
     dataDictPrice.TemplateInfo.HtmlFieldPrefix = string.Format("price_{0}", Model.Id);
     @Html.Partial("_ProductPrice", Model.ProductPrice, dataDictPrice)

     var dataDictAddToCart = new ViewDataDictionary();
     dataDictAddToCart.TemplateInfo.HtmlFieldPrefix = string.Format("addtocart_{0}", Model.Id);
     @Html.Partial("_AddToCart", Model.AddToCart, dataDictAddToCart)
}

@Html.Partial("_ShareButton", Model)
@Html.Widget("productdetails_overview_bottom", Model.Id)


You will need to cut it and paste it on line 91 just above the:

<div class="secondary-info">


Note:
This might require additional styling in some cases.

Hope that helps!
Regards,
Anton Ivanov
Nop-Templates.com
WeirComfees
7 years ago
#13505 Quote
Avatar
  • 13
That worked perfectly, thank you very much. Much happier with the product page now.