Author
|
Message
|
Pascal France
|
Wednesday 29 August 2007 2:09:09 pm
Hi, If I am an anonymous user, depending the shop module rules the administrator defined, I can either buy something without needing to log in to the site or, as soon as I will want to add something in my basket, I will have to log in or to create an account. My question is: Is there a way to be an anonymous customer who can add something in his basket (for example, to see how much the things cost which he wants to buy) and having to log in only if he wants to purchase the items that he chose ? Maybe, I could achieve this with the wishlist but I can't find any rules for it and if the buy rule of the shop module is not set I can't access the wishlist if I'm not logged in or registered. Thanks for your help Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
Pascal France
|
Wednesday 29 August 2007 2:27:26 pm
Well... I think the answer is here: http://ez.no/community/forum/install_configuration/use_of_wishlist_for_anonymus_user/re_use_of_wishlist_for_anonymus_user Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
Heath
|
Wednesday 29 August 2007 2:44:36 pm
I saw this on #ezpublish irc today (re-implemented to protect the innocent) <NewUser> ... Ok, Last question for today.
<NewUser> ** Question: According to the docs the default setup should mean people only have to log in when they get to checkout. However the actual default behaviour is you cannot add items to your basket unless you are logged in. ANy advice on what is the best way to allow anonymous users to add to the basket but force registration/login before checkout?
<HelpfulUser> check your anonymous permissions
<NewUser> I already took a look at that. I found a comment on ez.no that suggested adding a new policy module->shop, function->buy, Limitation->No limitations. But this means you can go all the way through checkout without logging in.
<HelpfulUser> yes
<HelpfulUser> you still have to enter your details for delivery
<NewUser> Right. But without a user account in eZ Publish you can't log in to check the status of your order.
<NewUser> We need people to be able to add to the basket without logging in but they must register/login to go through checkout, which is pretty standard e-commerce functionality.
<HelpfulUser> you need some non trivial modifications then
<NewUser> Ok ...
<HelpfulUser> its not that bad, add some check in checkout template
<NewUser> ah OK. I thought you meant hacking the core.
<NewUser> According to this doc eZ Publish should behave how we want out-of-the-box:
<NewUser> http://ez.no/doc/ez_publish/technical_manual/3_9/reference/configuration_files/shopaccount_ini/accountsettings/handler
<NewUser> kracker - you every come across this?
<HelpfulUser> so you use ezdefault handler?
<NewUser> yes
<NewUser> in fact changing the handler setting seems to make no difference to how it behaves :-( ?
<HelpfulUser> caches cleared etc? but dunno, never tried it
<NewUser> right. cracked it.
<NewUser> ** Note: ezdefault IS NOT the default setting. it is ezuser.
<NewUser> ** Answer: to resolve this you have to set the handler to ezdefault AND create a new policy.
<NewUser> Another one for http://ezpedia.org/ methinks! ffs my brain is throbbing.
hth, Heath
Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org
|
Pascal France
|
Thursday 30 August 2007 6:04:04 am
Hi Heath, Thanks for your reply. I have tested the ezdefault handler but now, even I set all the rights of the shop module, the anonymous users can't add something to their basket without having to log in and the wishlist button displays a kernel 1 error (permission issue). I did a test: from the frontend, I have clicked on the whishlist button and then I logged in as administrator to see what looks like the wishlist. It is not what I'm looking for because whislist doesn't display any price: I wish, as with most french e-shop where I do pruchases, to fill my basket and only after I decide if I want to go through checkout. And I think the administrator should be able to set if the customers have or not to log in before they pay the bill. Maybe this could be a requested feature ? Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
Pascal Specht
|
Thursday 30 August 2007 7:59:43 am
Hi, What version of eZ Publish are you using? I'm using 3.9.2, and and adding shop/buy (no limitations) to the anonymous user role was enought to allow anyone to put things in their shopping cart. I had nothing to code or modify. 'another' Pascal
|
Pascal France
|
Thursday 30 August 2007 10:43:45 am
Hi Pascal ;-) You're right. But with no limitation on the shop module you never have to log in to go through the checkout. My point of view is that, as most french e-shop, you can add, as anonymous customer, things in the basket and only when this done, you choose to pay or not, and then, depending the rules of the shop module, you have to log in or not to access the paypal gateway. Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
Richard Bayet
|
Thursday 25 October 2007 3:39:21 am
Pascal (from France), let me know if you found a trivial way to do it.
Actually, such a functionnality is there for years in open-source e-commerce applications like OsCommerce. Adding a product to your basket does not require you to authenticate, but if you want to "transform" your shopping basket into an order, you have to ( and then, the total amount of the order will depend of your user account settings, shipping address, etc). Don't get me wrong, the "buy without loggin in" functionnality is great, but having to log ( and hence, as a new user, to register ) just to add something to your basket may seem counter-productive on small e-shops if the audience is not used to it.
|