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
    Jun 2 '15 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
    Jun 2 '15 at 6:52
  • Are you talking about frontend or backend? Can you please add a screenshot? Jun 2 '15 at 7:14
  • @Vsld upload new information
    – ntzz
    Jun 2 '15 at 8:00
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, privacy policy and cookie policy

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