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: product.variantsindropdown.xml.config ==> Show different Text in the Dropdownfield.

  1. #1
    MiBfinity is offline Member
    Join Date
    Jul 2008
    Posts
    64

    Default product.variantsindropdown.xml.config ==> Show different Text in the Dropdownfield.

    Hi Folks,

    I just started using the XML-Package "product.variantsindropdown.xml.config" for displaying some Variants.

    Can you tell me how to change the Text shown in the dropdown-field? I'd like to add another textfield at the end of each variant (like Art.No).

    We have the Sourcecode.

    Thank you!

    With kind regards,
    Michael

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Probably won't require source as long as the data you want to display is already being returned in the Product Variant sql query e.g.
    Code:
     <query name="ProductVariants" rowElementName="Variant">
    at the top of the package. Just append the value in the Variant template...so something like
    Code:
    <xsl:value-of select="$vName" />&#0160;<xsl:value-of select="ArtNo"/>&#0160;-&#0160;<xsl:value-of select="aspdnsf:GetVariantPrice(VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, $pTaxClassID)" disable-output-escaping="yes" />
    as long as ArtNo is a valid field name (or cast field name) in the ProductVariants query
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>