Coder Social home page Coder Social logo

danbeckett / door4-customer-prefix-patch Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 5.0 23 KB

Module which works around issue in Magento 2.4.2 where prefixes in Customer Addresses are being returned as integers

License: GNU General Public License v3.0

PHP 100.00%

door4-customer-prefix-patch's People

Stargazers

Leeroy Brun avatar Sascha Heilmeier avatar

Watchers

Dan Beckett avatar

door4-customer-prefix-patch's Issues

Still needed for 2.4.5?

Hello,

Thanks for the patch, I'm upgrading a Magento which is using your patch, is it still needed on version 2.4.5(-p1) ?

Thank you.

Does not compile

Hey there, thank you for sharing that code. I tried deploying it and it does not di:compile.
Removing Line 8 and not declaring the variable here works just fine.
PHP Parse error: syntax error, unexpected 'Options' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /app/code/Door4/CustomerPrefixPatch/Plugin/Sales/Model/Order/Address/PrefixPatch.php on line 8

Release new version

It would be awesome, if a new version could be released, so that one can require the module in a real version and not as dev dependency.

array_key_exist missing in PrefixPatch class

Getting an undefined index error because the array_key_exist function is missing in line 34 in the PrefixPatch.php. New if statement should be:
if (is_array($result) && array_key_exists('prefix', $result) && (!empty($result['prefix']) || $result['prefix'] === "0")) {

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.