3

I need to allow a user to add articles to a wishlist that they can then e-mail or print. The data doesn't need to be saved or last longer than their session.

Is there a native EE way of doing this without writing a plugin myself? Or can anyone recommend a plugin that they know does this and that they have experience with please?

1
  • 1
    Ben Croker's Session Variables plugin may be useful for you. It allows you to manipulate PHP session variables without writing to the DB... Nov 27 '12 at 16:32
5

I would try a 3rd party favorites/bookmark addon like Remember Me. Then you would need to dump that info into a form to send off in an email or print.

1
  • Great add-on. Solves the problem perfectly. Nov 27 '12 at 23:32
6

Session Variables is a great little plugin and we've used it without any issue. Easy to setup and does what you need.

2
  • This ought to do the trick. Just a reminder to use an add-on like IfElse or Switchee (nestable; same developer, Mark Croxton) so you're only calling the instance you need. May not need it, just throwing that in there just in case. Mo Variables provides a variable for detecting ajax requests. With these you ought to be able to just use templates instead of writing an add-on.
    – notacouch
    Nov 27 '12 at 16:42
  • I've never used Session Variables before, but looking at the docs I'm confused on how you add multiple entries to a session and then dump (get) those variables. It seems each entry would need a unique name whereas Remember Me seems straight forward in this case.
    – Siebird
    Nov 27 '12 at 16:59
5

It's pretty easy to save user-scoped data in Stash; by default this will expire at the end of the user's session. You could save just the entry ids or the whole entry.

{exp:stash:append_list name="wishlist" save="yes" replace="yes"}
{stash:entry_id}67{/stash:entry_id}
{/exp:stash:append_list}
1
  • Hmm, ok, thanks, i'll take a look. I'm going to use "Remember Me" for now as it ticks all the boxes, but i'll have a dig around with stash and see if it can do all i need. Thanks!! Nov 27 '12 at 19:10
1

i have happily used http://devot-ee.com/add-ons/remember-me a few times. super easy to work with, and to configure. did not use session variables yet though

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.