Page 1 of 1

Updating the SKU as users select options/variants

Posted: Mon Dec 22, 2008 9:33 am
by efficiondave
Is it possible to display the updated SKU on the detail page as users select different Options/Variants?

Re: Updating the SKU as users select options/variants

Posted: Mon Dec 22, 2008 10:01 am
by mazhar
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;
}

Re: Updating the SKU as users select options/variants

Posted: Mon Dec 22, 2008 10:26 am
by efficiondave
Worked great! Thanks!