javascript - Adding a favorite/save button using JQuery -
i've searched quite bit, i've been unable find answer question. need create 'favorite' or 'save' button on each of posts on wordpress site save selected posts later. seems pretty standard feature on sites ebay, autotrader, etc.
i think should able accomplish jquery, i've been unable find documentation. i've referred these other topics:
favorite , unfavorite button in jquery not working
jquery: making favorite button function?
but refer button's visuals rather actual function. had thought adding post-ids encoded array within cookie, i'm unsure how this. please point me in right direction? thank you!
i see asked question last summer, i've gone through , wanted help.
there's difference between (1) creating account website, , signing in see favorites records saved in database. , (2) using cookies or local storage keep favorites on computer, allow users add items favorites , see them again when return. no account required.
i ended using simplecart.js can provide same results if make modifications. have @ demo , you'll see how used save favorites without creating account , signing in.
hope helps someone.
Comments
Post a Comment