Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to correctly set 'price_changes' via API Soap V2 #9

Open
serifreedom opened this issue Dec 21, 2014 · 1 comment
Open

How to correctly set 'price_changes' via API Soap V2 #9

serifreedom opened this issue Dec 21, 2014 · 1 comment

Comments

@serifreedom
Copy link

Hello Jreinke,
Thank you so much for a good free extension, I've tried improve-api with Magento ver. 1.9.0.1 CE
by call api soap v2, everything seem great... except!
when I define price_changes:

 'price_changes' => array(
            array(
                'color' => array(
                    'Red' => '2',
                    'White' => '-10%',
                ),
                'size' => array(
                    '7'  => '+1',
                    '7-'   => '-3',
                ),
            ),
        ),

error occurred :
SOAP-ERROR: Encoding: object has no 'key' property

@velvetrevolver
Copy link

I had same problem, you need to use key/value pair for each value. But this add a "stdClass as array" bug I've fixed. I posted the solution, a working example for 1.9.0.1, on Jreinke website and the fix on a fork :
velvetrevolver@83b1f31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants