Updating the SKU as users select options/variants
- efficiondave
- Commander (CMDR)
- Posts: 151
- Joined: Tue Dec 02, 2008 10:20 am
- Location: St. Louis Missouri
- Contact:
Updating the SKU as users select options/variants
Is it possible to display the updated SKU on the detail page as users select different Options/Variants?
David O'Leary
http://www.EfficionConsulting.com
http://www.EfficionConsulting.com
Re: Updating the SKU as users select options/variants
For this you can edit the ConLib/BuyProductDialog.ascx.cs file and put the following code at the very end of the Page_PreRender method
Code: Select all
protected void Page_PreRender(object sender, EventArgs e)
{
......................
.........................
......................
ProductVariant productVariant = ProductVariantDataSource.LoadForOptionList(_ProductId, optionList);
if(productVariant != null)
Sku.Text = productVariant.Sku;
}
- efficiondave
- Commander (CMDR)
- Posts: 151
- Joined: Tue Dec 02, 2008 10:20 am
- Location: St. Louis Missouri
- Contact:
Re: Updating the SKU as users select options/variants
Worked great! Thanks!
David O'Leary
http://www.EfficionConsulting.com
http://www.EfficionConsulting.com