0

i was trying to set to all my bundle products with all the options selected.

Instead of doing it manually, i wants to make it by code.

I think i should get first all the bundleproducts from my shop and then makes a loop to change all the simple products of it, and put it default, but i cant make it and i haven´t seen nothing like that.

Anyone have any idea?

This is how my front-end is show.

enter image description here

And this is on backend: enter image description here

I dont know which is the best solution, i think it could be easy if i change it on backend, not?

The result should be all the options selected by default.

4
  • please be more specific.
    – vasilisdmr
    Commented Jun 2, 2015 at 6:34
  • How could be more specific? It´s simple. I have a lot of bundle products. I want to make a script to change all the attribute selects of their simple products. I think i can´t explain better.
    – ntzz
    Commented Jun 2, 2015 at 6:52
  • Are you talking about frontend or backend? Can you please add a screenshot? Commented Jun 2, 2015 at 7:14
  • @Vsld upload new information
    – ntzz
    Commented Jun 2, 2015 at 8:00

1 Answer 1

0

Finally i make it by jQuery:

// enable all simple products
    table.find('.bundlecheckbox input.checkbox').each(function() {
        this.click();
    });

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.