Wish-List e-mail

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
krittleb
Commander (CMDR)
Commander (CMDR)
Posts: 111
Joined: Tue Jan 06, 2009 11:27 pm

Wish-List e-mail

Post by krittleb » Tue Jul 21, 2009 1:21 pm

I just had a customer try to e-mail her wish-list. It ended up in an error because "no such user exists". I am assuming this is because whatever default sender account is linked to that message is not one we created.

There is not a "wish-list" default message in the e-mail templates nor is there even a trigger, so I don't know where this message is originating from or how to edit the settings.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Wish-List e-mail

Post by mazhar » Wed Jul 22, 2009 4:36 am

This message is being created on the fly in ConLib/SendWishListPage.ascx.cs file. Edit this file and check following method

Code: Select all

private String GetMessage()
    {
        Wishlist wishlist = Token.Instance.User.PrimaryWishlist;
        String wishlistUrl = Token.Instance.Store.StoreUrl + "ViewWishlist.aspx?WishlistId=" + wishlist.WishlistId;
        String wishlistLink = "<a href=\"" + wishlistUrl + "\">" + wishlistUrl + "</a>";
        StringBuilder messageFormat = new StringBuilder();
        messageFormat.Append("Dear Friend,\n\n");
        messageFormat.Append("I created a WishList at " + Token.Instance.Store.Name + ".\n\n");
        if (wishlist.ViewPassword.Length > 0)
        {
            messageFormat.Append("The password for my WishList is " + wishlist.ViewPassword + ".\n\n");
        }
        messageFormat.Append("Please visit the link below to view the list.\n");
        messageFormat.Append(wishlistUrl);
        messageFormat.Append("\n\nThank you!");
        return messageFormat.ToString();
    }

Post Reply