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

Choose attribute for configurable product #2

Closed
wants to merge 6 commits into from

Conversation

jdurand
Copy link

@jdurand jdurand commented Dec 19, 2012

Added the option to choose on which of the available attributes you want to base your configurable product. For example if you had a product that has size & colour as available configurable attributes and you just wanted to base your related simple products on the colour you would add one (or more) configurable attributes to the additional_attributes like this :
'additional_attributes' => array(
array(
'key' => 'config_attributes',
'value' => 'some_attribute_code'
)
),

…nt to base your configurable product. For example if you had a product that has size & colour as available configurable attributes and you just wanted to base your related simple products on the colour you would add one (or more) configurable attributes to the additional_attributes like this :

'additional_attributes' => array(
    array(
        'key' => 'config_attributes',
        'value' => 'some_attribute_code'
    )
),
…ready linked to the configurable product. (which throws a unique key error)
…on't go instead of removing those which are already there.
…t already exists with a different configurable attribute set, de product will be dropped and recreated. It works for me, use at your own risks!
@jreinke
Copy link
Owner

jreinke commented Jun 13, 2013

Fixed from 457dacf

@jreinke jreinke closed this Jun 13, 2013
rpnzl pushed a commit to jakoenterprise/module-magento-improve-api that referenced this pull request Jun 29, 2016
fixed Exception ”Cannot use object of type stdClass as array” when pr…
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

Successfully merging this pull request may close these issues.

2 participants