How to Add MSRP Price & rowQuantity to Specific Product Load

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
digdesigner
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Mon Jul 18, 2011 7:47 am

How to Add MSRP Price & rowQuantity to Specific Product Load

Post by digdesigner » Tue Jul 19, 2011 7:03 am

I am customizing the "SpecificProductLoad" conlib and I was wondering if there was a way to add the MSRP price and the "rowQuantity" control to the list.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: How to Add MSRP Price & rowQuantity to Specific Product Load

Post by plugables » Wed Aug 03, 2011 4:32 am

I haven't seen this ConLib in AbleCommerce. Do you have a custom conlib control?

digdesigner
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Mon Jul 18, 2011 7:47 am

Re: How to Add MSRP Price & rowQuantity to Specific Product Load

Post by digdesigner » Wed Aug 03, 2011 7:28 am

I figured out a solution to adding the MSRP Price to the Specific Product Load Conlib.

This was added to the front end:

Code: Select all

<asp:Literal ID="Msrp" runat="server"></asp:Literal>
This was added to the code behind:

Code: Select all

string msrp = string.Format("MSRP: <span class=\"msrp\">{0:ulc}</span> ", _Product.MSRP);
// Checks to see if item has an MSRP and then writes it.
if (_Product.MSRP > 0)
{
Msrp.Text = "<span class=\"msrp\">" + msrp + "</span>";
}
The only thing remains is how to add the "rowQuantity."

Post Reply