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 5 of 5

Thread: Add to Wishlist

  1. #1
    bweis is offline Junior Member
    Join Date
    Feb 2009
    Posts
    1

    Default Add to Wishlist

    I want to include an "Add to Wishlist" text link on product detail pages. The code employed so far links to the wishlist but fails to add any products. Can someone tell me what I'm missing/doing wrong.

    Here's what I've been using:

    <div class="TWWishlist"><a href="wishlist.aspx?productid={ProductID}&amp;vari antid={VariantID}&amp;IsWishList=1">Add to Wishlist</a></div>

    Thanks,

    Bil

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Can you not use the built in Wishlist buttons? Check your ShowWishButtons AppConfig.

  3. #3
    gleapman is offline Member
    Join Date
    Apr 2009
    Location
    Golden, CO
    Posts
    45

    Default Still need info for custom wishlist button

    Scott, is there a way to add to the wishlist with a custom wishlist button? My client wants to use a custom design, so the built-in add to cart/add to wishlist buttons won't work.

    This appears to work fine for the custom add to cart button:

    <xsl:element name="a">
    <xsl:attribute
    name="href">addtocart.aspx?productid=<xsl:value-of select="$pProductId" disable-output-escaping="yes" />&amp;quantity=1
    </xsl:attribute>
    <img src="images/btn_addtocart.png" width="104" height="28" />
    </xsl:element>

    Is there something similar for add to wishlist?

    Thanks.

  4. #4
    namliw is offline Junior Member
    Join Date
    Feb 2009
    Posts
    26

    Default This worked for me

    <xsl:element name="form">
    <xsl:attribute name="action">addtocart.aspx?returnurl=showproduct .aspx%3fProductID%3d=<xsl:value-of select="ProductID" disable-output-escaping="yes" />%26SEName%3d<xsl:value-of select="SEName" disable-output-escaping="yes" />
    </xsl:attribute>
    <input type="hidden" value="0" id="VariantStyle" name="VariantStyle"/>
    <input type="hidden" value="1" id="IsWishList" name="IsWishList"/>
    <input type="hidden" value="0" id="IsGiftRegistry" name="IsGiftRegistry"/>
    <input type="hidden" value="" id="UpsellProducts" name="UpsellProducts"/>
    <input type="hidden" value="0" id="CartRecID" name="CartRecID"/>
    <input type="hidden" value="1" id="Quantity" name="Quantity"/>
    <xsl:element name="input">
    <xsl:attribute name="type">hidden</xsl:attribute>
    <xsl:attribute name="id">ProductID</xsl:attribute>
    <xsl:attribute name="name">ProductID</xsl:attribute>
    <xsl:attribute name="value"><xsl:value-of select="ProductID" disable-output-escaping="yes" /></xsl:attribute>
    </xsl:element>
    <xsl:element name="input">
    <xsl:attribute name="type">hidden</xsl:attribute>
    <xsl:attribute name="id">VariantID</xsl:attribute>
    <xsl:attribute name="name">VariantID</xsl:attribute>
    <xsl:attribute name="value"><xsl:value-of select="VariantID" disable-output-escaping="yes" /></xsl:attribute>
    </xsl:element>
    <input type="image" src="customButton" width="125" height="33" />
    </xsl:element>

  5. #5
    namliw is offline Junior Member
    Join Date
    Feb 2009
    Posts
    26

    Default Another Way

    I forgot to tell you, you can also edit the css class for the wishlist button
    It's name is "AddToWishButton"

    bye