• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Jon Turner
#1 Posted : Saturday, May 28, 2016 7:58:28 PM(UTC)
Jon Turner

Rank: Member

Joined: 10/2/2014(UTC)
Posts: 46

Thanks: 2 times
BVC2013 using the BVC2013 Category Grid template has the sku. BVC 2015, Foundation 4 theme Category Grid template does not. Can this be added or am I missing something? Anyone have the code otherwise?
Steve95
#2 Posted : Tuesday, May 31, 2016 7:00:39 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 256

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
Hi John,

To display the SKU in Foundation4 Responsive you have to make a few changes to the code. Before making any changes ensure that you have backed up each file you change ideally not on the web server where you make the changes. There’s nothing worse than finding four or five different revisions within a web site project.

Foundation4 Responsive uses controls within the theme folder which is different to the display grid. In order to add the Sku you need to make changes to a control located at \BVModules\Themes\ Foundation4 Responsive\controls\SingleProductDisplay.ascx and \BVModules\Themes\ Foundation4 Responsive\controls\SingleProductDisplay.ascx.vb

Please note changing the above controls will also result in the changes being carried over to the following other areas such as those listed below.

Cross Sell Display (Most probably on your product page, if enabled)
Up Sell Display (Most probably on your product page, if enabled)
The Product Rotator content block and a few other places.


In order to carry out the changes add the following after the product name in SingleProductDisplay.ascx

Code:


<%-- SKU --%>
<div class="SingleProductDisplayName recordsku">
     <asp:Label ID="ProductSkuLabel" runat="server" CssClass="ProductSkuLabel"></asp:Label>
</div>



Update SingleProductDisplay.ascx.vb with the following code inside the Public Overrides Sub LoadWithProduct(ByVal p As Catalog.Product) ensuring it is within the If p IsNot Nothing Then statement

Code:


ProductSkuLabel.Text = p.Sku



You may also have to edit the css in \BVModules\Themes\ Foundation4 Responsive\styles\styles.css if you require any further styling. Hopefully you are now looking at your grid view including your newly added SKU.

 1 user thanked Steve95 for this useful post.
Jon Turner
#3 Posted : Tuesday, May 31, 2016 10:59:54 AM(UTC)
Jon Turner

Rank: Member

Joined: 10/2/2014(UTC)
Posts: 46

Thanks: 2 times
Thank you. Worked perfectly.
Steve95
#4 Posted : Tuesday, May 31, 2016 11:34:05 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 256

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
No problem John, could you please thank the post?
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012