Giter VIP home page Giter VIP logo

Comments (3)

DominikWolos avatar DominikWolos commented on June 11, 2024

Hi @jurv,
Could you describe some real-life situation, when this becomes an issue? I guess somebody would rather want to check the product first instead of adding it to wishlist instantly, especially when action is being performed not completely intentional.

I'd suggest, that sending URL performing action on users wishlist might not be well perceived by customer but maybe your case is different.

from syliuswishlistplugin.

jurv avatar jurv commented on June 11, 2024

Well, the two cases I gave are real-life situations that we encountered in the last shop we deployed with this plugin :

  • bots : they are flooding our error logs.
  • users sharing the "Add to wishlist" links. I admit it's a weird case, but it actually happened.

You made a good point regarding the fact that performing an action on the wishlist without the user consent might not be well perceived. I didn't think of that. But I guess that made me question the behaviour of this controller even more 😅 Shouldn't this action only be accessible through a POST request then ? And a GET could redirect to the refered product's page, so that as you said the user could check out the product and not have it automatically added to his wishlist without maybe realising it ?

from syliuswishlistplugin.

DominikWolos avatar DominikWolos commented on June 11, 2024

Hi,
I think that redirection is better, user-friendly approach. Would you mind providing a PR?

from syliuswishlistplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.