0

I would like to allow a logged in user to select his or her favorite products. This list should be maintained from a new account page to be created following Alan Storm his article: http://alanstorm.com/magento_create_customer_page.

I have found this answer: https://stackoverflow.com/a/8426639 which (among others) shows how to add an attribute to a customer type.

What I would like to know is how I can add a product collection attribute type to a customer account.

4
  • 1
    wishlist products doesn't fulfill your requirement?
    – Mufaddal
    Jun 4, 2013 at 10:30
  • Unfortunately not, a user should both be able to keep a list of products that he wants (or considers) to buy as well as show a list of products he recommends to other users.
    – dvdroest
    Jun 4, 2013 at 11:12
  • How user recommends products to other users via email to a friend link or by other way?
    – Mufaddal
    Jun 4, 2013 at 11:14
  • Users can view the producs recommended by another user. I will build a public "profile" page for this reason.
    – dvdroest
    Jun 4, 2013 at 11:17

1 Answer 1

1

I don't have enough rep to comment, but I would like to make a suggestion.

I think what you want to do is basically mimic the wishlist functionality, but have the option to add to a wishlist OR "favorite" an item. I would suggest creating a table(s) that holds the customer id along with the product id and then loading your product collections based on the relevant data. Take a look at the wishlist table to get an idea where to start. (wishlist, wishlist_item, wishlist_item_option)

2
  • Well, it is a bit different in the form that this group of customers can recommend products while normal customers cannot. But still it is a starting point.
    – dvdroest
    Jun 6, 2013 at 7:53
  • But if anyone has some example code or a link to a tutorial on how to add a product collection to a customer account (or something else that's not a product) then I would be very grateful!
    – dvdroest
    Jun 6, 2013 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.