Display Manufacture in Product Box

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
I like to display "Manufacture Name" in Product Box and in Product Details.
Kindly guide me how to do that.
14 years ago
1. Add new label <asp:Label ID="lblManufacturerPartNumber" ...> in ProductInfo.ascx file
2. Open ProductInfo.ascx.cs file and set the "Text" property of the label to required value (lblManufacturerPartNumber.Text = product.ProductVariants[0].ManufacturerPartNumber)
14 years ago
Its not showing but also not giving any errors.

I tried it in ProductBox2 and Productinfo
14 years ago
Have you recompiled your solution?
14 years ago
Yes I have, I recompile it every time I make changes
14 years ago
Just make things clear, here is my code (in case if I made any mistake)

ProductInfo.ascx

<asp:Label ID="lblManufacturerPartNumber" runat="server"></asp:Label>


ProductInfo.ascx.cs

lblManufacturerPartNumber.Text = product.ProductVariants[0].ManufacturerPartNumber;

ProductInfo.ascx.designer.cs

protected global::System.Web.UI.WebControls.Label lblManufacturerPartNumber;


RESULT: No error in recompiling  BUT manufacturer is not showing :(
14 years ago
What to do next ?
Its not working
13 years ago
Have you found a solution to this?
13 years ago
Gees... I may have been working off of a published from source code version.
Made the changes in the solution and republished and it worked.

I "newbie" never really grasped the concept of working within web site vs. web application

If anyone else can offer more guidance on this to straighten the proper procedure to build/publish from source code...thank you.
13 years ago
Sorry for late reply, I actually don't remember how I did that as it was months back BUT .. i can give u a clue.
Go to folder "Nop.BusinessLogic" Try finding how Product Name is called in Product detail page and follow the same procedure for Manufacture, This may involve making changes in more then one file there, best way is to search the key word "Product Name" where ever u find it just copy its code by replacing it with Manufacture.

Last but not least make changes in the ASCX file in Module folder for the page where u want to call Manufacture.

Recompile to make the changes work.

NOTE: please make a backup copy of your files before doing all this, just to be safe.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.