Giter Site home page Giter Site logo

'This address is not yours.' error during OPC guest checkout and Registration process type 'Only account creation' about thirtybees HOT 3 CLOSED

therampagerado avatar therampagerado commented on June 19, 2024
'This address is not yours.' error during OPC guest checkout and Registration process type 'Only account creation'

from thirtybees.

Comments (3)

getdatakick avatar getdatakick commented on June 19, 2024

This is regression caused by commit c54a494.

@eschiendorfer Emanuel, looks like this strange ajax restriction was meant for instant checkout. Do you remember why it was removed? Did it prevented some other functionality from working properly? Should we revert?

from thirtybees.

getdatakick avatar getdatakick commented on June 19, 2024

Fixed by reverting the original commit.

from thirtybees.

eschiendorfer avatar eschiendorfer commented on June 19, 2024

Sorry @getdatakick I was not so much into coding recent weeks. I have completly overseen this.

I am quite sure, that I had issues, since I submit a lot of forms with ajax. IMO this restriction is very dubious. But I understand ofc that it needed to be reverted for now. I will make an override on my side (as a quick solution).

Edit: I have now shortly looked into the code. But this is just a big mess (or spaghetti code as dekker used to call it) right? I have the impression that: Instant checkout means two calls proccessSubmitAccount(). First call probably without ajax and second (for address) with ajax. Is that correct? And instead of using different submitNames its seperated by !$this->ajax.

IMO addresses should be saved by "submitAddress". No matter if it's done in instant checkout or in Address front controller.

If I am wrong, let me know. I don't think there is a simple and clean solution as this is also theme related.

Edit 2: I am even more confused as I can't find an $address->save() or $address->add() in processSubmitAccount().

from thirtybees.

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.