Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Retrieving Variant Part Number

  1. #1
    omairkha is offline Member
    Join Date
    Aug 2011
    Posts
    89

    Question Retrieving Variant Part Number

    Hi,

    I was wondering how I can display the Variant Part Number instead of the SKU on the product pages. I have selected the template: product.VariantsInRightBar.xml.config

    There is a code in that XML file which pulls the Variant name and other information as follows:

    Code:
    <xsl:param name="vName" select="aspdnsf:GetMLValue(VariantName)"/>
    Can a similar method be used to pull the variant manufacturer part number field?

    The following returns the Parent Product's Part Number, not the variant's

    Code:
    <xsl:param name="vPN" select="aspdnsf:GetMLValue(ManufacturerPartNumber)"/>
    I have also tried the following two but they do not return anything:
    Code:
    <xsl:param name="vPN" select="aspdnsf:GetMLValue(VariantManufacturerPartNumber)"/>
    and

    Code:
    <xsl:param name="vPN" select="aspdnsf:GetMLValue(VariantPartNumber)"/>
    Thanks for the help!

  2. #2
    omairkha is offline Member
    Join Date
    Aug 2011
    Posts
    89

    Default

    Hi,

    I found this thread:

    http://forums.aspdotnetstorefront.co...art#post109695

    and the method described there worked!

    But I'm still interested in knowing if the GetMLValue() can be used also?