Both WishList and GiftList in ATG is implemented using gift
list repository in ATG.
Primary differences between wish list
and gift list are explained below:
Wish list for a user is nothing but list of his favorite
items. User can store his favorite items for his future purchases.
Gift list for a user is explained in the below example:
Say user is having his wedding on some date, and he is
interested in getting some particular things as gifts, then he will populate
giftlist and share it with different other users in our application.
WISHLIST
|
GIFTLIST
|
User is associated with only one wishlist.
|
There can be ‘N ’ number of lists associated with user
|
Wishlist is Private to the User. And only user can purchase items
from his wish list
|
Giftlist can be made public or private based on the interest of the
user. Only public list can be shared to other users. Other users can purchase
items for the owner of that list.
|
Wishlist will not have any shipping address associated with it.
|
Giftlist will have a shipping address associated with it.
|
By default a wishlist is created for ATG user
|
User has to create his giftLists
|
Public Giftlists of others can be viewed using ‘OtherGiftlists’
|
Giftlist Repository:
The
Giftlists
repository is the layer between Oracle ATG Web Commerce and the database
itself. It provides an interface to the database layer to persist gift list
information. The Giftlists
repository uses the SQL Repository implementation. The Giftlists
repository is
defined in the giftlists.xml
definition file, located in the Commerce configuration path at /atg/commerce/gifts/
. This
XML file defines item descriptors for gift lists and gift list items.
Gift List Form Handlers:
The
/atg/commerce/gifts/GiftlistFormHandler
accepts input from the customer to create, update and delete gift lists, as
well as to add items to and remove items from gift lists. Properties in the
handler are used to store user input for processing, as well as to store
success and failure URLs for redirect after processing. Some handle methods
have pre- and post- methods defined to make it easier to extend the methods.
The
/atg/commerce/gifts/GiftlistSearch
form handler searches the repository for gift lists. The form handler uses
input from the customer, such as owner name, event name, event type and state,
to find gift lists published by other customers.CLICK HERE FOR BELOW SAMPLE PROGRAMS:
0 comments:
Post a Comment