HomeHome Product Discus... Product Discus...SmithCartSmithCartorganize products under headings?organize products under headings?
Previous
 
Next
New Post
1/27/2011 10:17 AM
 

I want to know if we can / how to organize the products in our store under headings, like we have in our current webstore (not a DNN module): https://www.wrightsoft.com/store/chec...

If you could take a quick look at what we have and just let me know if that’s possible I would appreciate it, thank you.

 
New Post
1/27/2011 2:50 PM
 

Yes you should be able to achieve this layout. Open up the productlist.ascx page and change the table layout to match your current site.

Christian

 
New Post
1/28/2011 1:40 PM
 

Can you please provide more information about how to edit this page, specifically how to list products direcly under category names? Documentation of some kind would be incredibly helpful.

 
New Post
1/28/2011 4:20 PM
 

In your original post I thought the headings were labels, but in your last post you mentioned they were categories that needed to be pulled from the database. Currently the Stored Procedure that retrieves the data on the product listing page does not return category names. So in order to add the category name above the product name, you would need to modify the stored procedure Smith_ListProductsbyFilter, and add the category name to be returned as a field in the select list.

In the productlist.ascx on line 128 you can add the category name by doing the following:

<tr>

<td>

<asp:Label runat="server" ID="lblCatName" Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName").ToString() %>' CssClass="SmithProdText"/>

<asp:HyperLink ID="hylink" Text='<%# "<br />" + DataBinder.Eval(Container.DataItem, "ModelName") %>' runat="server" CssClass="SmithProdText" NavigateUrl='' />

<asp:Label runat="server" ID="lblSummary1" Text='<%# "<br />" + DataBinder.Eval(Container.DataItem, "Summary").ToString() %>' Visible="false" CssClass="SmithProdText"/>

</td>

</tr>

Christian

 
New Post
2/4/2011 7:48 AM
 

Here is what we are trying to achieve.

We want the main page to have headings above groups of products (these headings are the categories). We want all the
products shown on this page. We do NOT want the heading before each product, only before the first product in each
Category.
So an example of this would be
Category 1
Product 1
Product 2
Category 2
Prodcut 3
Cateogry 3
Product 4
Product 5
Product 6
and so on...
In your aspx file named ProductList.aspx, I believe I see the two sections in the file that refer to categories and
products.
Categories begins with... <td valign="top" runat="server" id="tdMenuCategories">
Products begins with ... <td style="text-align: center; vertical-align: top;" runat="server" id="tdProductList">
Is this correct?
How can we change the layout of this page to loop through the Categories with a nested loop for Products in that category,
so the layout will mimic the example above? Is this possible?
 
New Post
2/4/2011 6:01 PM
Accepted Answer 

I understand the layout your trying to achieve, and it will require a change to the sproc and produclist.ascx page I mentioned in my last post.

First off, you will not be able to do this with the ASP menu control you mentioned above, that is basically an asp control used for creating a menu listing all the categories. The only way to create the layout you want is using the method I mentioned above.

If you would like one of our programmers to customize the product listing page to match the layout your looking for please send an email to sales@smith-consulting.com

Christian

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartorganize products under headings?organize products under headings?