Conflict with Simple Sales Tax
-
Hi there,
My name is Brett Porcelli and I’m the developer of Simple Sales Tax (https://simplesalestax.com). I’ve discovered a conflict between my plugin and yours and I was hoping you can help me to fix it.
The conflict arises from the fact that the BE_Multiple_Packages::generate_packages() method does not preserve the cart item keys. Packages that start looking like this…
[
0 => [
‘destination’ => …,
…
‘contents’ => [
‘a3jdmaksd7231nasdjaskdj’ => […]
],
],
]… end up looking like this:
[
0 => [
‘destination’ => …,
…
‘contents’ => [
0 => […]
],
],
]This can be problematic for plugins like mine that expect the original package structure and cart item keys to be preserved.
I’ve updated the generate_packages() method to preserve the original cart item keys. Here’s a patched version of the main plugin file: https://gist.github.com/bporcelli/19a89915c1fb39e107a24464c539e32f
Please let me know if you have any questions or concerns!
Best,
Brett
- The topic ‘Conflict with Simple Sales Tax’ is closed to new replies.